CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Contribution import fails for pledge payements in 4.1.1
Pages: [1]

Author Topic: Contribution import fails for pledge payements in 4.1.1  (Read 407 times)

ken

  • I live on this forum
  • *****
  • Posts: 916
  • Karma: 53
    • City Bible Forum
  • CiviCRM version: 4.6.3
  • CMS version: Drupal 7.36
  • MySQL version: 5.5.41
  • PHP version: 5.3.10
Contribution import fails for pledge payements in 4.1.1
March 05, 2012, 02:56:22 am
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

ken

  • I live on this forum
  • *****
  • Posts: 916
  • Karma: 53
    • City Bible Forum
  • CiviCRM version: 4.6.3
  • CMS version: Drupal 7.36
  • MySQL version: 5.5.41
  • PHP version: 5.3.10
Re: Contribution import fails for pledge payements in 4.1.1
March 08, 2012, 12:51:07 am
see issue CRM-9823

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Contribution import fails for pledge payements in 4.1.1

This forum was archived on 2017-11-26.