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) »
  • Upgrade from 3.1.alpha2 to 3.1.beta1
Pages: [1]

Author Topic: Upgrade from 3.1.alpha2 to 3.1.beta1  (Read 989 times)

mrl586

  • I post occasionally
  • **
  • Posts: 63
  • Karma: 2
  • CiviCRM version: 4.0
  • CMS version: Drupal 7.0
  • MySQL version: 5.5.9
  • PHP version: 5.3.5
Upgrade from 3.1.alpha2 to 3.1.beta1
December 06, 2009, 04:49:12 pm
CiviCRM complain this after upgrade:
Quote
Upgrade CiviCRM to Version 3.1.beta1

unrecoverable error
    Sorry. A non-recoverable error has occurred.

    DB Error: syntax error

    Database Error Code: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ALTER TABLE `civicrm_contribution_soft` ADD CONSTRAINT `FK_civicrm_contribu' at line 8, 1064

    Return to home page.

Error Details:

Array
(
    [callback] => Array
        (
           
  • => CRM_Core_Error
  • [1] => handle
            )

        [ code ] => -2
       
[message] => DB Error: syntax error
    [mode] => 16
    [debug_info] => -- suffix
    UPDATE civicrm_option_value
        SET label_fi_FI = CONCAT( label_fi_FI, '.') ,label_sv_SE = CONCAT( label_sv_SE, '.') ,label_en_GB = CONCAT( label_en_GB, '.') ,            name = CONCAT( `name`, '.')
        WHERE name IN ('Jr','Sr') AND option_group_id = @option_group_id_suffix;   



ALTER TABLE `civicrm_contribution_soft`
    ADD CONSTRAINT `FK_civicrm_contribution_soft_pcp_id` FOREIGN KEY (`pcp_id`) REFERENCES `civicrm_pcp` (`id`) ON DELETE SET NULL [nativecode=1064 ** You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ALTER TABLE `civicrm_contribution_soft`
    ADD CONSTRAINT `FK_civicrm_contribu' at line 8]
    [type] => DB_Error
    [user_info] => -- suffix
    UPDATE civicrm_option_value
        SET label_fi_FI = CONCAT( label_fi_FI, '.') ,label_sv_SE = CONCAT( label_sv_SE, '.') ,label_en_GB = CONCAT( label_en_GB, '.') ,            name = CONCAT( `name`, '.')
        WHERE name IN ('Jr','Sr') AND option_group_id = @option_group_id_suffix;   



ALTER TABLE `civicrm_contribution_soft`
    ADD CONSTRAINT `FK_civicrm_contribution_soft_pcp_id` FOREIGN KEY (`pcp_id`) REFERENCES `civicrm_pcp` (`id`) ON DELETE SET NULL [nativecode=1064 ** You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ALTER TABLE `civicrm_contribution_soft`
    ADD CONSTRAINT `FK_civicrm_contribu' at line 8]
    [to_string] => [db_error: message="DB Error: syntax error" code=-2 mode=callback callback=CRM_Core_Error::handle prefix="" info="-- suffix
    UPDATE civicrm_option_value
        SET label_fi_FI = CONCAT( label_fi_FI, '.') ,label_sv_SE = CONCAT( label_sv_SE, '.') ,label_en_GB = CONCAT( label_en_GB, '.') ,            name = CONCAT( `name`, '.')
        WHERE name IN ('Jr','Sr') AND option_group_id = @option_group_id_suffix;   



ALTER TABLE `civicrm_contribution_soft`
    ADD CONSTRAINT `FK_civicrm_contribution_soft_pcp_id` FOREIGN KEY (`pcp_id`) REFERENCES `civicrm_pcp` (`id`) ON DELETE SET NULL [nativecode=1064 ** You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ALTER TABLE `civicrm_contribution_soft`
    ADD CONSTRAINT `FK_civicrm_contribu' at line 8]"]
)

Piotr Szotkowski

  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: Upgrade from 3.1.alpha2 to 3.1.beta1
December 07, 2009, 04:03:30 am
We’re sorry, we broke the multilingual upgrades. This is issue CRM-5503 and will be fixed in 3.1.beta2.

You can overwrite the CRM/Upgrade/Incremental/sql/3.1.beta1.mysql.tpl file with the current version from our repository to fix this.
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.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • Upgrade from 3.1.alpha2 to 3.1.beta1

This forum was archived on 2017-11-26.