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

class-based API is making incorrect assumptions about a global variable

    Details

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

      Description

      The class.api.php ping() call is unnecessary on web pages, and should be rewritten to use a higher-level db interface.

      Error message is:
      > PHP Fatal error: Call to a member function ping() on a non-object in [...]sites/all/modules/civicrm/api/class.api.php on line 160,

      global $_DB_DATAOBJECT['CONNECTIONS'][N]->connection is a file descriptor, not an object.

        Attachments

          Activity

            People

            • Assignee:
              xavier xavier dutoit
              Reporter:
              adamw Adam Wight
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: