Since yesterday, I have been seeing this error message in my Wordpress logs (I've masked out my server information) :
Quote:PHP Warning: mysqli_query(): MySQL server has gone away in /home/___/______.com/wp-includes/wp-db.php on line 1858
PHP Warning: mysqli_query(): Error reading result set's header in /home/___/______.com/wp-includes/wp-db.php on line 1858
PHP Warning: mysql_query(): MySQL server has gone away in /home/___/______.com/wp-includes/wp-db.php on line 1860
PHP Warning: mysql_query(): Error reading result set's header in /home/___/______.com/wp-includes/wp-db.php on line 1860
Lines 1858 and 1860 (bold below) has this set of code :
Quote:private function _do_query( $query ) {
if ( defined( 'SAVEQUERIES' ) && SAVEQUERIES ) {
$this->timer_start();
}
if ( ! empty( $this->dbh ) && $this->use_mysqli ) {
$this->result = mysqli_query( $this->dbh, $query );
} elseif ( ! empty( $this->dbh ) ) {
$this->result = mysql_query( $query, $this->dbh );
}
$this->num_queries++;
if ( defined( 'SAVEQUERIES' ) && SAVEQUERIES ) {
$this->queries[] = array( $query, $this->timer_stop(), $this->get_caller() );
}
}
Any advice as to what's causing this and how to fix this ?
thanks,
Chris