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.