Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.1.3
    • Fix Version/s: 4.2.0
    • Component/s: CiviContribute
    • Labels:
      None

      Description

      Running a failing IPN produces this error in 4.1.5

      Warning: Invalid argument supplied for foreach() in /home/crmabtv/public_html/sites/all/modules/civicrm/CRM/Core/Payment/BaseIPN.php on line 290

      This is because of this line:
      foreach ($memberships as $membership) {

      It's probably because the transaction involved has nothing to do with membership. A var_dump showed that the $memberships is NULL in my situation (a recurring contribution) so I suggest this fix

      if(!is_null($memberships))

      { ... }

        Attachments

          Activity

            People

            • Assignee:
              lobo Donald A. Lobo
              Reporter:
              alib Ali Bakir
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: