Details
-
Type: Patch
-
Status: Done/Fixed
-
Priority: Critical
-
Resolution: Fixed/Completed
-
Affects Version/s: 1.7
-
Fix Version/s: 1.8
-
Component/s: CiviContribute
-
Labels:None
Description
CRM_Member_BAO_Membership::postProcessMembership makes an unnecessary call to CRM_Member_BAO_Membership::getContributionPageId and occasionally it will fail (not quite sure why, I do notice that the SQL statement in that function is poorly written). The simple solution is to use the value that is already present in $form->_values['id']. Also attached is an error report that describes what happens when the ID lookup fails (you get a completely unrelated error).