2015/12/22 02:57:19 [error] 1828#0: *4119570 FastCGI sent in stderr: "PHP message: PHP Fatal error: Call to a member function stat() on a non-object in /<redacted>/joomla/database/driver/mysqli.php on line 202" while reading response header from upstream, client:
That line references this:
Code: Select all
if ($this->connection->stat() !== false)
Code: Select all
// Close the connection.
if ($this->connection)
{
foreach ($this->disconnectHandlers as $h)
{
call_user_func_array($h, array( &$this));
}
mysqli_close($this->connection);
}
$this->connection = null;
I'll get a full stack trace after I run this at work tomorrow.
The new code presumes that a connection object exists, and has a ->stat() function to call, which isn't the most defensive programming I've ever seen ;-)