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) »
  • 4.2 Updating error : class 'CRM_Core_Config_Variables' not found
Pages: 1 [2]

Author Topic: 4.2 Updating error : class 'CRM_Core_Config_Variables' not found  (Read 3313 times)

Deepak Srivastava

  • Moderator
  • Ask me questions
  • *****
  • Posts: 677
  • Karma: 65
Re: 4.2 Updating error : class 'CRM_Core_Config_Variables' not found
August 27, 2012, 03:41:26 am
SemperFi,

Ok i verified your database. They do show indexes but constraints are missing. None of your tables have constraints present.

You will have to rebuild your schema - http://wiki.civicrm.org/confluence/display/CRMDOC42/Ensuring+Schema+Integrity+on+Upgrades.
« Last Edit: August 27, 2012, 03:48:18 am by Deepak Srivastava »
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

SemperFi

  • I post frequently
  • ***
  • Posts: 177
  • Karma: 3
  • CiviCRM version: 4.5.4
  • CMS version: Wordpress 4.0.1
  • MySQL version: MySQL 5.5.16
  • PHP version: PHP 5.3.17
Re: 4.2 Updating error : class 'CRM_Core_Config_Variables' not found
August 27, 2012, 09:54:57 am
Hello Deepak,

Following your instructions, I rebuilt the schema (use 4.1.5 structure + my custom fields tables structure + import my data).
Then relaunched the update : I got the exact same message error at stage 1 : [Error: Upgrade DB to 4.2.alpha1] DB Error: unknown error (details have been provided sooner in the post cf. text file 4.2.alpha1 error).

FYI, I've also activated drupal debbugging and got these notice messages :
Code: [Select]
Notice : Constant CIVICRM_USE_MEMCACHE already defined dans include_once() (ligne 306 dans /xxx/sites/default/civicrm.settings.php).
    Notice : Constant CIVICRM_MEMCACHE_HOST already defined dans include_once() (ligne 312 dans /xxx/sites/default/civicrm.settings.php).
    Notice : Constant CIVICRM_MEMCACHE_PORT already defined dans include_once() (ligne 317 dans /xxx/sites/default/civicrm.settings.php).
    Notice : Constant CIVICRM_MEMCACHE_TIMEOUT already defined dans include_once() (ligne 323 dans /xxx/sites/default/civicrm.settings.php).
    Notice : Constant CIVICRM_MEMCACHE_PREFIX already defined dans include_once() (ligne 333 dans /xxx/sites/default/civicrm.settings.php).

I really don't know what's going on. I've always been able to update my civicrm database since now.
Any idea ??

Tks again for the time spent on this. Much appreciated.

Deepak Srivastava

  • Moderator
  • Ask me questions
  • *****
  • Posts: 677
  • Karma: 65
Re: 4.2 Updating error : class 'CRM_Core_Config_Variables' not found
August 28, 2012, 02:13:05 am
Could you paste the outputs of following sql statements -

SHOW CREATE TABLE civicrm_contribution_page;
SHOW CREATE TABLE civicrm_event;
SHOW CREATE TABLE civicrm_group;

If the output doesn't include any lines starting with "CONSTRAINT" you schema is still not built correctly and you will need to investigate further on how you doing the rebuild.
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

SemperFi

  • I post frequently
  • ***
  • Posts: 177
  • Karma: 3
  • CiviCRM version: 4.5.4
  • CMS version: Wordpress 4.0.1
  • MySQL version: MySQL 5.5.16
  • PHP version: PHP 5.3.17
Re: 4.2 Updating error : class 'CRM_Core_Config_Variables' not found
August 29, 2012, 03:36:49 am
Hello Deepak
Please find enclosed the required sql statements.
Let me know if you find anything in there.
Thanks

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: 4.2 Updating error : class 'CRM_Core_Config_Variables' not found
August 29, 2012, 03:40:22 am
Just a thought:

Do you have a backup of your old civicrm in your modules folder? If yes can you move it out of modules and try upgrade again.

HTh
Kurund
Found this reply helpful? Support CiviCRM

SemperFi

  • I post frequently
  • ***
  • Posts: 177
  • Karma: 3
  • CiviCRM version: 4.5.4
  • CMS version: Wordpress 4.0.1
  • MySQL version: MySQL 5.5.16
  • PHP version: PHP 5.3.17
Re: 4.2 Updating error : class 'CRM_Core_Config_Variables' not found
August 29, 2012, 03:48:12 am
Hello Kurund,
This was initially the case, but I removed it.
Now I've just the current civicrm version folder in the "modules" folder.
Tks

Deepak Srivastava

  • Moderator
  • Ask me questions
  • *****
  • Posts: 677
  • Karma: 65
Re: 4.2 Updating error : class 'CRM_Core_Config_Variables' not found
August 29, 2012, 03:48:41 am
SemperFi,

sqlfile looks correct. Could you jump on irc & i can help you debug the problem. Would be faster.
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

SemperFi

  • I post frequently
  • ***
  • Posts: 177
  • Karma: 3
  • CiviCRM version: 4.5.4
  • CMS version: Wordpress 4.0.1
  • MySQL version: MySQL 5.5.16
  • PHP version: PHP 5.3.17
Re: 4.2 Updating error : class 'CRM_Core_Config_Variables' not found
August 29, 2012, 03:52:37 am
Deepak
I won't be able to jump on IRC :( - I'll try this week-end to solve the issue by installing a fresh 4.2 version and uploading our data in it. I'll let you know.
Thanks for your help.

SemperFi

  • I post frequently
  • ***
  • Posts: 177
  • Karma: 3
  • CiviCRM version: 4.5.4
  • CMS version: Wordpress 4.0.1
  • MySQL version: MySQL 5.5.16
  • PHP version: PHP 5.3.17
Re: 4.2 Updating error : class 'CRM_Core_Config_Variables' not found
August 30, 2012, 10:22:24 am
Hello
I'm coming back.... with a good news. It's now working !!
Here is what I did :
1- Drop all the tables in the database
2- Rebuild civicrm database structure using this file : civicrm.mysql from 4.1.5 install package
3- Restore my database values from a 4.1.5 backup
4- Run the upgrade to 4.2 => It worked :)

Before doing that I tried to install a brand new version and during the database requirements check, it warns me that the mysql version of the server where the Drupal database is installed was 5.0.9 and that it requires at least 5.1.x.
So I moved my Drupal DB to the same mysql server than the one used for my CiviCRM DB. This is the only thing I made differently compared to my previous tries.

If the DB_ERROR came from this difference of version, maybe it will be worthy to specify that both CiviCRM and Drupal needs to be running on a 5.1.x mysql server.

Anyway, thanks again for your time and help. You made me explore ways and finally help me find the way.
Best regards !

Pages: 1 [2]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • 4.2 Updating error : class 'CRM_Core_Config_Variables' not found

This forum was archived on 2017-11-26.