Warning: Error while sending QUERY packet. ... on line 1868
Hi, I'm pretty green when it comes to problems, so would appreciate any help I can get.
I receive the following error when updating my theme (Elegant themes Divi):
Warning: Error while sending QUERY packet. PID=452558 in /home/tracyo5/public_html/backporchbanter.com/wp-includes/wp-db.php on line 1868
Line 1868 is $this->result = mysqli_query( $this->dbh, $query );
and is part of the code shown below:
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() );
}
}
What should I do to fix this error when updating the theme?
Thank you!!!
I receive the following error when updating my theme (Elegant themes Divi):
Warning: Error while sending QUERY packet. PID=452558 in /home/tracyo5/public_html/backporchbanter.com/wp-includes/wp-db.php on line 1868
Line 1868 is $this->result = mysqli_query( $this->dbh, $query );
and is part of the code shown below:
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() );
}
}
What should I do to fix this error when updating the theme?
Thank you!!!