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

Recording completed payment for Pending membership from Edit Membership throws fatal error

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.5.2
    • Fix Version/s: 4.5.3
    • Component/s: CiviContribute, CiviMember
    • Labels:
      None
    • Documentation Required?:
      None

      Description

          • This is a regression from 4.4 ****
            =====Steps to recreate ==========
            Enable debug/backtrace
            Update sample contribution page id=2 to allow Pay Later
            Submit a paylater online membership signup
            Go to the contact record => Memberships tab
            Edit the membership (best if you do this in a separate tab so you can see the backtrace)
            Check "Update Payment Status" and set Payment status = Completed
            Click Save

      The membership and contribution statuses are actually successfully updated. However a fatal error is thrown.

      ===== Fatal Error ========
      #0 /Users/dgg/git/crm_v4.5/CRM/Core/Error.php(380): CRM_Core_Error::backtrace()
      #1 /Users/dgg/git/crm_v4.5/CRM/Core/DAO.php(946): CRM_Core_Error::fatal()
      #2 /Users/dgg/git/crm_v4.5/CRM/Member/Form/Membership.php(1554): CRM_Core_DAO::getFieldValue("CRM_Price_DAO_PriceField", NULL, "price_set_id")
      #3 /Users/dgg/git/crm_v4.5/CRM/Core/Form.php(328): CRM_Member_Form_Membership->postProcess()
      #4 /Users/dgg/git/crm_v4.5/CRM/Core/QuickForm/Action/Upload.php(158): CRM_Core_Form->mainProcess()
      #5 /Users/dgg/git/crm_v4.5/CRM/Core/QuickForm/Action/Upload.php(129): CRM_Core_QuickForm_Action_Upload->realPerform(Object(CRM_Member_Form_Membership), "upload")
      #6 /Users/dgg/git/crm_v4.5/packages/HTML/QuickForm/Controller.php(203): CRM_Core_QuickForm_Action_Upload->perform(Object(CRM_Member_Form_Membership), "upload")
      #7 /Users/dgg/git/crm_v4.5/packages/HTML/QuickForm/Page.php(103): HTML_QuickForm_Controller->handle(Object(CRM_Member_Form_Membership), "upload")
      #8 /Users/dgg/git/crm_v4.5/CRM/Core/Controller.php(356): HTML_QuickForm_Page->handle("upload")
      #9 /Users/dgg/git/crm_v4.5/CRM/Member/Page/Tab.php(285): CRM_Core_Controller->run()
      #10 /Users/dgg/git/crm_v4.5/CRM/Member/Page/Tab.php(360): CRM_Member_Page_Tab->edit()

        Attachments

          Activity

            People

            • Assignee:
              monish.deb Monish Deb
              Reporter:
              dgg David Greenberg
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: