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) »
  • Fatal error: Cannot redeclare _pear_call_destructors()
Pages: [1]

Author Topic: Fatal error: Cannot redeclare _pear_call_destructors()  (Read 12971 times)

allentseng

  • Guest
Fatal error: Cannot redeclare _pear_call_destructors()
June 19, 2008, 01:35:55 am
Hello,

  after install and enable civicrm module, I get follow error,

Fatal error: Cannot redeclare _pear_call_destructors() (previously declared in /usr/share/pear/PEAR.php:765) in /var/www/html/portal2/sites/all/modules/civicrm/packages/PEAR.php on line 796

  apprently our system built-in pear has conflict with pear comes with civicrm. anyone know how to do with this problem??

Thanks
Allen

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Fatal error: Cannot redeclare _pear_call_destructors()
July 16, 2008, 02:44:58 am
i guess you will have to disable "built-in pear", i wouldn't recommend removing pear packages from CiviCRM, since we have made few modifications to some of the pear packages.

kurund
Found this reply helpful? Support CiviCRM

cosmicdreams

  • Guest
Re: Fatal error: Cannot redeclare _pear_call_destructors()
March 04, 2009, 07:39:40 am
Looks like this problem could be related to : http://forum.civicrm.org/index.php/topic,267.0.html

cosmicdreams

  • Guest
Re: Fatal error: Cannot redeclare _pear_call_destructors()
March 04, 2009, 09:06:06 am
Related to drupal error reported here: http://drupal.org/node/390108

Advice on how to resolve this?

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: Fatal error: Cannot redeclare _pear_call_destructors()
March 04, 2009, 09:47:00 am

i dont think an easy solution exists for this. You will need to decide between using plugin_manager or CiviCRM (since both use PEAR).

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

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

cosmicdreams

  • Guest
Re: Fatal error: Cannot redeclare _pear_call_destructors()
March 04, 2009, 12:55:36 pm
Does Civicrm use require_once/include_once at ever call of PEAR.php?  It seems to me that plugin_manager is called first.  I don't understand why CiviCRM needs be called on that page.

is CiviCRM code invoke on every page?

tobiaseigen

  • I post frequently
  • ***
  • Posts: 151
  • Karma: 5
    • Kabissa - Space for Change in Africa
Re: Fatal error: Cannot redeclare _pear_call_destructors()
September 10, 2010, 05:48:42 am
Hi cosmicdreams - did you ever sort this out? I am getting this error now myself with another module.

thanks!

-t
Kabissa - Space for Change in Africa http://kabissa.org

marketman

  • I’m new here
  • *
  • Posts: 14
  • Karma: 0
Re: Fatal error: Cannot redeclare _pear_call_destructors()
October 12, 2010, 04:02:12 pm
I am also getting this error when using the Backup Directories Module, when I back up the files directory.

felixmartel

  • I post occasionally
  • **
  • Posts: 47
  • Karma: 0
  • CiviCRM version: 3.4.7
  • CMS version: Drupal 6.31
  • MySQL version: 5.1.54
  • PHP version: 5.3.5
Re: Fatal error: Cannot redeclare _pear_call_destructors()
February 15, 2011, 08:39:45 pm
Has there been any progress on this issue ? I've seen posts about it on the Drupal forums as well. I'm currently installing and getting the same error. I've disabled just about everything on my site except CiviCRM and I'm still getting this error.

Any workarounds? I'm on a shared host and don't have access to the \usr directory.

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Fatal error: Cannot redeclare _pear_call_destructors()
February 15, 2011, 10:46:34 pm
May be grep files for "_pear_call_destructors() " and then uninstall module that leads to this problem.

Kurund
Found this reply helpful? Support CiviCRM

liza.s

  • I’m new here
  • *
  • Posts: 15
  • Karma: 0
Re: Fatal error: Cannot redeclare _pear_call_destructors()
June 13, 2013, 11:00:40 am
Quote from: Donald Lobo on March 04, 2009, 09:47:00 am

i dont think an easy solution exists for this. You will need to decide between using plugin_manager or CiviCRM (since both use PEAR).

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

lobo

this is unreasonable in a Drupal installation running other modules requiring PEAR at the sever root level. could  you please address this problem? i can't run cron manually due to this "require once" rule in civicrm.

thanks.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Fatal error: Cannot redeclare _pear_call_destructors()

This forum was archived on 2017-11-26.