Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Trivial
-
Resolution: Fixed/Completed
-
Affects Version/s: 4.6.6
-
Fix Version/s: 4.6.7
-
Component/s: None
-
Labels:None
-
Documentation Required?:None
-
Funding Source:Contributed Code
Description
When an immediate-processing recurring payment processor is used for backoffice recurring memberships a fatal error is triggered. This is because the code attempts to change the status of the contribution on a subsequent save - but the line item id has not been loaded
#0 sites/all/modulesmodules/contrib/civicrm/CRM/Core/Error.php(359): CRM_Core_Error::backtrace()
#1 sites/all/modulesmodules/contrib/civicrm/CRM/Utils/Type.php(362): CRM_Core_Error::fatal("One of parameters (value: ) is not of the type Integer")
#2 sites/all/modulesmodules/contrib/civicrm/CRM/Core/DAO.php(1247): CRM_Utils_Type::validate(NULL, "Integer")
#3 sites/all/modulesmodules/contrib/civicrm/CRM/Core/DAO.php(1166): CRM_Core_DAO::composeQuery("UPDATE civicrm_financial_item SET status_id = %1 WHERE entity_id = %2 and ent...", (Array:2), TRUE)
#4 sites/all/modulesmodules/contrib/civicrm/CRM/Contribute/BAO/Contribution.php(3061): CRM_Core_DAO::executeQuery("UPDATE civicrm_financial_item SET status_id = %1 WHERE entity_id = %2 and ent...", (Array:2))
#5 sites/all/modulesmodules/contrib/civicrm/CRM/Contribute/BAO/Contribution.php(2863): CRM_Contribute_BAO_Contribution::updateFinancialAccounts((Array:26), "changedStatus")
#6 sites/all/modulesmodules/contrib/civicrm/CRM/Contribute/BAO/Contribution.php(192): CRM_Contribute_BAO_Contribution::recordFinancialAccounts((Array:26))
#7 sites/all/modulesmodules/contrib/civicrm/CRM/Contribute/BAO/Contribution.php(318): CRM_Contribute_BAO_Contribution::add((Array:26), (Array:2))
#8 sites/all/modulesmodules/contrib/civicrm/CRM/Member/BAO/Membership.php(2988): CRM_Contribute_BAO_Contribution::create((Array:26), (Array:2))
#9 sites/all/modulesmodules/contrib/civicrm/CRM/Member/BAO/Membership.php(337): CRM_Member_BAO_Membership::recordMembershipContribution((Array:34), (Array:2))
#10 sites/all/modulesmodules/contrib/civicrm/CRM/Member/Form/Membership.php(1495): CRM_Member_BAO_Membership::create((Array:34), (Array:2))
#11 sites/all/modulesmodules/contrib/civicrm/CRM/Core/Form.php(345): CRM_Member_Form_Membership->postProcess()
#12 sites/all/modulesmodules/contrib/civicrm/CRM/Core/QuickForm/Action/Upload.php(166): CRM_Core_Form->mainProcess()
#13 sites/all/modulesmodules/contrib/civicrm/CRM/Core/QuickForm/Action/Upload.php(133): CRM_Core_QuickForm_Action_Upload->realPerform(Object(CRM_Member_Form_Membership), "upload")
#14 sites/all/modulesmodules/contrib/civicrm/packages/HTML/QuickForm/Controller.php(203): CRM_Core_QuickForm_Action_Upload->perform(Object(CRM_Member_Form_Membership), "upload")
#15 sites/all/modulesmodules/contrib/civicrm/packages/HTML/QuickForm/Page.php(103): HTML_QuickForm_Controller->handle(Object(CRM_Member_Form_Membership), "upload")
#16 sites/all/modulesmodules/contrib/civicrm/CRM/Core/Controller.php(353): HTML_QuickForm_Page->handle("upload")
#17 sites/all/modulesmodules/contrib/civicrm/CRM/Member/Page/Tab.php(281): CRM_Core_Controller->run()
#18 sites/all/modulesmodules/contrib/civicrm/CRM/Member/Page/Tab.php(354): CRM_Member_Page_Tab->edit()
#19 sites/all/modulesmodules/contrib/civicrm/CRM/Core/Invoke.php(312): CRM_Member_Page_Tab->run((Array:4), NULL)
#20 sites/all/modulesmodules/contrib/civicrm/CRM/Core/Invoke.php(86): CRM_Core_Invoke::runItem((Array:14))
#21 sites/all/modulesmodules/contrib/civicrm/CRM/Core/Invoke.php(54): CRM_Core_Invoke::_invoke((Array:4))
#22 sites/all/modulesmodules/contrib/civicrm/drupal/civicrm.module(489): CRM_Core_Invoke::invoke((Array:4))
#23 [internal function](): civicrm_invoke("contact", "view", "membership")