Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Blocker
-
Resolution: Duplicate
-
Affects Version/s: 4.7.19
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Versioning Impact:Patch (backwards-compatible bug fixes)
-
Documentation Required?:None
-
Funding Source:Needs Funding
-
Verified?:No
Description
Upon editing a PayPal Express payment processor, when clicking save, the following crash is encountered.
$backTrace =
#0 /var/www/bedsafe/sites/all/modules/civicrm/CRM/Core/Error.php(229): CRM_Core_Error::backtrace("backTrace", TRUE)
#1 [internal function](): CRM_Core_Error::handle(Object(DB_Error))
#2 /var/www/bedsafe/sites/all/modules/civicrm/packages/PEAR.php(921): call_user_func((Array:2), Object(DB_Error))
#3 /var/www/bedsafe/sites/all/modules/civicrm/packages/DB.php(985): PEAR_Error->__construct("DB Error: syntax error", -2, 16, (Array:2), "SELECT account_relationship, financial_account_id \n FROM civicrm_entity_fi...")
#4 /var/www/bedsafe/sites/all/modules/civicrm/packages/PEAR.php(575): DB_Error->__construct(-2, 16, (Array:2), "SELECT account_relationship, financial_account_id \n FROM civicrm_entity_fi...")
#5 [internal function](): PEAR->_raiseError(Object(DB_mysqli), NULL, -2, NULL, NULL, "SELECT account_relationship, financial_account_id \n FROM civicrm_entity_fi...", "DB_Error", TRUE)
#6 /var/www/bedsafe/sites/all/modules/civicrm/packages/PEAR.php(224): call_user_func_array((Array:2), (Array:8))
#7 /var/www/bedsafe/sites/all/modules/civicrm/packages/DB/common.php(1905): PEAR->__call("raiseError", (Array:7))
#8 /var/www/bedsafe/sites/all/modules/civicrm/packages/DB/common.php(1905): PEAR->raiseError(NULL, -2, NULL, NULL, "SELECT account_relationship, financial_account_id \n FROM civicrm_entity_fi...", "DB_Error", TRUE)
#9 /var/www/bedsafe/sites/all/modules/civicrm/packages/DB/mysqli.php(933): DB_common->raiseError(-2, NULL, NULL, NULL, "1064 ** You have an error in your SQL syntax; check the manual that correspon...")
#10 /var/www/bedsafe/sites/all/modules/civicrm/packages/DB/mysqli.php(403): DB_mysqli->mysqliRaiseError()
#11 /var/www/bedsafe/sites/all/modules/civicrm/packages/DB/common.php(1216): DB_mysqli->simpleQuery("SELECT account_relationship, financial_account_id \n FROM civicrm_entity_fi...")
#12 /var/www/bedsafe/sites/all/modules/civicrm/packages/DB/DataObject.php(2438): DB_common->query("SELECT account_relationship, financial_account_id \n FROM civicrm_entity_fi...")
#13 /var/www/bedsafe/sites/all/modules/civicrm/packages/DB/DataObject.php(441): DB_DataObject->_query("SELECT account_relationship, financial_account_id \n FROM civicrm_entity_fi...")
#14 /var/www/bedsafe/sites/all/modules/civicrm/CRM/Core/PseudoConstant.php(570): DB_DataObject->find()
#15 /var/www/bedsafe/sites/all/modules/civicrm/CRM/Contribute/PseudoConstant.php(404): CRM_Core_PseudoConstant::populate(NULL, "CRM_Financial_DAO_EntityFinancialAccount", TRUE, "financial_account_id", NULL, " entity_id = ", NULL, "account_relationship")
#16 /var/www/bedsafe/sites/all/modules/civicrm/CRM/Contribute/BAO/Contribution.php(3744): CRM_Contribute_PseudoConstant::financialAccountType(NULL, 5)
#17 /var/www/bedsafe/sites/all/modules/civicrm/CRM/Contribute/Form/ContributionPage/Amount.php(422): CRM_Contribute_BAO_Contribution::validateFinancialType(NULL)
#18 [internal function](): CRM_Contribute_Form_ContributionPage_Amount::formRule((Array:22), (Array:0), Object(CRM_Contribute_Form_ContributionPage_Amount))
#19 /var/www/bedsafe/sites/all/modules/civicrm/packages/HTML/QuickForm.php(1594): call_user_func((Array:2), (Array:22), (Array:0), Object(CRM_Contribute_Form_ContributionPage_Amount))
#20 /var/www/bedsafe/sites/all/modules/civicrm/CRM/Core/Form.php(519): HTML_QuickForm->validate()
#21 /var/www/bedsafe/sites/all/modules/civicrm/CRM/Core/StateMachine.php(142): CRM_Core_Form->validate()
#22 /var/www/bedsafe/sites/all/modules/civicrm/CRM/Core/QuickForm/Action/Next.php(61): CRM_Core_StateMachine->perform(Object(CRM_Contribute_Form_ContributionPage_Amount), "next", "Next")
#23 /var/www/bedsafe/sites/all/modules/civicrm/packages/HTML/QuickForm/Controller.php(203): CRM_Core_QuickForm_Action_Next->perform(Object(CRM_Contribute_Form_ContributionPage_Amount), "next")
#24 /var/www/bedsafe/sites/all/modules/civicrm/packages/HTML/QuickForm/Page.php(103): HTML_QuickForm_Controller->handle(Object(CRM_Contribute_Form_ContributionPage_Amount), "next")
#25 /var/www/bedsafe/sites/all/modules/civicrm/CRM/Core/Controller.php(351): HTML_QuickForm_Page->handle("next")
#26 /var/www/bedsafe/sites/all/modules/civicrm/CRM/Utils/Wrapper.php(113): CRM_Core_Controller->run()
#27 /var/www/bedsafe/sites/all/modules/civicrm/CRM/Core/Invoke.php(284): CRM_Utils_Wrapper->run("CRM_Contribute_Form_ContributionPage_Amount", "Contribution Amounts", NULL)
#28 /var/www/bedsafe/sites/all/modules/civicrm/CRM/Core/Invoke.php(84): CRM_Core_Invoke::runItem((Array:13))
#29 /var/www/bedsafe/sites/all/modules/civicrm/CRM/Core/Invoke.php(52): CRM_Core_Invoke::_invoke((Array:4))
#30 /var/www/bedsafe/sites/all/modules/civicrm/drupal/civicrm.module(448): CRM_Core_Invoke::invoke((Array:4))
#31 [internal function](): civicrm_invoke("admin", "contribute", "amount")
#32 /var/www/bedsafe/includes/menu.inc(527): call_user_func_array("civicrm_invoke", (Array:3))
#33 /var/www/bedsafe/index.php(21): menu_execute_active_handler()
#34 {main}