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

Contribution import fails for pledge payments in 4.1.1

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.1.1
    • Fix Version/s: 4.1.2
    • Component/s: CiviContribute
    • Labels:

      Description

      See the attached patch for a fix.

      Importing contributions which include pledge payments dies with a WSOD. The error is due to a file name change.

      The file /api/v3/DeprecatedUtils.php requires_once 'CRM/Pledge/BAO/Payment.php' but this file is now named 'CRM/Pledge/BAO/PledgePayment.php' (and the class names have also changed.)

      Grepping the civicrm file tree locates 4 other places referring to the old file name.

      ./api/v2/PledgePayment.php: require_once 'CRM/Pledge/BAO/Payment.php';
      ./api/v2/PledgePayment.php: require_once 'CRM/Pledge/BAO/Payment.php';
      ./api/v2/utils.v2.php: require_once 'CRM/Pledge/BAO/Payment.php';
      ./bin/deprecated/UpdatePledgeRecord.php: require_once 'CRM/Pledge/BAO/Payment.php';

      I suspect similar changes are required there,

      Ken

        Attachments

          Activity

            People

            • Assignee:
              yashodha Yashodha Chaku
              Reporter:
              ken Ken West
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: