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

Author Topic: Cannot redeclare _pear_call_destructors()  (Read 1796 times)

strellman

  • Guest
Cannot redeclare _pear_call_destructors()
January 22, 2010, 05:21:42 am
After installing CiviCRM my test site becomes inoperable.  Sure glad I created a test site! Message is:
Fatal error: Cannot redeclare _pear_call_destructors() (previously declared in /usr/lib/php/PEAR.php:773) in /home5/easterne/public_html/test.staff/sites/all/modules/civicrm/packages/PEAR.php on line 806

We are not using plugins_manager or phpids or flashvideo modules (I found those issues and forum topics).
I am using cas, cck, swftools, views, and more but don't know where to look for the conflict.
I am not a php programmer but have administered Drupal sites for several years.  This is my first try at installing CiviCRM

Is this a CiviCRM problem, a problem with another module, or a configuration issue?  What is PEAR?

Piotr Szotkowski

  • Moderator
  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: Cannot redeclare _pear_call_destructors()
January 22, 2010, 09:40:08 am
I assume that you have seen this thread.

PEAR is the standard repository of PHP libraries, and the PEAR problem above is because both CiviCRM and some other program tries to load the common PEAR code at the same time.

Do you use anything other than Drupal+CiviCRM on CiviCRM pages?

Maybe your PHP loads PEAR by default? (/usr/share/pear/PEAR.php is the system-wide installation of PEAR).
If you found the above helpful, please consider helping us in return – you can even steer CiviCRM’s future and help us extend CiviCRM in ways useful to you.

strellman

  • Guest
Re: Cannot redeclare _pear_call_destructors()
January 23, 2010, 08:11:18 am
I will respond to each line.
1. Yes I saw the thread
2. Oh. PHP library. So many modules might want that.
3. Not sure what you mean by CiviCRM pages. At this point the site is inoperable. I don't see the front page or anything.
4. How would I turn this system wide installation off?

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: Cannot redeclare _pear_call_destructors()
January 25, 2010, 09:43:32 am

if i had to guess it is swftools

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)

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

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

This forum was archived on 2017-11-26.