CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • CivicRM - Pear conflict with Drupal Flashvideo module
Pages: [1]

Author Topic: CivicRM - Pear conflict with Drupal Flashvideo module  (Read 1726 times)

jmkaep

  • I post occasionally
  • **
  • Posts: 41
  • Karma: 1
CivicRM - Pear conflict with Drupal Flashvideo module
May 17, 2009, 09:53:51 am
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 am getting this message when I try to configure the Flash video module.

I am not a programmer but I understand that both modules are calling up the same functions and cause a fatal error. Is there something I can do to make the two modules play nice? Comment something out or apply a patch.

This error message also appears when other Drupal modules user PEAR. Would it be possible to change the CIVICRM module so that is doesn't cause this fatal error?

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: CivicRM - Pear conflict with Drupal Flashvideo module
May 17, 2009, 05:02:29 pm

You'll have to seek some assistance from some programmer friends and see if you can come up with a patch that will help multiple drupal modules coexist together if they use PEAR. We dont use any of those modules and hence cannot help out

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

jmkaep

  • I post occasionally
  • **
  • Posts: 41
  • Karma: 1
Re: CivicRM - Pear conflict with Drupal Flashvideo module
May 18, 2009, 07:12:02 am
I'm curious, the error message states that "Cannot redeclare _pear_call_destructors". Functions that were declared in civicrm/packages/PEAR.php cause a conflict with flashvideo/drivers/Storage3/PEAR.php.

Shouldn't the civicRm module be coded so that it doesn't cause this type of conflict with other Drupal modules? Or maybe vice versa?


Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: CivicRM - Pear conflict with Drupal Flashvideo module
May 18, 2009, 09:23:51 am
Quote from: jmkaep on May 18, 2009, 07:12:02 am
Shouldn't the civicRm module be coded so that it doesn't cause this type of conflict with other Drupal modules? Or maybe vice versa?

We do use require_once in all our calls to ensure a file is loaded only once. You might want to check the code in the flash storage drivers and ensure that it does the same

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

jmkaep

  • I post occasionally
  • **
  • Posts: 41
  • Karma: 1
Re: CivicRM - Pear conflict with Drupal Flashvideo module
May 20, 2009, 10:56:39 am
Maybe I'll give that a shot later.

Just copy the syntax from the civicrm pear file, right. :-\

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: CivicRM - Pear conflict with Drupal Flashvideo module
May 29, 2009, 09:53:22 am

check this thread for a potential fix (a bit hacky, but works)

http://forum.civicrm.org/index.php/topic,8191.msg35515.html#msg35515

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • CivicRM - Pear conflict with Drupal Flashvideo module

This forum was archived on 2017-11-26.