Hi Kyle,

I am experimenting with og_mailinglist on my site, and am getting this error:

Fatal error: Cannot redeclare _pear_call_destructors() (previously declared in /usr/share/pear/PEAR.php:775) in /var/www/vhosts/foo.com/httpdocs/sites/all/modules/civicrm/packages/PEAR.php on line 806

This is clearly related to CiviCRM, which I also have installed. According to an old CiviCRM forum post about plugin_manager the issue may be related to this:

"You might also want to check that plugin_manager always uses include_once/require_once which avoids loading the same file twice"

Any thoughts on ways to allow CiviCRM and OGM to coexist?

Cheers,

Tobias

Comments

tobias’s picture

Or this suggestion from another civi forum post:

"a good workaround for now, might be to put a conditional around PEAR.php to not load if its already loaded (i.e. if class_exists)"

tobias’s picture

Status: Active » Closed (works as designed)

Hi Kyle,

Sorry for posting confusing bug reports. This error appears when I go to /og_mailinglist/subscription but it does not appear and OGM works as advertised when I go to the CORRECT link which is /og_mailinglist/subscriptions. Not sure why the error is popping up at the wrong URL.

Closing this issue.

Cheers,

Tobias