PEAR.php error

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
vavai
Regular
Posts: 37
Joined: Thu Mar 01, 2007 12:43 am
Location: Bekasi-West Java-Indonesia
Contact:

PEAR.php error

Post 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
/* Muhammad Rivai Andargini */
/* Migrasi Windows-Linux : http://www.vavai.com/index.php */
/* Blog Vavai : http://www.vavai.com/blog/index.php */
/* Bridge Blogging : http://www.vavai.net */
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: PEAR.php error

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
vavai
Regular
Posts: 37
Joined: Thu Mar 01, 2007 12:43 am
Location: Bekasi-West Java-Indonesia
Contact:

PEAR.php Error

Post 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
/* Muhammad Rivai Andargini */
/* Migrasi Windows-Linux : http://www.vavai.com/index.php */
/* Blog Vavai : http://www.vavai.com/blog/index.php */
/* Bridge Blogging : http://www.vavai.net */
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: PEAR.php Error

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
vavai
Regular
Posts: 37
Joined: Thu Mar 01, 2007 12:43 am
Location: Bekasi-West Java-Indonesia
Contact:

PEAR.php Error

Post 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 :-D) 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 ?
/* Muhammad Rivai Andargini */
/* Migrasi Windows-Linux : http://www.vavai.com/index.php */
/* Blog Vavai : http://www.vavai.com/blog/index.php */
/* Bridge Blogging : http://www.vavai.net */
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: PEAR.php Error

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
vavai
Regular
Posts: 37
Joined: Thu Mar 01, 2007 12:43 am
Location: Bekasi-West Java-Indonesia
Contact:

PEAR.php Error

Post 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 :roll:

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 :lol:

Thanks Garvin.
Best Regards,


Vavai
/* Muhammad Rivai Andargini */
/* Migrasi Windows-Linux : http://www.vavai.com/index.php */
/* Blog Vavai : http://www.vavai.com/blog/index.php */
/* Bridge Blogging : http://www.vavai.net */
Post Reply