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

CiviContribute API: Class 'CRM_Contribute_PseudoConstant' not found

    Details

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

      Description

      Using the API to create contributions in 1.9.12432 throws this error:

      Fatal error: Class 'CRM_Contribute_PseudoConstant' not found in /home/www/drupal-5.6/sites/all/modules/civicrm/api/utils.php on line 440

      The fix is adding this at the beginning of _crm_format_contrib_params():

      require_once 'CRM/Contribute/PseudoConstant.php';

        Attachments

          Activity

            People

            • Assignee:
              amit Amiteshwar Prasad
              Reporter:
              stevem Steve McCullough
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: