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 »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Problem with multilingual installation
Pages: [1]

Author Topic: Problem with multilingual installation  (Read 1886 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
Problem with multilingual installation
October 22, 2009, 06:07:34 am
How I can fix this error?
Quote


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

    DB Error: a515ac9c2796ca0e23adbe92c68fc9fc

    Database Error Code: Duplicate column name 'label_en_US', 1060

    Palaa kotisivulle.

Code: [Select]
Error Details:

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

    [code] => a515ac9c2796ca0e23adbe92c68fc9fc
    [message] => DB Error: a515ac9c2796ca0e23adbe92c68fc9fc
    [mode] => 16
    [debug_info] => ALTER TABLE civicrm_option_group ADD label_en_US varchar(255) [nativecode=1060 ** Duplicate column name 'label_en_US']
    [type] => DB_Error
    [user_info] => ALTER TABLE civicrm_option_group ADD label_en_US varchar(255) [nativecode=1060 ** Duplicate column name 'label_en_US']
    [to_string] => [db_error: message="DB Error: a515ac9c2796ca0e23adbe92c68fc9fc" code=0 mode=callback callback=CRM_Core_Error::handle prefix="" info="ALTER TABLE civicrm_option_group ADD label_en_US varchar(255) [nativecode=1060 ** Duplicate column name 'label_en_US']"]
)
[/code]

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: Problem with multilingual installation
October 22, 2009, 08:51:44 am

giving a few more details will help:

1. what was the state of DB before u got the error (was it already multi-lingual)

2. what sequence of operations led to this error

thanx

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

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
Re: Problem with multilingual installation
October 25, 2009, 06:26:26 pm
Quote from: Donald Lobo on October 22, 2009, 08:51:44 am

giving a few more details will help:

1. what was the state of DB before u got the error (was it already multi-lingual)

2. what sequence of operations led to this error

thanx

lobo

1. It is multi-lingual state before this error
2. I try add new language (American English)

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: Problem with multilingual installation
October 25, 2009, 06:57:07 pm

seems like the db already had columns for american english?

did u have it enabled previously?

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

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
Re: Problem with multilingual installation
October 25, 2009, 07:04:38 pm
Quote from: Donald Lobo on October 25, 2009, 06:57:07 pm
did u have it enabled previously?
No, I can't enable this language because I can't see it this list:

Piotr Szotkowski

  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: Problem with multilingual installation
October 27, 2009, 04:53:17 am
This is very strange (and shouldn’t happen). Can you check whether the *_en_US columns exist for other cases? If so, can you check the contents of the civicrm_domain.locales column? (It should have all available locales, but it seems your schema supports en_US while it’s missing from the locales column).
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.

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
Re: Problem with multilingual installation
October 28, 2009, 06:50:46 pm
Quote from: Piotr Szotkowski on October 27, 2009, 04:53:17 am
This is very strange (and shouldn’t happen). Can you check whether the *_en_US columns exist for other cases?
Yes, I can. I see the *_en_US columns a few tables but not so widely than *_fi_FI and *_sv_SE columns.
Quote from: Piotr Szotkowski on October 27, 2009, 04:53:17 am
If so, can you check the contents of the civicrm_domain.locales column? (It should have all available locales, but it seems your schema supports en_US while it’s missing from the locales column).
I run this query:
Code: [Select]
SELECT `locales` FROM `civicrm_domain` WHERE `locales` IS NOT NULL LIMIT 0 , 1; and result says that there are two locales: fi_FI and sv_SE.
« Last Edit: October 28, 2009, 06:54:03 pm by mrl586 »

Piotr Szotkowski

  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: Problem with multilingual installation
November 02, 2009, 12:26:38 am
Quote from: mrl586 on October 28, 2009, 06:50:46 pm
Quote from: Piotr Szotkowski on October 27, 2009, 04:53:17 am
This is very strange (and shouldn’t happen). Can you check whether the *_en_US columns exist for other cases?
Yes, I can. I see the *_en_US columns a few tables but not so widely than *_fi_FI and *_sv_SE columns.

Argh. This looks like the en_US version was partially installed. :| If you send me your database (to shot@civicrm.org), I can try providing queries to clean up the schema, but I can’t promise anything earlier than late this week (due to other, urgent obligations).

Quote
Quote from: Piotr Szotkowski on October 27, 2009, 04:53:17 am
If so, can you check the contents of the civicrm_domain.locales column? (It should have all available locales, but it seems your schema supports en_US while it’s missing from the locales column).
I run this query:
Code: [Select]
SELECT `locales` FROM `civicrm_domain` WHERE `locales` IS NOT NULL LIMIT 0 , 1; and result says that there are two locales: fi_FI and sv_SE.

Right, this means that the Finnish and Swedish locales were added properly, while the American English wasn’t.
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 »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Problem with multilingual installation

This forum was archived on 2017-11-26.