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) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Cannot redeclare drupal_error_levels() ... CRM/Core/Controller.php
Pages: [1]

Author Topic: Cannot redeclare drupal_error_levels() ... CRM/Core/Controller.php  (Read 2002 times)

johndieter

  • I’m new here
  • *
  • Posts: 25
  • Karma: 0
  • CiviCRM version: 4.1 beta 2
  • CMS version: drupal 7.10
  • MySQL version: 5
  • PHP version: 5
Cannot redeclare drupal_error_levels() ... CRM/Core/Controller.php
May 18, 2012, 09:21:25 am
PHP Fatal error:  Cannot redeclare drupal_error_levels() in /var/www/drupal/sites/all/modules/civicrm/CRM/Core/Controller.php on line 30

Causing an apache seg fault(11) crash
This started after copying to a new server.


Line 30 in this file is a header comment.

here are the first few (non comment) lines of this file:

require_once 'HTML/QuickForm/Controller.php';
require_once 'HTML/QuickForm/Action/Direct.php';
require_once 'CRM/Core/StateMachine.php';
class CRM_Core_Controller extends HTML_QuickForm_Controller {


johndieter

  • I’m new here
  • *
  • Posts: 25
  • Karma: 0
  • CiviCRM version: 4.1 beta 2
  • CMS version: drupal 7.10
  • MySQL version: 5
  • PHP version: 5
incuded file
May 18, 2012, 09:27:30 am
locate Controller.php

/var/www/drupal/sites/all/modules/civicrm/CRM/Core/Controller.php
...
/var/www/drupal/sites/all/modules/civicrm/packages/HTML/QuickForm/Controller.php

also seeing: PHP Fatal error:  Cannot redeclare class InsertQuery in /var/www/drupal/includes/database/query.inc on line 727,
right after the redeclare error levels stuff
« Last Edit: May 18, 2012, 09:30:55 am by johndieter »

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 drupal_error_levels() ... CRM/Core/Controller.php
May 18, 2012, 09:29:40 am

what version of PHP? The easiest thing to do in this case is to upgrade your php version

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

idmacdonald

  • I post occasionally
  • **
  • Posts: 69
  • Karma: 1
Re: Cannot redeclare drupal_error_levels() ... CRM/Core/Controller.php
June 07, 2012, 06:04:49 am
Hi,

I'm sometimes getting that same fatal error, with PHP 5.3.3 and CiviCRM 4.0.4. I've had a look at the code, and I don't really understand what's going on, since drupal_error_levels() doesn't seem to be defined as a function anywhere in CiviCRM's code, so it must be happening within some sort of Drupal bootstrap function.

-Ian

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Cannot redeclare drupal_error_levels() ... CRM/Core/Controller.php

This forum was archived on 2017-11-26.