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 upgrading multi-lingual site from 3.2.0 to 3.2.2
Pages: [1]

Author Topic: Error upgrading multi-lingual site from 3.2.0 to 3.2.2  (Read 1459 times)

Neil Adair

  • I post occasionally
  • **
  • Posts: 78
  • Karma: 4
  • CiviCRM version: 4.5.8
  • CMS version: Drupal 7
  • MySQL version: MariaDB 10
  • PHP version: 5.5 FPM
Error upgrading multi-lingual site from 3.2.0 to 3.2.2
August 24, 2010, 05:52:39 pm
This is with a test site which is fortunate because I have not yet been able to recover by restoring the database with a recent backup and using the original 3.2.0 files (also recent backup).

The site has English as default language and French as an additional language.

On running CiviCRM upgrade script

DB Error: a515ac9c2796ca0e23adbe92c68fc9fc

Which is not very useful!

I examined the db in phpMyadmin and see that the restored backup has has the "view" tables converted to "isam" which must be a problem with the cPanel user not having MySQL "SUPER" and "VIEW" privileges.

This leads me to think the upgrade failed because this is using MySQL 5.0.x on a multi-lingual CiviCRM install.

I can fix the problem with the cPanel user so backups are not corrupted (I think). I'll also restore the test site from main, from the command line if necessary and see if I can get an upgrade to work.
« Last Edit: August 24, 2010, 09:19:40 pm by Neil Adair »

Neil Adair

  • I post occasionally
  • **
  • Posts: 78
  • Karma: 4
  • CiviCRM version: 4.5.8
  • CMS version: Drupal 7
  • MySQL version: MariaDB 10
  • PHP version: 5.5 FPM
Re: Error upgrading multi-lingual site from 3.2.0 to 3.2.2
August 25, 2010, 08:45:46 am
I did fix the cPanel backup problem and restore the test site.

A second try at upgrading 3.2.0 to 3.2.2 produced the following error:

Sorry. A non-recoverable error has occurred.

DB Error: value count on row

Database Error Code: Column count doesn't match value count at row 1, 1136

Any insight on how to address this would be appreciated.

MySQL 5.0.91 Multi-lingual English/French CiviCRM install

Neil Adair

  • I post occasionally
  • **
  • Posts: 78
  • Karma: 4
  • CiviCRM version: 4.5.8
  • CMS version: Drupal 7
  • MySQL version: MariaDB 10
  • PHP version: 5.5 FPM
Re: Error upgrading multi-lingual site from 3.2.0 to 3.2.2 on MySQL 5.0
August 25, 2010, 09:02:40 am
Here are the errors and backtrace via the Drupal watchdog

$Fatal Error Details = Array ( [callback] => Array (
  • => CRM_Core_Error [1] => handle )
    Code: [Select]
    => -22 [message] => DB Error: value count on row [mode] => 16 [debug_info] => INSERT INTO civicrm_option_value (option_group_id, label_en_US, label_fr_CA, value, name, grouping, filter, is_default, weight, description_en_US, description_fr_CA, is_optgroup,is_reserved, is_active, component_id, visibility_id ) VALUES (@ogrID , 'Grant Report', 'grant', 'CRM_Report_Form_Grant', NULL, 0, 0, @max_weight+1, 'Grant Report', 0, 0, 1, @grantCompId, NULL), (@ogrID, 'Participant list Count Report', 'Participant list Count Report', 'event/participantlist', 'CRM_Report_Form_Event_ParticipantListCount', NULL, 0, 0, @max_weight+2, 'Shows the Participant list with Participant Count.', 'Shows the Participant list with Participant Count.', 0, 0, 1, @eventCompId, NULL), (@ogrID, 'Income Count Summary Report', 'Income Count Summary Report', 'event/incomesummary', 'CRM_Report_Form_Event_IncomeCountSummary', NULL, 0, 0, @max_weight+3, 'Shows the Income Summary of events with Count.', 'Shows the Income Summary of events with Count.', 0, 0, 1, @eventCompId, NULL) [nativecode=1136 ** Column count doesn't match value count at row 1] [type] => DB_Error [user_info] => INSERT INTO civicrm_option_value (option_group_id, label_en_US, label_fr_CA, value, name, grouping, filter, is_default, weight, description_en_US, description_fr_CA, is_optgroup,is_reserved, is_active, component_id, visibility_id ) VALUES (@ogrID , 'Grant Report', 'grant', 'CRM_Report_Form_Grant', NULL, 0, 0, @max_weight+1, 'Grant Report', 0, 0, 1, @grantCompId, NULL), (@ogrID, 'Participant list Count Report', 'Participant list Count Report', 'event/participantlist', 'CRM_Report_Form_Event_ParticipantListCount', NULL, 0, 0, @max_weight+2, 'Shows the Participant list with Participant Count.', 'Shows the Participant list with Participant Count.', 0, 0, 1, @eventCompId, NULL), (@ogrID, 'Income Count Summary Report', 'Income Count Summary Report', 'event/incomesummary', 'CRM_Report_Form_Event_IncomeCountSummary', NULL, 0, 0, @max_weight+3, 'Shows the Income Summary of events with Count.', 'Shows the Income Summary of events with Count.', 0, 0, 1, @eventCompId, NULL) [nativecode=1136 ** Column count doesn't match value count at row 1] [to_string] => [db_error: message="DB Error: value count on row" code=-22 mode=callback callback=CRM_Core_Error::handle prefix="" info="INSERT INTO civicrm_option_value (option_group_id, label_en_US, label_fr_CA, value, name, grouping, filter, is_default, weight, description_en_US, description_fr_CA, is_optgroup,is_reserved, is_active, component_id, visibility_id ) VALUES (@ogrID , 'Grant Report', 'grant', 'CRM_Report_Form_Grant', NULL, 0, 0, @max_weight+1, 'Grant Report', 0, 0, 1, @grantCompId, NULL), (@ogrID, 'Participant list Count Report', 'Participant list Count Report', 'event/participantlist', 'CRM_Report_Form_Event_ParticipantListCount', NULL, 0, 0, @max_weight+2, 'Shows the Participant list with Participant Count.', 'Shows the Participant list with Participant Count.', 0, 0, 1, @eventCompId, NULL), (@ogrID, 'Income Count Summary Report', 'Income Count Summary Report', 'event/incomesummary', 'CRM_Report_Form_Event_IncomeCountSummary', NULL, 0, 0, @max_weight+3, 'Shows the Income Summary of events with Count.', 'Shows the Income Summary of events with Count.', 0, 0, 1, @eventCompId, NULL) [nativecode=1136 ** Column count doesn't match value count at row 1]"] ) [/li][/list]


    $backTrace = /home/foodadm/public_html/drupal/sites/all/modules/civicrm/CRM/Core/Error.php, backtrace, 189 , handle, /home/foodadm/public_html/drupal/sites/all/modules/civicrm/packages/PEAR.php, call_user_func, 931 /home/foodadm/public_html/drupal/sites/all/modules/civicrm/packages/DB.php, PEAR_Error, 968 /home/foodadm/public_html/drupal/sites/all/modules/civicrm/packages/PEAR.php, DB_Error, 564 /home/foodadm/public_html/drupal/sites/all/modules/civicrm/packages/DB/common.php, raiseError, 1903 /home/foodadm/public_html/drupal/sites/all/modules/civicrm/packages/DB/mysql.php, raiseError, 898 /home/foodadm/public_html/drupal/sites/all/modules/civicrm/packages/DB/mysql.php, mysqlRaiseError, 327 /home/foodadm/public_html/drupal/sites/all/modules/civicrm/packages/DB/common.php, simpleQuery, 1216 /home/foodadm/public_html/drupal/sites/all/modules/civicrm/CRM/Utils/File.php, query, 243 /home/foodadm/public_html/drupal/sites/all/modules/civicrm/CRM/Upgrade/Form.php, sourceSQLFile, 154 /home/foodadm/public_html/drupal/sites/all/modules/civicrm/CRM/Upgrade/Form.php, source, 275 /home/foodadm/public_html/drupal/sites/all/modules/civicrm/CRM/Upgrade/Form.php, processLocales, 291 /home/foodadm/public_html/drupal/sites/all/modules/civicrm/CRM/Upgrade/Page/Upgrade.php, processSQL, 212 /home/foodadm/public_html/drupal/sites/all/modules/civicrm/CRM/Core/Invoke.php, run, 219 /home/foodadm/public_html/drupal/sites/all/modules/civicrm/drupal/civicrm.module, invoke, 351 , civicrm_invoke, /home/foodadm/public_html/drupal/includes/menu.inc, call_user_func_array, 348 /home/foodadm/public_html/drupal/index.php, menu_execute_active_handler, 18

Piotr Szotkowski

  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: Error upgrading multi-lingual site from 3.2.0 to 3.2.2
August 26, 2010, 01:39:23 am
Aaargh, we broke multilingual sites’ upgrades to CiviCRM 3.2.2. I just filed an issue and fixed it in r29423. Can you try downloading http://svn.civicrm.org/civicrm/branches/v3.2/CRM/Upgrade/Incremental/sql/3.2.2.mysql.tpl and overwriting your CRM/Upgrade/Incremental/sql/3.2.2.mysql.tpl file to see if it fixes the upgrade?
If you found the above helpful, please consider helping us in return – you can even steer CiviCRM’s future and help us extend CiviCRM in ways useful to you.

Neil Adair

  • I post occasionally
  • **
  • Posts: 78
  • Karma: 4
  • CiviCRM version: 4.5.8
  • CMS version: Drupal 7
  • MySQL version: MariaDB 10
  • PHP version: 5.5 FPM
Re: Error upgrading multi-lingual site from 3.2.0 to 3.2.2
August 26, 2010, 08:42:54 am
CiviCRM upgrade successful  :)

All went smoothly with your fix. No issues found so far. I'll be doing some CiviContribute, CiviEvent and CiviMail set-ups on this test install today and will let you know if I encounter any issues.

Thank you!
Neil

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • Error upgrading multi-lingual site from 3.2.0 to 3.2.2

This forum was archived on 2017-11-26.