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: Upgrade DB to 4.2.alpha1: Price Sets]
Pages: [1]

Author Topic: Error: Upgrade DB to 4.2.alpha1: Price Sets]  (Read 617 times)

davidbarratt

  • I’m new here
  • *
  • Posts: 14
  • Karma: 0
  • CiviCRM version: Multiple
  • CMS version: Multiple
  • MySQL version: Multiple
  • PHP version: Multiple
Error: Upgrade DB to 4.2.alpha1: Price Sets]
May 08, 2014, 07:03:26 am
When I try and upgrade from 4.1.5 or 4.1.6 to 4.2.16, I get the following Error:

==========================
Error Field Error Value
Type DB_Error
Code -3
Message DB Error: constraint violation
Mode 16
UserInfo INSERT INTO civicrm_price_field_value (price_field_id , name , label , amount , weight , is_default , is_active ) VALUES ( 120 , '' , NULL , '25' , 1 , 1 , 1 ) [nativecode=1048 ** Column 'label' cannot be null]
DebugInfo INSERT INTO civicrm_price_field_value (price_field_id , name , label , amount , weight , is_default , is_active ) VALUES ( 120 , '' , NULL , '25' , 1 , 1 , 1 ) [nativecode=1048 ** Column 'label' cannot be null]
==========================

I've attached a screenshot to the issue so you can see what I'm talking about. Any help would be greatly appreciated.

Thanks!
https://issues.civicrm.org/jira/browse/CRM-14661

davidbarratt

  • I’m new here
  • *
  • Posts: 14
  • Karma: 0
  • CiviCRM version: Multiple
  • CMS version: Multiple
  • MySQL version: Multiple
  • PHP version: Multiple
Re: Error: Upgrade DB to 4.2.alpha1: Price Sets]
May 08, 2014, 12:58:07 pm
I believe I fixed the problem by running this query:

Code: [Select]
UPDATE civicrm_option_value set label = 'Unknown' WHERE label = '';

However, now I'm getting a different error. Whenever the Update Process reaches
Code: [Select]
Executed: Upgrade DB to 4.2.beta2
I get the error:

Code: [Select]
Fatal error:  Cannot redeclare class CRM_Core_ClassLoader in civicrm/CRM/Core/ClassLoader.php on line 36

Any ideas?
« Last Edit: May 08, 2014, 02:09:06 pm by davidbarratt »

davidbarratt

  • I’m new here
  • *
  • Posts: 14
  • Karma: 0
  • CiviCRM version: Multiple
  • CMS version: Multiple
  • MySQL version: Multiple
  • PHP version: Multiple
Re: Error: Upgrade DB to 4.2.alpha1: Price Sets]
May 08, 2014, 02:00:26 pm
I fixed this as well!

This is a bizare fix, but it worked.

In civicrm.settings.php I changed
Code: [Select]
require_once 'CRM/Core/ClassLoader.php';
CRM_Core_ClassLoader::singleton()->register();

to
Code: [Select]
// require_once 'CRM/Core/ClassLoader.php';
CRM_Core_ClassLoader::singleton()->register();

and everything worked smoothly! :)

Thanks!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • Error: Upgrade DB to 4.2.alpha1: Price Sets]

This forum was archived on 2017-11-26.