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

Author Topic: Fatal error  (Read 460 times)

ewanmclean

  • I post occasionally
  • **
  • Posts: 36
  • Karma: 0
Fatal error
March 31, 2014, 08:15:00 pm
Code: [Select]
Fatal error: Cannot redeclare _PEAR_call_destructors() (previously declared in /usr/lib/php/PEAR.php:735) in /home/republic/public_html/sites/all/modules/civicrm/packages/PEAR.php on line 811
Hi

I am constantly getting this error whenever I try to update, enable or disable any drupal module. I can't for the life of me figure out what's wrong.

Any ideas?

Thanks

JonGold

  • Ask me questions
  • ****
  • Posts: 638
  • Karma: 81
    • Palante Technology
  • CiviCRM version: 4.1 to the latest
  • CMS version: Drupal 6-7, Wordpress 4.0+
  • PHP version: PHP 5.3-5.5
Re: Fatal error
March 31, 2014, 09:17:35 pm
Hi Ewan,

You have PEAR somewhere in your $PATH.  Googling "Cannot redeclare _PEAR_call_destructors" will give you lots of (non-CiviCRM-specific) results.

This is a pretty good explanation of an approach to fixing it:
http://forums.uber.com.au/showthread.php?1851-PEAR-Fatal-error-Cannot-redeclare

If you don't have any programs that use the PEAR in your $PATH, you can always remove it from your $PATH.
Sign up to StackExchange and get free expert CiviCRM advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

ewanmclean

  • I post occasionally
  • **
  • Posts: 36
  • Karma: 0
Re: Fatal error
April 01, 2014, 10:37:04 am
Okay, I've contacted my host to see if they can assist with the PATH variable.

Do you know if the workaround described on the link would work for Civi? If so where would I insert the ini_set lines? index.php?

ewanmclean

  • I post occasionally
  • **
  • Posts: 36
  • Karma: 0
Re: Fatal error
April 01, 2014, 05:44:32 pm
As far as I can work out, this is my path include_path = ".:/usr/lib/php:/usr/local/lib/php"

I don't see PEAR there - does that mean the problemn lies elsewhere?

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

This forum was archived on 2017-11-26.