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

Unecessary call to CRM_Member_BAO_Membership::getContributionPageId sometimes fails

    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).

        Attachments

          Activity

            People

            • Assignee:
              sunil Sunil Pawar
              Reporter:
              dalin dave hansen-lange
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: