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 CiviMember (Moderator: Deepak Srivastava) »
  • Error in Membership Types
Pages: [1]

Author Topic: Error in Membership Types  (Read 969 times)

Miami Digital

  • Guest
Error in Membership Types
December 27, 2010, 10:20:08 pm
Running on Drupal 6.20. I started getting this error after I let autocomplete fill in the organization it belonged to without selecting it through the select button. When I went to add another membership type. The following error occurred:

Sorry. A non-recoverable error has occurred.
DB Error: no such field
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_relationship_type
 
 WHERE (  civicrm_relationship_type.id = 0 )  
 
 [nativecode=1054 ** Unknown column 'label_' in 'field list']
    [type] => DB_Error
    [user_info] => SELECT  id, label_  
 FROM civicrm_relationship_type
 
 WHERE (  civicrm_relationship_type.id = 0 )  
 
 [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_relationship_type
 
 WHERE (  civicrm_relationship_type.id = 0 )  
 
 [nativecode=1054 ** Unknown column 'label_' in 'field list']"]
)

Can anyone please direct me in how to correct this issue? I don't want to start tinkering this the db as am a noob when it comes to civicrm. =/ Thanks in advance guys.[/code]
« Last Edit: December 27, 2010, 10:23:54 pm by Miami Digital »

Kiran Jagtap

  • Ask me questions
  • ****
  • Posts: 533
  • Karma: 51
Re: Error in Membership Types
December 27, 2010, 10:52:46 pm
here is the related thread : http://forum.civicrm.org/index.php/topic,17241.msg72971.html#msg72971

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

Miami Digital

  • Guest
Re: Error in Membership Types
December 27, 2010, 11:22:00 pm
Code: [Select]
UPDATE  civicrm_membership_type
SET  relationship_type_id = NULL,  relationship_direction = NULL
WHERE  relationship_type_id = 'Array' OR relationship_type_id IS NULL;

Sure Enough. That fixed it. Kiran, your the best. I thank you!

Miami Digital

  • Guest
Re: Error in Membership Types
December 27, 2010, 11:33:33 pm
Something I have to add, Now every time I add a new membership type. The error happens again. I run the script again and it clears.

Kiran Jagtap

  • Ask me questions
  • ****
  • Posts: 533
  • Karma: 51
Re: Error in Membership Types
December 28, 2010, 12:02:55 am
you need to integrate php patch also to avoid errors on new membership type add.

No worry, we are about to roll CiviCRM v3.3.2 stable ( might be tomorrow ) :)
and which has all corrected code.

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

Miami Digital

  • Guest
Re: Error in Membership Types
December 29, 2010, 04:45:16 pm
Any word on the 3.3.2 stable code release?

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: Error in Membership Types
December 29, 2010, 06:11:36 pm

sometime in the next week or so

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

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMember (Moderator: Deepak Srivastava) »
  • Error in Membership Types

This forum was archived on 2017-11-26.