Author Topic: PEAR Destructor Error  (Read 17333 times)

jimspice

  • Beginner
  • *
  • Posts: 41
    • Me
PEAR Destructor Error
« 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
Joomla 1.5.6
VirtueMart 1.1.2 stable
Custom Attributes Extended Hack 2.15

jimspice

  • Beginner
  • *
  • Posts: 41
    • Me
OK, this is just weird -- Re: PEAR Destructor Error
« Reply #1 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]
Joomla 1.5.6
VirtueMart 1.1.2 stable
Custom Attributes Extended Hack 2.15

landforce

  • Beginner
  • *
  • Posts: 3
Re: PEAR Destructor Error
« Reply #2 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!

 ???

jimspice

  • Beginner
  • *
  • Posts: 41
    • Me
Re: PEAR Destructor Error
« Reply #3 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.
Joomla 1.5.6
VirtueMart 1.1.2 stable
Custom Attributes Extended Hack 2.15

raskolnikovj

  • Beginner
  • *
  • Posts: 2
Re: PEAR Destructor Error
« Reply #4 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.

akerman

  • Jr. Member
  • **
  • Posts: 325
  • Knowledge weighs Nothing!
    • STOLT/AKERMAN
Re: PEAR Destructor Error
« Reply #5 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
http://STOLT-AKERMAN.com - Web & Design agency. Spemildt in e-shop, ecommerce and marketing.
http://InfoClip.se - Swedish Antique & Used Books & Art Shop.
http://AkermansCove - Personal Portfolio
Ubuntu LAMP / Joomla 1.5.22 / VM 1.1.6 / JoomFish Contributor / Developer / Designer

raskolnikovj

  • Beginner
  • *
  • Posts: 2
Re: PEAR Destructor Error
« Reply #6 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

akerman

  • Jr. Member
  • **
  • Posts: 325
  • Knowledge weighs Nothing!
    • STOLT/AKERMAN
Re: PEAR Destructor Error
« Reply #7 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
http://STOLT-AKERMAN.com - Web & Design agency. Spemildt in e-shop, ecommerce and marketing.
http://InfoClip.se - Swedish Antique & Used Books & Art Shop.
http://AkermansCove - Personal Portfolio
Ubuntu LAMP / Joomla 1.5.22 / VM 1.1.6 / JoomFish Contributor / Developer / Designer

mcottier

  • Beginner
  • *
  • Posts: 5
Re: PEAR Destructor Error
« Reply #8 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.

decrea

  • Beginner
  • *
  • Posts: 23
Re: PEAR Destructor Error
« Reply #9 on: August 13, 2009, 17:15:56 pm »
it worked for me

thanx :D

pannsoln

  • Beginner
  • *
  • Posts: 1
Re: PEAR Destructor Error
« Reply #10 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!

Liquid

  • Beginner
  • *
  • Posts: 5
Re: PEAR Destructor Error
« Reply #11 on: October 14, 2009, 17:24:15 pm »
hi all
i disabled the yvbbcode plugin and its works fine now

GottchYaGear

  • Beginner
  • *
  • Posts: 1
Re: PEAR Destructor Error
« Reply #12 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

enolbos

  • Jr. Member
  • **
  • Posts: 64
Re: PEAR Destructor Error
« Reply #13 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.

iibasarah

  • Beginner
  • *
  • Posts: 4
Re: PEAR Destructor Error
« Reply #14 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...