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 »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • DB Error: no such field
Pages: [1]

Author Topic: DB Error: no such field  (Read 1413 times)

mpalfrey

  • Guest
DB Error: no such field
September 26, 2009, 05:19:20 pm
We have a fresh install of CIVICRM Latest Stable build and Drupal 6.13 with Godaddy hosting. Everything is running fine however when I click on the field "CiviEvent" to expand it I get this DB Error with Array:

Sorry. A non-recoverable error has occurred.

DB Error: no such field

Database Error Code: Unknown column 'civicrm_value_fields_for_participants_3.team_member__2_state_118' in 'field list', 1054

Return to home page.


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

        
Code: [Select]
=> -19
    [message] => DB Error: no such field
    [mode] => 16
    [debug_info] => SELECT DISTINCT(contact_a.id) as contact_id, contact_a.contact_type  as `contact_type`, contact_a.sort_name  as `sort_name`, contact_a.display_name  as `display_name`, civicrm_event.id as event_id, civicrm_event.title as event_title, civicrm_event.start_date as event_start_date, civicrm_event.end_date as event_end_date, civicrm_participant.id as participant_id, civicrm_participant.fee_level as participant_fee_level, civicrm_participant.fee_amount as participant_fee_amount, event_type.label as event_type_id, participant_status.label as participant_status_id, participant_role.label as participant_role_id, civicrm_participant.register_date as participant_register_date, civicrm_participant.source as participant_source, civicrm_participant.is_pay_later as participant_is_pay_later, civicrm_participant.is_test as participant_is_test, discount_name.label as participant_discount_name, civicrm_value_fields_for_participants_3.id as civicrm_value_fields_for_participants_3_id, civicrm_value_fields_for_participants_3.team_member__2_state_118 as custom_118, civicrm_value_fields_for_participants_3.team_member__3_state_141 as custom_141, civicrm_value_participants_4.id as civicrm_value_participants_4_id, civicrm_value_participants_4.email_168 as custom_168, civicrm_value_participants_4.date_of_birth_169 as custom_169, civicrm_value_participants_4.age_on_race_day_170 as custom_170, civicrm_value_participants_4.gender_171 as custom_171, civicrm_value_participants_4.address_172 as custom_172, civicrm_value_participants_4.city_173 as custom_173, civicrm_value_participants_4.state_174 as custom_174, civicrm_value_participants_4.zip_code_175 as custom_175, civicrm_value_participants_4.relevant_medical_conditions_176 as custom_176, civicrm_value_participants_4.medical_emergency_contact_phone__177 as custom_177, civicrm_value_participants_4.team_name_178 as custom_178, civicrm_value_participants_4.country_179 as custom_179, civicrm_value_participants_4.t_shirt_size_180 as custom_180, civicrm_value_participants_4.usa_triathlon___181 as custom_181, civicrm_value_participants_4.team_swimmer_first_name_182 as custom_182, civicrm_value_participants_4.team_swimmer_last_name_183 as custom_183, civicrm_value_participants_4.team_swimmer_email_184 as custom_184, civicrm_value_participants_4.team_swimmer_usa_triathlon___185 as custom_185, civicrm_value_participants_4.swimmer_date_of_birth_186 as custom_186, civicrm_value_participants_4.team_cyclist_first_name_187 as custom_187, civicrm_value_participants_4.team_cyclist_last_name_188 as custom_188, civicrm_value_participants_4.team_cyclist_email_189 as custom_189, civicrm_value_participants_4.team_cyclist_date_of_birth_190 as custom_190, civicrm_value_participants_4.team_cyclist_usa_triathlon___191 as custom_191, civicrm_value_participants_4.team_runner_first_name_192 as custom_192, civicrm_value_participants_4.team_runner_last_name_193 as custom_193, civicrm_value_participants_4.team_runner_email_194 as custom_194, civicrm_value_participants_4.team_runner_usa_triathlon___195 as custom_195, civicrm_value_participants_4.runner_date_of_birth_196 as custom_196, civicrm_value_participants_4.team_member__2_first_name_197 as custom_197, civicrm_value_participants_4.team_member__2_last_name_198 as custom_198, civicrm_value_participants_4.team_member__2_address_199 as custom_199, civicrm_value_participants_4.team_member__2_city_200 as custom_200, civicrm_value_participants_4.team_member__2_state_201 as custom_201, civicrm_value_participants_4.team_member__2_zip_code_202 as custom_202, civicrm_value_participants_4.team_member__2_t_shirt_size_203 as custom_203, civicrm_value_participants_4.email__2_204 as custom_204, civicrm_value_participants_4.gender__2_205 as custom_205, civicrm_value_participants_4.race_category_206 as custom_206, civicrm_value_participants_4.tandem_partner_207 as custom_207, civicrm_value_participants_4.family_member_full_name_208 as custom_208, civicrm_value_participants_4.uscf___209 as custom_209, civicrm_value_participants_4.club_name_210 as custom_210, civicrm_value_participants_4.child__2_first_name_211 as custom_211, civicrm_value_participants_4.child__2_last_name_212 as custom_212, civicrm_value_participants_4.child__3_first_name_213 as custom_213, civicrm_value_participants_4.child__3_last_name_214 as custom_214, civicrm_value_participants_4.name_of_parent_legal_guardian_215 as custom_215, civicrm_value_participants_4.phone_number_216 as custom_216, civicrm_value_participants_4.phone_number__2_217 as custom_217, civicrm_value_participants_4.phone_numer__3_218 as custom_218, civicrm_value_participants_4.team_member__3_first_name_219 as custom_219, civicrm_value_participants_4.team_member__3_last_name_220 as custom_220, civicrm_value_participants_4.team_member__3_address_221 as custom_221, civicrm_value_participants_4.team_member__3_city_222 as custom_222, civicrm_value_participants_4.team_member__3_state_223 as custom_223, civicrm_value_participants_4.team_member__3_zip_224 as custom_224, civicrm_value_participants_4.team_member__3_email_225 as custom_225, civicrm_value_participants_4.email__3_226 as custom_226, civicrm_value_participants_4.child_gender_227 as custom_227, civicrm_value_participants_4.team_member__3_t_shirt_size_228 as custom_228, civicrm_value_participants_4.child_first_name_229 as custom_229, civicrm_value_participants_4.child_last_name_230 as custom_230, civicrm_value_participants_4.child_usat__231 as custom_231, civicrm_value_participants_4.child_date_of_birth_232 as custom_232, civicrm_value_participants_4.gender__3_233 as custom_233, civicrm_value_participants_4.clydesdale_234 as custom_234, civicrm_value_participants_4.child_t_shirt_size_235 as custom_235, civicrm_value_participants_4.age_on_race_day__2_236 as custom_236, civicrm_value_participants_4.age_on_race_day__3_237 as custom_237, civicrm_value_participants_4.date_of_birth__2_238 as custom_238, civicrm_value_participants_4.date_of_birth__3_239 as custom_239, civicrm_value_participants_4.name_of_school_240 as custom_240, civicrm_value_participants_4.preferred_start_time_241 as custom_241, civicrm_value_participants_4.registration_type_242 as custom_242, civicrm_value_participants_4.category__children_only__243 as custom_243, civicrm_value_participants_4.skiing_level_244 as custom_244, civicrm_value_participants_4.snowboard_level__children_only__245 as custom_245, civicrm_value_participants_4.pick_up_site_for_rbs__bus_studen_246 as custom_246, civicrm_value_participants_4.do_you_agree_to_above_waiver__247 as custom_247, civicrm_value_participants_4.i_am_over_18_years_old_and__am_t_248 as custom_248, civicrm_value_participants_4.name_of_adult_parent_legal_guard_249 as custom_249, civicrm_value_participants_4.first_name_250 as custom_250, civicrm_value_participants_4.last_name_251 as custom_251, civicrm_value_participants_4.team__2_usa_triathlon___252 as custom_252, civicrm_value_participants_4.team__3_usa_triathlon___253 as custom_253  FROM civicrm_contact contact_a LEFT JOIN civicrm_participant ON civicrm_participant.contact_id = contact_a.id  INNER JOIN

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: DB Error: no such field
September 27, 2009, 07:42:21 am

can u check of there is a column team_member__2_state_118 in the table civicrm_value_fields_for_participants_3

seems like there might have been an error when creating the custom fields which was overlooked. I suspect the custom field was created, but not the database column (maybe because the column name was too long?)

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

mpalfrey

  • Guest
Re: DB Error: no such field
September 28, 2009, 10:39:12 am
Hello Donald, after lunch i will log into the database and look for you.... Is there anything specific besides what you asked before on to look for as well?

mpalfrey

  • Guest
Re: DB Error: no such field
September 28, 2009, 01:25:17 pm
Ok looking at the table there is only two values id and entity_id

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: DB Error: no such field
September 28, 2009, 02:14:39 pm

Not sure how you got into that state (unless u ignored a few fatal errors when creating the custom group)

Your best bet would be to delete that custom group and recreate it again

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 »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • DB Error: no such field

This forum was archived on 2017-11-26.