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.