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

civicrm_error cannot be used with v1 APIs

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0
    • Component/s: Core CiviCRM
    • Labels:
      None

      Description

      All of the wiki API documentation describes testing the result of all API calls with civicirm_error($result) . However this resides in api/v2/utils.php . None of the v1 APIs include this file, most notably UFGroup.php . So you get a Call to undefined function civicrm_error() fatal error.

      My thought is that all API files should require_once('api/v2/utils.php');

        Attachments

          Activity

            People

            • Assignee:
              manish Manish Zope
              Reporter:
              dalin dave hansen-lange
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: