jimrubenstein/php-profiler — Issue #9: Fatal error: Call to a member function sqlStart() on a non-object in /home/oil/public_html/includes/php-profiler/profiler.php on line 315
Author: davidmurdoch
Created: 2012-03-07 17:45:44+00:00
State: open

I get this error: `Fatal error: Call to a member function sqlStart() on a non-object in /home/oil/public_html/includes/php-profiler/profiler.php on line 315` when running the following code on PHP 5.2.9:

require("php-profiler/profiler.php");
Profiler::enable();
$query = "SELECT * FROM `table`";
$queryProf = Profiler::sqlStart( $query );
// $dbi is a mysqli db connection, obviously.
$results = mysqli_query( $dbi, $query );
$queryProf->end();