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 »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • PHP Fatal error: Class 'DB' not found
Pages: [1]

Author Topic: PHP Fatal error: Class 'DB' not found  (Read 1241 times)

emilyf

  • Ask me questions
  • ****
  • Posts: 696
  • Karma: 54
  • CiviCRM version: 2.x - 4.x
  • CMS version: Drupal 5, 6, 7
PHP Fatal error: Class 'DB' not found
January 28, 2014, 12:25:20 pm
I upgraded my CiviCRM install from 4.3.8 to 4.4 last week. Everything seemed to be working, but I've noticed today that we are having some fatal errors written to the log and causing some troubles. I think they may be two separate errors.

First, Apache logs show the following error, and it is occurring every 15 minutes, which is when I run sites/all/modules/civicrm/bin/cron.php:

Code: [Select]
PHP Fatal error:  Class 'DB' not found in /sites/all/modules/civicrm/CRM/Utils/System.php on line 614


Then, in addition, I am seeing the Drupal logs are showing things like:

Code: [Select]
Location http://mysite.org/civicrm/event/info?reset=1&id=22
Referrer
Message $Fatal Error Details = Array ( [message] => The page you requested is currently unavailable. [code] => )

and

Code: [Select]
Location http://mysite.org/civicrm/event/info?reset=1&id=22
Referrer
Message $backTrace = #0 /sites/all/modules/civicrm/CRM/Core/Error.php(322): CRM_Core_Error::backtrace("backTrace", TRUE) #1 /sites/all/modules/civicrm/CRM/Event/Page/EventInfo.php(83): CRM_Core_Error::fatal("The page you requested is currently unavailable.") #2 /sites/all/modules/civicrm/CRM/Core/Invoke.php(323): CRM_Event_Page_EventInfo->run((Array:3), NULL) #3 /sites/all/modules/civicrm/CRM/Core/Invoke.php(72): CRM_Core_Invoke::runItem((Array:15)) #4 /sites/all/modules/civicrm/CRM/Core/Invoke.php(52): CRM_Core_Invoke::_invoke((Array:3)) #5 /sites/all/modules/civicrm/drupal/civicrm.module(456): CRM_Core_Invoke::invoke((Array:3)) #6 [internal function](): civicrm_invoke("event", "info") #7 /includes/menu.inc(517): call_user_func_array("civicrm_invoke", (Array:2)) #8 /index.php(21): menu_execute_active_handler() #9 {main}

This looks to be an issue with events.

Ideas on what is going on?

emilyf

  • Ask me questions
  • ****
  • Posts: 696
  • Karma: 54
  • CiviCRM version: 2.x - 4.x
  • CMS version: Drupal 5, 6, 7
Re: PHP Fatal error: Class 'DB' not found
January 28, 2014, 01:04:47 pm
For cron, this is the command I issue:

*/15 * * * * /usr/bin/wget -O - -q -t 1 'http://mysite.org/sites/all/modules/civicrm/bin/cron.php?name=NAME&pass=PASS&key=KEY' > /dev/null 2>&1

where my credentials are filled in as usual. Had updated crontab after upgrade from 4.2, so I didn't think there was anything further that needed to be done?

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • PHP Fatal error: Class 'DB' not found

This forum was archived on 2017-11-26.