Page 1 of 1
PEAR.php error
Posted: Thu Apr 12, 2007 8:14 am
by vavai
Today I got an error
Code: Select all
Fatal error: Cannot redeclare class pear in /usr/lib/php/PEAR.php on line 103
Is there any description about this error ?
Please take a look :
http://www.vavai.com/blog/index.php
I didn't change anything to my blog except write a regular posting. My blog looks pretty well till yesterday, but I got this error today.
Any suggestion really appreciated.
Best Regards,
Vavai
Re: PEAR.php error
Posted: Thu Apr 12, 2007 11:42 am
by garvinhicking
Hi!
Where did you get this error? This might be caused by some plugin creating an error that should be handled by the local PEAR; but instead the server-global PEAR is tried to be used.
Best regards,
Garvin
PEAR.php Error
Posted: Thu Apr 12, 2007 11:54 am
by vavai
Hello Garvin,
I got this error while displaying sidebar plugin. If I try to view my HTML-Source, the problem occured while trying to display FLICKR plugin. This plugin using PEAR.php but it's okay till yesterday.
This is HTML-Source block for an error.
Code: Select all
<td id="serendipityRightSideBar" valign="top"><!-- serendipity_plugin_flickr Cache Miss --><br />
<b>Fatal error</b>: Cannot redeclare class pear in <b>/usr/lib/php/PEAR.php</b> on line <b>103</b><br />
Regards,
Vavai
Re: PEAR.php Error
Posted: Thu Apr 12, 2007 1:04 pm
by garvinhicking
Hi!
Which version of serendipity_plugin_flickr are you using? Seems as if its generating an error, I'd like to try to fix it...
Regards,
Garvin
PEAR.php Error
Posted: Fri Apr 13, 2007 2:11 am
by vavai
Hi Garvin,
I used serendipity_plugin_flickr.php,v 1.13 2006/12/01 09:00:54.
Last night (GMT+7, Jakarta-ID

) I tried to disabled this plugin but same problem occured at Serendipity Admin. The problem occured while display sidebar plugin which contains flickr plugin, so I can't disabled this plugin.
Is there any problem if I try to rename / remove physical folder ?
Re: PEAR.php Error
Posted: Fri Apr 13, 2007 10:29 am
by garvinhicking
Hi!
Hm, sadly the error message is quite generic, so I can't find out where exactly the plugin is creating the error.
First of all, you can remove the phyiscal folder and this will automatically disable the plugin on the frontend, to make your blog operatable again.
As for finding the error, this is pretty hard without being able to reproduce the error. Debugging breakpoints would need to be added to the plugin file after every few lines to see how far the plugin's execution goes before it fails with the error...
Best regards,
Garvin
PEAR.php Error
Posted: Fri Apr 13, 2007 11:06 am
by vavai
Hi Garvin,
It's okay. I tried to remove physical folder and remove FLICKR plugin from my blog via Serendipity Admin and my blog operatable again, but without FLICKR
I'll be try another way to solve this problem. Installing FLICKR Plugin in another blog maybe can give a different information about the root of problem.
I shall return
Thanks Garvin.
Best Regards,
Vavai