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

Add custom field column to Contribution Details report crashes

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Critical
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.4.0
    • Fix Version/s: 4.4.1
    • Component/s: CiviReport
    • Labels:
      None

      Description

      In the Civi Demo 4 Drupal site, I made two fields searchable, so that they would show up on the report field selection. Used Contribution Details report and select the "How long have you been a donor?" field for the report. Got the following error:

      backTrace

      #0 /var/www/drupal7.civicrm.org/svn/civicrmdemo43/CRM/Core/Error.php(149): CRM_Core_Error::backtrace()
      #1 [internal function](): CRM_Core_Error::handle(Object(DB_Error))
      #2 /var/www/drupal7.civicrm.org/svn/civicrmdemo43/packages/PEAR.php(931): call_user_func((Array:2), Object(DB_Error))
      #3 /var/www/drupal7.civicrm.org/svn/civicrmdemo43/packages/DB.php(969): PEAR_Error->PEAR_Error("DB Error: no such field", -19, 16, (Array:2), "CREATE TEMPORARY TABLE civireport_contribution_detail_temp2 AS SELECT SQL_CAL...")
      #4 /var/www/drupal7.civicrm.org/svn/civicrmdemo43/packages/PEAR.php(564): DB_Error->DB_Error(-19, 16, (Array:2), "CREATE TEMPORARY TABLE civireport_contribution_detail_temp2 AS SELECT SQL_CAL...")
      #5 /var/www/drupal7.civicrm.org/svn/civicrmdemo43/packages/DB/common.php(1905): PEAR->raiseError(NULL, -19, NULL, NULL, "CREATE TEMPORARY TABLE civireport_contribution_detail_temp2 AS SELECT SQL_CAL...", "DB_Error", TRUE)
      #6 /var/www/drupal7.civicrm.org/svn/civicrmdemo43/packages/DB/mysql.php(898): DB_common->raiseError(-19, NULL, NULL, NULL, "1054 ** Unknown column 'value_donor_information_3_civireport.how_long_have_yo...")
      #7 /var/www/drupal7.civicrm.org/svn/civicrmdemo43/packages/DB/mysql.php(327): DB_mysql->mysqlRaiseError()
      #8 /var/www/drupal7.civicrm.org/svn/civicrmdemo43/packages/DB/common.php(1216): DB_mysql->simpleQuery("CREATE TEMPORARY TABLE civireport_contribution_detail_temp2 AS SELECT SQL_CAL...")
      #9 /var/www/drupal7.civicrm.org/svn/civicrmdemo43/packages/DB/DataObject.php(2421): DB_common->query("CREATE TEMPORARY TABLE civireport_contribution_detail_temp2 AS SELECT SQL_CAL...")
      #10 /var/www/drupal7.civicrm.org/svn/civicrmdemo43/packages/DB/DataObject.php(1613): DB_DataObject->_query("CREATE TEMPORARY TABLE civireport_contribution_detail_temp2 AS SELECT SQL_CAL...")
      #11 /var/www/drupal7.civicrm.org/svn/civicrmdemo43/CRM/Core/DAO.php(158): DB_DataObject->query("CREATE TEMPORARY TABLE civireport_contribution_detail_temp2 AS SELECT SQL_CAL...")
      #12 /var/www/drupal7.civicrm.org/svn/civicrmdemo43/CRM/Core/DAO.php(905): CRM_Core_DAO->query("CREATE TEMPORARY TABLE civireport_contribution_detail_temp2 AS SELECT SQL_CAL...", TRUE)
      #13 /var/www/drupal7.civicrm.org/svn/civicrmdemo43/CRM/Report/Form/Contribute/Detail.php(599): CRM_Core_DAO::executeQuery("CREATE TEMPORARY TABLE civireport_contribution_detail_temp2 AS SELECT SQL_CAL...")
      #14 /var/www/drupal7.civicrm.org/svn/civicrmdemo43/CRM/Core/Form.php(261): CRM_Report_Form_Contribute_Detail->postProcess()
      #15 /var/www/drupal7.civicrm.org/svn/civicrmdemo43/CRM/Core/QuickForm/Action/Submit.php(73): CRM_Core_Form->mainProcess()
      #16 /var/www/drupal7.civicrm.org/svn/civicrmdemo43/packages/HTML/QuickForm/Controller.php(203): CRM_Core_QuickForm_Action_Submit->perform(Object(CRM_Report_Form_Contribute_Detail), "submit")
      #17 /var/www/drupal7.civicrm.org/svn/civicrmdemo43/packages/HTML/QuickForm/Page.php(103): HTML_QuickForm_Controller->handle(Object(CRM_Report_Form_Contribute_Detail), "submit")
      #18 /var/www/drupal7.civicrm.org/svn/civicrmdemo43/CRM/Core/Controller.php(345): HTML_QuickForm_Page->handle("submit")
      #19 /var/www/drupal7.civicrm.org/svn/civicrmdemo43/CRM/Utils/Wrapper.php(117): CRM_Core_Controller->run()
      #20 /var/www/drupal7.civicrm.org/svn/civicrmdemo43/CRM/Report/Page/Instance.php(103): CRM_Utils_Wrapper->run("CRM_Report_Form_Contribute_Detail", NULL, NULL)
      #21 /var/www/drupal7.civicrm.org/svn/civicrmdemo43/CRM/Core/Invoke.php(323): CRM_Report_Page_Instance->run((Array:4), NULL)
      #22 /var/www/drupal7.civicrm.org/svn/civicrmdemo43/CRM/Core/Invoke.php(72): CRM_Core_Invoke::runItem((Array:14))
      #23 /var/www/drupal7.civicrm.org/svn/civicrmdemo43/CRM/Core/Invoke.php(52): CRM_Core_Invoke::_invoke((Array:4))
      #24 /var/www/drupal7.civicrm.org/svn/civicrmdemo43/drupal/civicrm.module(436): CRM_Core_Invoke::invoke((Array:4))
      #25 [internal function](): civicrm_invoke("report", "instance", "7")
      #26 /var/www/drupal7.civicrm.org/public/includes/menu.inc(517): call_user_func_array("civicrm_invoke", (Array:3))
      #27 /var/www/drupal7.civicrm.org/public/index.php(21): menu_execute_active_handler()
      #28

      {main}

      Sorry but we are not able to provide this at the moment.
      DB Error: no such field

        Attachments

          Activity

            People

            • Assignee:
              lobo Donald A. Lobo
              Reporter:
              loganbear Logan Bear
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: