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 »
  • Using Drupal Modules (Moderator: Donald Lobo) »
  • Drupal 6 and redeclare issues
Pages: [1]

Author Topic: Drupal 6 and redeclare issues  (Read 911 times)

SandStorm

  • Guest
Drupal 6 and redeclare issues
November 07, 2010, 01:41:36 am
Hi,

I get the following error:

Fatal error: Cannot redeclare _pear_call_destructors() (previously declared in /usr/share/php/PEAR.php:775) in /usr/www/users/nesajk/sites/all/modules/civicrm/packages/PEAR.php on line 811

this happens when I want to access the admin interface of Drupal (/admin) and if I want to install modules cia the 'plugin' module.

Disabling the 'plugin' module seems to work.

Do I have to keep the plugin module disabled now and install manually?


SandStorm

  • Guest
Re: Drupal 6 and redeclare issues
November 07, 2010, 02:43:56 am
I just narrowed the problem down to these two modules (any of the two can be enabled and the proble occurs)

CiviGroup Roles Sync   3.1

CiviMember Roles Sync   3.1

any tips?

I don't want to have to disable these two every time I want to install modules.

zamek

  • I’m new here
  • *
  • Posts: 2
  • Karma: 0
Re: Drupal 6 and redeclare issues
November 14, 2010, 07:41:08 am
I don't know if this will help.

I was getting the same error but 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"

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Drupal Modules (Moderator: Donald Lobo) »
  • Drupal 6 and redeclare issues

This forum was archived on 2017-11-26.