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

API v2 function civicrm_location_delete returns Fatal error

    Details

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

      Description

      When calling civicrm_location_delete the following error appears:

      Fatal error: Class 'CRM_Core_BAO_Location' not found in (...)/drupal/modules/civicrm/api/v2/Location.php on line 355

      The fix is to add the following after line 346 in api/v2/Location.php:

      require_once 'CRM/Core/BAO/Location.php';

      This change works on my 2.04 installation.

        Attachments

          Activity

            People

            • Assignee:
              lobo Donald A. Lobo
              Reporter:
              barrylb Barry
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 10 minutes
                10m
                Remaining:
                Remaining Estimate - 10 minutes
                10m
                Logged:
                Time Spent - Not Specified
                Not Specified