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

Fatal error on contribution page with pay later enabled and membership section enabled

    Details

    • Type: Bug
    • Status: Open
    • Priority: Important
    • Resolution: Unresolved
    • Affects Version/s: 4.7.28
    • 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

      The problem from https://issues.civicrm.org/jira/browse/CRM-21436 still exists with special settings for the contribution page.

       

      Reproduce/Settings for the contribution page:

      • Title -> Financial Type: 'Member Dues'
      • Amounts -> Pay later options: checked
      • Memberships -> Membership Section Enabled? -> checked
      • Memberships -> Membership Price Set -> a custom price set

      Fatal error: Call to a member function getPaymentFormFields() on null in /Users/jitendra/src/civicrm/CRM/Contribute/Form/ContributionBase.php on line 589

      Edit:

      'Amount -> Execute real-time monetary transactions' was unchecked.

      Enabled this option remove the error. I found this while looking here: https://github.com/civicrm/civicrm-core/blob/master/CRM/Contribute/Form/ContributionBase.php#L318

      only with this option checked the payment processor will be set via line 331-317. But enable this option make no sence in the context.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              julian.libor julian libor
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: