VirtueMart Forum

VirtueMart 1.1.x [ Old version - no longer supported ] => Questions VM 1.1 ( the only active board for the old version) => Topic started by: jimspice on June 17, 2008, 18:00:53 pm

Title: PEAR Destructor Error
Post by: jimspice on June 17, 2008, 18:00:53 pm
When I try to access top level categories, I get the following error:

Quote
Fatal error: Cannot redeclare _pear_call_destructors() (previously declared in /home/zzzzzzzz/public_html/administrator/components/com_virtuemart/PEAR.php:686) in /usr/lib/php/PEAR.php on line 806

Trying to selectively comment out lines in PEAR.php just results in a cascade of additional errors.

Any ideas?

Spice
Title: OK, this is just weird -- Re: PEAR Destructor Error
Post by: jimspice on June 19, 2008, 19:44:17 pm
I haven't made any changes that should affect this, but I'm no longer getting the "destructor" error, but now when I access the shop front page, or any category pages I now get a white page with page source, in whole:

Quote
<div id="vmMainPage">

Any ideas?  Joomla and system info attached for reference (it's really a html file but has a txt extension).

Spice

[attachment cleanup by admin]
Title: Re: PEAR Destructor Error
Post by: landforce on June 26, 2008, 09:05:07 am
BUMP! Having this exact same problem. I'm a bit new to Joomla and VM but I'm no dummy. I didn't get this error until I added an image to the category. I have uninstalled and installed. No luck. Really need help with this.

TIA!

 ???
Title: Re: PEAR Destructor Error
Post by: jimspice on July 11, 2008, 00:06:41 am
I found my problem.  It was a conflict with the Flickr slideshows plugin from http://joomla.universalplayground.nl  Disabled it and all is well.
Title: Re: PEAR Destructor Error
Post by: raskolnikovj on August 05, 2008, 19:59:17 pm
I'm getting the same error, I tried disabling plugins one by one but to no avail.

I have VM 1.1.2 installed on Joomla 1.5.5

The shop loads fine, and lists the categories, then I get the error when click on on any of the categories.
Title: Re: PEAR Destructor Error
Post by: akerman on August 05, 2008, 23:11:44 pm
Never seen that specific error before, as stated by 'jimspice'. Seem also like he solved it, since he had some kind of conflict.

For others with problems related to 'PEAR';
A basic check is to make certain that the directory is spelled with upper case letters.
Sometimes an FTP transfer can distort the name, tuning them into lower case, and whilst some PHP calls within VM expects 'PEAR', it wont understand 'pear'.


FYI

Regards
Akerman
Title: Re: PEAR Destructor Error
Post by: raskolnikovj on August 05, 2008, 23:26:00 pm
I checked that and the PEAR directory is all uppercase

The error I get says:

Fatal error: Cannot redeclare _pear_call_destructors() (previously declared in /home/content/m/y/s/mysite/html/libraries/pear/PEAR.php:765) in /home/content/m/y/s/mysite/html/administrator/components/com_virtuemart/PEAR.php on line 714
Title: Re: PEAR Destructor Error
Post by: akerman on August 06, 2008, 00:55:16 am
I'm no programmer but from your error message I can see that the two different 'pear' installations (one in Joomla! and one in VM), are fighting.  :)

Somehow it seems like Joomla! pear, is trying to redeclare the function function _PEAR_call_destructors() ,

whilst the VM pear already seems to be declared...


Maybe some inconsistencies in the Joomla!/VM installation?


This goes beyond my skills, I'm afraid. Hopefully someone more skilled can come to the rescue?  ;)


Regards
Akerman
Title: Re: PEAR Destructor Error
Post by: mcottier on February 06, 2009, 00:30:51 am
I actually figured this out. Just delete the entire contents of the PEAR.php file under the administrator/components/com_virtuemart folder and everything goes back to normal. I read the entire PEAR.php file and basically all it is, is a file that produces that error if the destructor's are called twice.
Title: Re: PEAR Destructor Error
Post by: decrea on August 13, 2009, 17:15:56 pm
it worked for me

thanx :D
Title: Re: PEAR Destructor Error
Post by: pannsoln on September 17, 2009, 13:59:16 pm
... delete the entire contents of the PEAR.php file ...

Wow. I had a big fright when I saw this error, and had some confusion trying to uninstall VirtueMart so that I could reinstall it.

Could I ask the developers to do that in the original installation file? I'm sure that people on this forum (including me!) is just a drop in the ocean of people having this problem. It really does cause problems when it fails on installation!
Title: Re: PEAR Destructor Error
Post by: Liquid on October 14, 2009, 17:24:15 pm
hi all
i disabled the yvbbcode plugin and its works fine now
Title: Re: PEAR Destructor Error
Post by: GottchYaGear on November 13, 2009, 20:53:12 pm
Just found how to fix my problem. The forums are so vital! Just glad that I could find the fix!!
Ray Salyer
Gottch-Ya! Graphix, USA
www.gg-usa.com
www.fpcradio.com
Title: Re: PEAR Destructor Error
Post by: enolbos on April 09, 2010, 15:25:15 pm
Just delete the entire contents of the PEAR.php file under the administrator/components/com_virtuemart folder and everything goes back to normal.

Perfect. Thanks for this easy fix.
Title: Re: PEAR Destructor Error
Post by: iibasarah on February 11, 2011, 20:23:13 pm
I actually figured this out. Just delete the entire contents of the PEAR.php file under the administrator/components/com_virtuemart folder and everything goes back to normal. I read the entire PEAR.php file and basically all it is, is a file that produces that error if the destructor's are called twice.

not works for me.... any other solution....pls...
Title: Re: PEAR Destructor Error
Post by: sitebuildernow on June 16, 2011, 18:16:48 pm
Hi all - I tried deleting the PEAR.php as noted and then I get call to function errors ... any other suggestions?

I am getting this when doing a "product search" on the website: http://www.joannmorgan.com.

Thanks!
Harmony
Title: Re: PEAR Destructor Error
Post by: totallycovered on September 11, 2011, 23:32:45 pm
It's been a couple of months since your post, but I wanted to say:

1) Don't delete the pear.php file, just blank it out.  In other words, edit it, delete everything, and save it back.

2) The solution worked for me, thanks!  Now we can have Virtuemart AND enjoy the delights of bbcode in our forums.
Title: Re: PEAR Destructor Error
Post by: jorgon on October 08, 2011, 09:19:42 am
Brilliant thanks!
Empty PEAR.php file (well, one space) worked for me!