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 6291 times)

fm

  • I post occasionally
  • **
  • Posts: 80
  • Karma: 1
Fatal error: Cannot redeclare _PEAR_call_destructors()
October 12, 2010, 03:00:41 pm
I have begun to receive the error message below. Most other threads addressing this issue advise removing Plugin Manager to solves the issue; however, I don't have Plugin Manager installed -- never have.

Fatal error: Cannot redeclare _PEAR_call_destructors() (previously declared in /usr/lib/php/PEAR.php:773) in ~/sites/all/modules/civicrm/packages/PEAR.php on line 811

Any recommendations on how to resolve this issue?

marketman

  • I’m new here
  • *
  • Posts: 14
  • Karma: 0
Re: Fatal error: Cannot redeclare _PEAR_call_destructors()
October 12, 2010, 04:05:02 pm
Fm, do you have the backup module installed? I am getting the exact line number errors as you. 

fm

  • I post occasionally
  • **
  • Posts: 80
  • Karma: 1
Re: Fatal error: Cannot redeclare _PEAR_call_destructors()
October 12, 2010, 04:10:47 pm
Nope, I do not have the 'Backup' module installed, nor is it present in the directory.
However, the 'Backup & Migrate' module is present in the modules directory, but it is not yet installed.

fm

  • I post occasionally
  • **
  • Posts: 80
  • Karma: 1
Re: Fatal error: Cannot redeclare _PEAR_call_destructors()
November 03, 2010, 10:42:26 am
I'm still experiencing this problem. I should note that I am running two other installations off this same code base and neither of the other installations is experiencing this issue.

Line 811 in the cited file is merely a closed-bracket. I don't know what to make of that other than I imagine the browser expects the code to continue.

I've looked at Firebug (though I'm by no means a expert with it) and have found no clues as to the source of the issue.

sjnorton

  • I’m new here
  • *
  • Posts: 10
  • Karma: 0
Re: Fatal error: Cannot redeclare _PEAR_call_destructors()
November 10, 2010, 08:19:46 am
I receive this same error when updating my Drupal installation (update.php), both before and after upgrading to the latest stable version of CiviCRM. But once I get past this, everything seems to work ok (haven't had a chance to test thoroughly). Hadn't seen this before; cropped up while updating Drupal to 6.19.

Ideas? Help?

zamek

  • I’m new here
  • *
  • Posts: 2
  • Karma: 0
Re: Fatal error: Cannot redeclare _PEAR_call_destructors()
November 14, 2010, 07:35:28 am
Same problem here and I'm not using any of the Drupal modules (e.g. plugin manager) that have been know to cause this problem.

I had to modify my php.ini configuration file to include the path to CiviCRM's PEAR.php before my server's PEAR.php.  Worked so far, hopefully there won't be any conflicts.

php.ini
include_path = ".:/home/public_html/drupal/sites/all/modules/civicrm/packages:/usr/lib/php:/usr/local/lib/php"
« Last Edit: November 14, 2010, 07:37:11 am by zamek »

fm

  • I post occasionally
  • **
  • Posts: 80
  • Karma: 1
Re: Fatal error: Cannot redeclare _PEAR_call_destructors()
December 04, 2010, 08:19:59 pm
zamek's workaround does not seem to be working for me.

floX

  • I’m new here
  • *
  • Posts: 1
  • Karma: 0
  • CiviCRM version: 3.3
  • CMS version: Drupal 6.20
  • MySQL version: ?
  • PHP version: ?
Re: Fatal error: Cannot redeclare _PEAR_call_destructors()
February 15, 2011, 02:41:13 am
Dear All,


I have encountered the same problem and solved it by selectively disabling all installed modules. For this, it helps to rename the "civicrm" folder in your modules folder with an ftp client. Then, although civicrm is selected as a module, it cannot be loaded and thus doesn't "break" Drupal. Of course, once you found the offending module, rename the folder to "civicrm" again...

The interfering module I found was
"send by e-mail v6.x.1.12" sub-module of the "print" module. The other sub-modules "PDF version" and "Printer-friendly pages" work fine. Btw, Backup-Migrate 6.x-2.4 works fine, too.
Hope this helps.

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:42:55 pm
How do you know you've found the offending module? Trial and error?

technil

  • I’m new here
  • *
  • Posts: 14
  • Karma: 1
  • CiviCRM version: 3.2, 3.3.5
  • CMS version: Drupal 6.22
  • MySQL version: 5.1.41, 5.0.45
  • PHP version: 5.3.2, 5.2.6
Re: Fatal error: Cannot redeclare _PEAR_call_destructors()
April 13, 2011, 07:36:45 pm
zamek is onto it, but keep in mind, that your php libs and civicrm module directory paths will be different. Check out this  thread http://forum.civicrm.org/index.php?topic=14372.0, The problem is a conflict between the including of the PHP PEAR package installed with the system/os (In my case, on ubuntu 10.04.2 - /usr/share/php/PEAR.php) and the inclusion of the PHP PEAR package shipped within civicrm, in my case ( .../sites/all/modules/civicrm/packages/PEAR.php).  Just posting to make sure people see the other threads on this topic.

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.