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 »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • CRON: Fatal error: Cannot redeclare _pear_call_destructors()
Pages: [1]

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

TallDavid

  • I post occasionally
  • **
  • Posts: 41
  • Karma: 2
    • ATO Zeta Mu Alumni
  • CiviCRM version: 3.4.8
  • CMS version: Drupal 6.22
  • MySQL version: 5.1.52
  • PHP version: 5.2.13
CRON: Fatal error: Cannot redeclare _pear_call_destructors()
January 30, 2010, 09:42:03 pm
CiviCRM 3.1.1 on Drupal 6.15

On CRON run I'm getting:
Quote
"Fatal error: Cannot redeclare _pear_call_destructors() (previously declared in /usr/lib/php/PEAR.php:775) in .../civicrm/packages/PEAR.php  on line 811"

Suggestions?

Note to self: [az.org]

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: CRON: Fatal error: Cannot redeclare _pear_call_destructors()
January 31, 2010, 06:53:28 am

most likely you are using another drupal module that conflicts with Civi's PEAR install

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

Alan.Guggenheim

  • Guest
Re: CRON: Fatal error: Cannot redeclare _pear_call_destructors()
February 13, 2010, 01:41:14 pm
Got the same error after upgrading to 3.1.2
I did a search, and no other module has pear.php. It looks like the only conflict is in: /usr/lib/php/PEAR.php
which is the lib itself!

Fatal error: Cannot redeclare _pear_call_destructors() (previously declared in /usr/lib/php/PEAR.php:775) in <home>sites/all/modules/civicrm/packages/PEAR.php on line 811


What is the recommanded fix, then?
« Last Edit: February 13, 2010, 01:53:41 pm by Alan.Guggenheim »

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: CRON: Fatal error: Cannot redeclare _pear_call_destructors()
February 13, 2010, 04:55:21 pm

no idea, u'll need to figure out what is happening and why. If you make progress please update this topic

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

Alan.Guggenheim

  • Guest
Re: CRON: Fatal error: Cannot redeclare _pear_call_destructors()
February 14, 2010, 09:37:22 pm
I renamed the PEAR.php in CiviCRM to .bak and it is running fine now.

Тони Стоев | Toni Stoev

  • Guest
Fatal error: Cannot redeclare _pear_call_destructors()
February 17, 2010, 02:47:39 pm
I had the same issue. I was enabling Plugin Manager module when this error came up.

I disabled the CiviCRM module. Then I enabled Plugin Manager. Then I re-enabled CiviCRM and it worked fine.

nicozdunich

  • Guest
Re: CRON: Fatal error: Cannot redeclare _pear_call_destructors()
July 12, 2010, 02:15:48 pm
Disabling and re-enabling does not work. Any other options?

Keith

  • I post occasionally
  • **
  • Posts: 42
  • Karma: 0
Re: CRON: Fatal error: Cannot redeclare _pear_call_destructors()
December 01, 2010, 11:32:07 am
Quote from: Alan.Guggenheim on February 14, 2010, 09:37:22 pm
I renamed the PEAR.php in CiviCRM to .bak and it is running fine now.

This worked for me. I don't know it will break something else, though!

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: CRON: Fatal error: Cannot redeclare _pear_call_destructors()
April 13, 2011, 07:40:03 pm
Check out this thread http://forum.civicrm.org/index.php?topic=14372.0 for more info.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • CRON: Fatal error: Cannot redeclare _pear_call_destructors()

This forum was archived on 2017-11-26.