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

Online event registration needs to use new method for retrieval of asset account information

    Details

      Description

      backTrace

      #0 /Users/dgg/svn/crm_v4.3/CRM/Core/Error.php(148): CRM_Core_Error::backtrace()
      #1 [internal function](): CRM_Core_Error::handle(Object(DB_Error))
      #2 /Users/dgg/svn/crm_v4.3/packages/PEAR.php(931): call_user_func((Array:2), Object(DB_Error))
      #3 /Users/dgg/svn/crm_v4.3/packages/DB.php(972): PEAR_Error->PEAR_Error("DB Error: ", -1, 16, (Array:2), "1054 ** Unknown column 'financial_type_id' in 'field list' [DB Error: unknown...")
      #4 /Users/dgg/svn/crm_v4.3/packages/PEAR.php(564): DB_Error->DB_Error(NULL, 16, (Array:2), "1054 ** Unknown column 'financial_type_id' in 'field list' [DB Error: unknown...")
      #5 /Users/dgg/svn/crm_v4.3/packages/DB/common.php(1904): PEAR->raiseError(NULL, NULL, NULL, NULL, "1054 ** Unknown column 'financial_type_id' in 'field list' [DB Error: unknown...", "DB_Error", TRUE)
      #6 /Users/dgg/svn/crm_v4.3/packages/DB/mysql.php(898): DB_common->raiseError(-19, NULL, NULL, NULL, "1054 ** Unknown column 'financial_type_id' in 'field list'")
      #7 /Users/dgg/svn/crm_v4.3/packages/DB/mysql.php(327): DB_mysql->mysqlRaiseError()
      #8 /Users/dgg/svn/crm_v4.3/packages/DB/common.php(1216): DB_mysql->simpleQuery("SELECT financial_type_id \n FROM civicrm_payment_processor \n \n WHERE ( c...")
      #9 /Users/dgg/svn/crm_v4.3/packages/DB/DataObject.php(2421): DB_common->query("SELECT financial_type_id \n FROM civicrm_payment_processor \n \n WHERE ( c...")
      #10 /Users/dgg/svn/crm_v4.3/packages/DB/DataObject.php(441): DB_DataObject->_query("SELECT financial_type_id \n FROM civicrm_payment_processor \n \n WHERE ( c...")
      #11 /Users/dgg/svn/crm_v4.3/CRM/Core/DAO.php(769): DB_DataObject->find(TRUE)
      #12 /Users/dgg/svn/crm_v4.3/CRM/Event/Form/Registration/Confirm.php(1038): CRM_Core_DAO::getFieldValue("CRM_Financial_DAO_PaymentProcessor", "1", "financial_type_id")
      #13 /Users/dgg/svn/crm_v4.3/CRM/Event/Form/Registration/Confirm.php(661): CRM_Event_Form_Registration_Confirm::processContribution(Object(CRM_Event_Form_Registration_Confirm), (Array:53), (Array:52), "202", FALSE, FALSE)
      #14 /Users/dgg/svn/crm_v4.3/CRM/Core/Form.php(246): CRM_Event_Form_Registration_Confirm->postProcess()
      #15 /Users/dgg/svn/crm_v4.3/CRM/Core/StateMachine.php(160): CRM_Core_Form->mainProcess()
      #16 /Users/dgg/svn/crm_v4.3/CRM/Core/QuickForm/Action/Next.php(60): CRM_Core_StateMachine->perform(Object(CRM_Event_Form_Registration_Confirm), "next", "Next")
      #17 /Users/dgg/svn/crm_v4.3/packages/HTML/QuickForm/Controller.php(203):
      Online event registration is still trying to retrieve asset account for financial_trxn record via financial_type. Needs to retrieve via payment processor linkage (entity_financial_account lookup).

      Also, please check code for online event registration AND contributions to ensure that it uses the DEFAULT financial_account for financial_trxn.to_account_id IF the payment processor being used does NOT have a linked financial_account. (i.e. we shouldn't fatal or fail in this case)

      To recreate, add Dummy processor and link to 'Payment Processor Account'. Associate Dummy processor w/ sample event and try to do an online registration:

      CRM_Core_QuickForm_Action_Next->perform(Object(CRM_Event_Form_Registration_Confirm), "next")
      #18 /Users/dgg/svn/crm_v4.3/packages/HTML/QuickForm/Page.php(103): HTML_QuickForm_Controller->handle(Object(CRM_Event_Form_Registration_Confirm), "next")
      #19 /Users/dgg/svn/crm_v4.3/CRM/Core/Controller.php(292): HTML_QuickForm_Page->handle("next")
      #20 /Users/dgg/svn/crm_v4.3/CRM/Core/Invoke.php(295): CRM_Core_Controller->run((Array:3), NULL)
      #21 /Users/dgg/svn/crm_v4.3/CRM/Core/Invoke.php(70): CRM_Core_Invoke::runItem((Array:15))
      #22 /Users/dgg/svn/crm_v4.3/CRM/Core/Invoke.php(52): CRM_Core_Invoke::_invoke((Array:3))
      #23 /Users/dgg/svn/crm_v4.3/drupal/civicrm.module(461): CRM_Core_Invoke::invoke((Array:3))
      #24 [internal function](): civicrm_invoke("event", "register")
      #25 /Users/dgg/htdocs/drupal7/includes/menu.inc(516): call_user_func_array("civicrm_invoke", (Array:2))
      #26 /Users/dgg/htdocs/drupal7/index.php(21): menu_execute_active_handler()
      #27

      {main}

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: