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) »
  • Problem upgrading a multilingual site from 3.0.1 to 3.0.2
Pages: [1]

Author Topic: Problem upgrading a multilingual site from 3.0.1 to 3.0.2  (Read 1652 times)

bobd

  • I’m new here
  • *
  • Posts: 15
  • Karma: 0
    • Adaptive Sports Foundation
Problem upgrading a multilingual site from 3.0.1 to 3.0.2
November 03, 2009, 03:39:14 pm
Multilingual was turned on in version 3.0.1.

In running the upgrade script for 3.0.2 I got an error (details below).  In looking at the error it seems that the code is looking for the field 'value' in 'civicrm_option_value' table.

In looking at the 'civicrm_option_value' table of the multilingual test site I do not see a 'label' field.  There is a 'label' field in my single language English live site.  Enabling multilingual seems to have removed the 'label' field from 'civicrm_option_value' and added the fields 'label_en_US' and 'label_fr_CA'

The 'civicrm_option_value_en_US' and 'civicrm_option_value_fr_CA' tables both have 'label' fields

Bob

-------------------------------------------------------------------------
Upgrade CiviCRM to Version 3.0.2

Sorry. A non-recoverable error has occurred.


DB Error: no such field
Database Error Code: Unknown column 'v.label' in 'field list', 1054
Return to home page.
Error Details:

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

       
Code: [Select]
=> -19
    [message] => DB Error: no such field
    [mode] => 16
    [debug_info] =>
SELECT  v.label as label ,v.value as value
FROM   civicrm_option_value v,
       civicrm_option_group g
WHERE  v.option_group_id = g.id
  AND  g.name            = 'activity_type'
  AND  v.is_active       = 1 
  AND  g.is_active       = 1 
  AND  v.name     = 'Inbound Email'
 [nativecode=1054 ** Unknown column 'v.label' in 'field list']
    [type] => DB_Error
    [user_info] =>
SELECT  v.label as label ,v.value as value
FROM   civicrm_option_value v,
       civicrm_option_group g
WHERE  v.option_group_id = g.id
  AND  g.name            = 'activity_type'
  AND  v.is_active       = 1 
  AND  g.is_active       = 1 
  AND  v.name     = 'Inbound Email'
 [nativecode=1054 ** Unknown column 'v.label' in 'field list']
    [to_string] => [db_error: message="DB Error: no such field" code=-19 mode=callback callback=CRM_Core_Error::handle prefix="" info="
SELECT  v.label as label ,v.value as value
FROM   civicrm_option_value v,
       civicrm_option_group g
WHERE  v.option_group_id = g.id
  AND  g.name            = 'activity_type'
  AND  v.is_active       = 1 
  AND  g.is_active       = 1 
  AND  v.name     = 'Inbound Email'
 [nativecode=1054 ** Unknown column 'v.label' in 'field list']"]
)



Kiran Jagtap

  • Ask me questions
  • ****
  • Posts: 533
  • Karma: 51
Re: Problem upgrading a multilingual site from 3.0.1 to 3.0.2
November 03, 2009, 10:23:32 pm
hi,

Was your civicrm v3.0.1 working properly before upgrade ?

If I had to guess your db column fields indicates multilingual and civicrm_domain.locales value is empty.

can you check value for locales from civicrm_domain table.

query might be : select locales from civicrm_domain where id = 1;

If locales is empty try to update with en_US and fr_CA

query might be : update civicrm_domain set locales = "en_USfr_CA" where id =1;

and now try to upgrade civicrm.

hope this help.

kiran
You Are Designed To Choose... Defined By Choice.

Sunil

  • I post frequently
  • ***
  • Posts: 131
  • Karma: 23
  • The community around a product more important than the product itself?
    • CiviCRM
Re: Problem upgrading a multilingual site from 3.0.1 to 3.0.2
November 04, 2009, 03:09:35 am
hi
This is bug; We have filed an issue for this: http://issues.civicrm.org/jira/browse/CRM-5350

And we’ll fix it soon.

Sunil
The community around a product more important than the product itself?

ebonney6

  • I’m new here
  • *
  • Posts: 4
  • Karma: 0
Re: Problem upgrading a multilingual site from 3.0.1 to 3.0.2
November 23, 2009, 09:30:40 am
Hi, I am having the same problem. First I installed 3.0.2, then I went back to 3.0.1. They are both giving this error as well…

Sorry. A non-recoverable error has occurred.  DB Error: no such field  Return to home page.

I am a newbie and wondering what I can do to fix this. I played around in myPHP with the database, but not sure exactly what I need to do.

Any help with be greatly appreciated.
Eliz

Sunil

  • I post frequently
  • ***
  • Posts: 131
  • Karma: 23
  • The community around a product more important than the product itself?
    • CiviCRM
Re: Problem upgrading a multilingual site from 3.0.1 to 3.0.2
November 23, 2009, 09:00:22 pm
Hi,
Can you Enabled the Debug and Display Backtrace in Global setting, then post backtrace here.
However http://issues.civicrm.org/jira/browse/CRM-5350 has been fixed and will be part of v3.0.3

Here is fix.
you can back port  this fix.
http://fisheye2.atlassian.com/changelog/CiviCRM?cs=24836
Or you can also replace CRM/Upgrade/Form.php by from  v3.0.3 in you current version.

sunil
« Last Edit: December 09, 2009, 09:36:44 pm by Sunil »
The community around a product more important than the product itself?

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • Problem upgrading a multilingual site from 3.0.1 to 3.0.2

This forum was archived on 2017-11-26.