Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-12142

no such field when adding premiums to contribution page

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.3.0
    • Fix Version/s: 4.3.0
    • Component/s: CiviContribute
    • Labels:
      None

      Description

      premiums_nothankyou_label field not found when adding premium to contribution page. Since No Thank-you Label is a required field in premiums settings in Premiums tab of contribution page, it still throws with db error when trying to save the page.

      To replicate:
      1. Upgrade civicrm to 4.2.x to 4.3.beta3.
      2. Add contribution page and enable amount section.
      3. add premium
      3.1 set title and No Thank-you Label.
      4. save

      Sorry but we are not able to provide this at the moment.
      DB Error: no such field
      Error Details
      Database Error Code: Unknown column 'premiums_nothankyou_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] => UPDATE civicrm_premiums SET entity_table = 'civicrm_contribution_page' , entity_id = 18 , premiums_active = 1 , premiums_intro_title = NULL , premiums_intro_text = NULL , premiums_contact_email = NULL , premiums_contact_phone = NULL , premiums_display_min_contribution = 0 , premiums_nothankyou_label = 'sdsd' , premiums_nothankyou_position = 1 WHERE ( civicrm_premiums.id = 11 ) [nativecode=1054 ** Unknown column 'premiums_nothankyou_label' in 'field list']
      [type] => DB_Error
      [user_info] => UPDATE civicrm_premiums SET entity_table = 'civicrm_contribution_page' , entity_id = 18 , premiums_active = 1 , premiums_intro_title = NULL , premiums_intro_text = NULL , premiums_contact_email = NULL , premiums_contact_phone = NULL , premiums_display_min_contribution = 0 , premiums_nothankyou_label = 'sdsd' , premiums_nothankyou_position = 1 WHERE ( civicrm_premiums.id = 11 ) [nativecode=1054 ** Unknown column 'premiums_nothankyou_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="UPDATE civicrm_premiums SET entity_table = 'civicrm_contribution_page' , entity_id = 18 , premiums_active = 1 , premiums_intro_title = NULL , premiums_intro_text = NULL , premiums_contact_email = NULL , premiums_contact_phone = NULL , premiums_display_min_contribution = 0 , premiums_nothankyou_label = 'sdsd' , premiums_nothankyou_position = 1 WHERE ( civicrm_premiums.id = 11 ) [nativecode=1054 ** Unknown column 'premiums_nothankyou_label' in 'field list']"]
      )

        Attachments

          Activity

            People

            • Assignee:
              dgg David Greenberg
              Reporter:
              pradeep.nayak Pradeep Nayak
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: