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

API File for Contributions incorrectly named "Contribute.php"

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 3.1.4
    • Fix Version/s: 3.2
    • Component/s: CiviCRM API
    • Labels:
      None

      Description

      The API file that exposes the contribution functions is incorrectly named "Contribute.php". As a result, the REST API is unable to resolve functions as it expects the name of the file to be the same as the prefix of the functions. The prefix of the functions in Contribute.php is "civicrm_contribution", not "civicrm_contribute".

      The work around is to copy the Contribute.php file in [root]/api/v2 folder and rename it to Contribution.php.

        Attachments

          Activity

            People

            • Assignee:
              lobo Donald A. Lobo
              Reporter:
              mattlavinder Matt Lavinder
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: