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) »
  • Error when upgrading 4.4.6 to 4.5
Pages: [1]

Author Topic: Error when upgrading 4.4.6 to 4.5  (Read 715 times)

kenahoo

  • I post occasionally
  • **
  • Posts: 83
  • Karma: 1
  • CiviCRM version: 4.1.1
  • CMS version: Drupal 7.15
  • MySQL version: 5.1.63
  • PHP version: 5.3.16
Error when upgrading 4.4.6 to 4.5
October 03, 2014, 05:42:56 am
I'm getting this error when I try to run my upgrade script (http://localhost/civicrm/upgrade?reset=1):

Code: [Select]
Fatal error: Cannot redeclare class DB_Error in /Users/ken/Documents/SIA/site-upgrade/sites/all/modules/civicrm/packages/DB.php on line 983

Call Stack
# Time Memory Function Location
1 0.0006 237288 {main}( ) ../index.php:0
2 0.3792 28631352 menu_execute_active_handler( ) ../index.php:21
3 0.3798 28632824 call_user_func_array ( ) ../menu.inc:517
4 0.3798 28633160 civicrm_invoke( ) ../menu.inc:517
5 0.3798 28633336 civicrm_initialize( ) ../civicrm.module:388
6 0.3935 29577368 CRM_Core_Config::singleton( ) ../civicrm.module:265
7 0.4313 32531016 CRM_Core_Config->_initVariables( ) ../Config.php:222
8 0.4331 32664088 CRM_Core_BAO_ConfigSetting::retrieve( ) ../Config.php:445
9 0.4346 32814152 CRM_Core_DAO_Domain->__construct( ) ../ConfigSetting.php:213
10 0.4347 32814264 CRM_Core_DAO->__construct( ) ../Domain.php:148
11 0.4347 32814328 CRM_Core_DAO->initialize( ) ../DAO.php:86
12 0.4347 32814376 DB_DataObject->_connect( ) ../DAO.php:365

Any hints on what could be going on?  I'm using:

Drupal 7.31
MySQL 5.5.21
PHP 5.4.24

 -Ken

kenahoo

  • I post occasionally
  • **
  • Posts: 83
  • Karma: 1
  • CiviCRM version: 4.1.1
  • CMS version: Drupal 7.15
  • MySQL version: 5.1.63
  • PHP version: 5.3.16
Re: Error when upgrading 4.4.6 to 4.5
October 05, 2014, 06:55:00 pm
So has nobody else encountered a similar problem?

kenahoo

  • I post occasionally
  • **
  • Posts: 83
  • Karma: 1
  • CiviCRM version: 4.1.1
  • CMS version: Drupal 7.15
  • MySQL version: 5.1.63
  • PHP version: 5.3.16
Re: Error when upgrading 4.4.6 to 4.5
October 10, 2014, 06:25:48 pm
I see that 4.5.1 is released now, is it likely to fix this problem?  I'm still not clear on what went wrong.

Dan C

  • I post frequently
  • ***
  • Posts: 179
  • Karma: 17
  • CiviCRM version: All
  • CMS version: Joomla 2.5 and 3.X, Drupal 7, Wordpress 3.7 and up
  • MySQL version: 5.1.7 and up
  • PHP version: 5.3.5 and up
Re: Error when upgrading 4.4.6 to 4.5
October 11, 2014, 06:34:28 am
It is possible, I would recommend trying 4.5.1 and see if it continues to happen.  I have not personally encountered this but if it still happens can you go into your Civi log and post the full error from there here?  I will see if I can see anything from there that might help.
CrusonWeb - Web Development, Implementation, and Support.  Specializing in CiviCRM and Joomla (although also knowledgable in Wordpress and Drupal as well).

kenahoo

  • I post occasionally
  • **
  • Posts: 83
  • Karma: 1
  • CiviCRM version: 4.1.1
  • CMS version: Drupal 7.15
  • MySQL version: 5.1.63
  • PHP version: 5.3.16
Re: Error when upgrading 4.4.6 to 4.5
December 18, 2014, 09:44:58 pm
I'm revisiting this thread - I had to give up last time, but I'm trying again (this time upgrading from 4.4.11 to 4.5.5, though) and I still get the same error.

I'd like to look in the logs, but no logs seem to be written - all the files in sites/default/files/civicrm/ConfigAndLog are pretty old, and I'm not sure how to get them written.  Any tips on why no logs are happening?

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: Error when upgrading 4.4.6 to 4.5
December 19, 2014, 09:07:06 am

based on the error message, if i had to guess:

a. php is loading DB.php twice from two (or more) different locations

b. You probably have another copy of civicrm somewhere in your path (modules directories?) and/or some other drupal package is also using PEAR DB.php (seems unlikely)

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 »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • Error when upgrading 4.4.6 to 4.5

This forum was archived on 2017-11-26.