Fatal error: Cannot redeclare _pear_call_destructors() (previously declared in /var/www/vhosts/site URL/httpdocs/cms/sites/all/modules/flashvideo/drivers/Storage3/PEAR.php:759) in /var/www/vhosts/site URL/httpdocs/cms/sites/all/modules/civicrm/packages/PEAR.php on line 806

I get this error when I try to configure the Flashvideo settings, I also have CivicRM installed. It disapears when I disable CIVICRM (obviously).

Can this be fixed?

Thanks for your help.

Comments

attheshow’s picture

Category: bug » support
Status: Active » Postponed (maintainer needs more info)

And you're actively using the FlashVideo S3 module? If you're not, you could disable it and that should solve your issue. If you're actively using it, I'm guessing you might be able to go into your /drivers/Storage3/Request.php file and change the line that currently says "require_once 'PEAR.php';" and point it to the CiviCRM version of the file. That would prevent the function from being redeclared. I can't promise that this would work, but you might give it a shot.

This is a bit of a grey area for the FlashVideo module because those S3 storage files are not currently a part of the module itself and are maintained on an individual maintainer's (Travis's) site. I also don't personally use the FlashVideo S3 plugin, so my experience with it is limited.

travist’s picture

Status: Postponed (maintainer needs more info) » Closed (won't fix)

Yeah, I can see how this is an issue... I responded to another comment with the best suggestion that I have. It is worth a shot.

http://drupal.org/node/472208

Ultimately the best solution here it to create a common module that both the CivicCRM and the FlashVideo module use to add this S3 communication. Then there would be no conflict. However, in order for this to happen, there would need to be major cooperation between the maintainers of CivicCRM as well as FlashVideo (myself or Mark), and then someone would have to create that module. Not sure if anyone who reads this is up to that challenge, but if they are, it would be greatly appreciated.