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 »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • After upgrading to 4.1.0 - Unknown column 'label' in 'field list', 1054
Pages: [1]

Author Topic: After upgrading to 4.1.0 - Unknown column 'label' in 'field list', 1054  (Read 1274 times)

yshah

  • I post occasionally
  • **
  • Posts: 30
  • Karma: 0
    • ICNA Southern California
  • CiviCRM version: 4.2.2
  • CMS version: Acquia Drupal 7.15
  • MySQL version: 5.0.96-community
  • PHP version: 5.3.17
After upgrading to 4.1.0 - Unknown column 'label' in 'field list', 1054
February 21, 2012, 12:29:24 am
After upgrading to 4.1.0, I went to test the registration link for an event.  When I go to the registration link it gives me the following error:

Code: [Select]
Database Error Code: Unknown column 'label' in 'field list', 1054
Additional Details:

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

    [code] => -19
    [message] => DB Error: no such field
    [mode] => 16
    [debug_info] => SELECT  id, label 
 FROM civicrm_option_group
 
 WHERE (  civicrm_option_group.id = 93 ) 
 
 
 
 [nativecode=1054 ** Unknown column 'label' in 'field list']
    [type] => DB_Error
    [user_info] => SELECT  id, label 
 FROM civicrm_option_group
 
 WHERE (  civicrm_option_group.id = 93 ) 
 
 
 
 [nativecode=1054 ** Unknown column '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  id, label 
 FROM civicrm_option_group
 
 WHERE (  civicrm_option_group.id = 93 ) 
 
 
 
 [nativecode=1054 ** Unknown column 'label' in 'field list']"]
)

Any idea how to correct this?

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: After upgrading to 4.1.0 - Unknown column 'label' in 'field list', 1054
February 21, 2012, 07:23:07 am

This is fixed in 4.1.1 which will be released in the next week or so. You can get the patch from here:

https://fisheye2.atlassian.com/browse/CiviCRM/branches/v4.1/CRM/Event/Form/Registration.php?r2=38834&r1=38817

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

yshah

  • I post occasionally
  • **
  • Posts: 30
  • Karma: 0
    • ICNA Southern California
  • CiviCRM version: 4.2.2
  • CMS version: Acquia Drupal 7.15
  • MySQL version: 5.0.96-community
  • PHP version: 5.3.17
Re: After upgrading to 4.1.0 - Unknown column 'label' in 'field list', 1054
February 21, 2012, 07:51:19 am
Awesome.  THanks Lobo, that did the trick.

garkalulu

  • I’m new here
  • *
  • Posts: 10
  • Karma: 0
  • CiviCRM version: 4.1.2
  • CMS version: Joomla 2.5
  • MySQL version: 5.0.92
  • PHP version: 5.2.17
Re: After upgrading to 4.1.0 - Unknown column 'label' in 'field list', 1054
March 15, 2012, 07:22:36 pm
Hi Lobo,

The same error will show up when you create event.

I have gone through the code and found that CRM/Event/Form/ManageEvent/EventInfo.php
file has error in it.

Line 342-345

After I changed 'label' in line 345 to 'title', it works..

Code: [Select]
             foreach ( $optionGroupIds as $id ) {
                   $discountSuffix = '.discount.'. CRM_Core_DAO::getFieldValue( 'CRM_Core_DAO_OptionGroup',
                                                                                $id,
                                                                                'label' );

« Last Edit: March 15, 2012, 10:18:39 pm by garkalulu »

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: After upgrading to 4.1.0 - Unknown column 'label' in 'field list', 1054
March 15, 2012, 10:56:49 pm
Thanks for the patch, this is fixed and will be part of next release - 4.1.2

Kurund
Found this reply helpful? Support CiviCRM

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • After upgrading to 4.1.0 - Unknown column 'label' in 'field list', 1054

This forum was archived on 2017-11-26.