• Hello,

    I have received numerous errors like this:

    [05-Apr-2019 16:55:30 UTC] PHP Notice: is_amp_endpoint was called incorrectly </ strong>. The is_amp_endpoint () function was loaded before the ‘parse_query’ hook. This function will always return ‘false’ if loaded before ‘parse_query’. Read how Debug WordPress for more information. (This message was added in version 0.4.2.) In /var/www/mysite.com/htdocs/wp-includes/functions.php on line 4667

    [05-Apr-2019 17:58:09 UTC] PHP Warning: mysqli_real_connect (): (HY000 / 1040): Too many connections in /var/www/mysite.com/htdocs/wp-includes/wp-db.php online 1612

    [05-Apr-2019 17:58:09 UTC] PHP Deprecated: mysql_connect (): The mysql extension is deprecated and will be removed in the future: use mysql or PDO instead in /var/www/mysite.com/htdocs/ wp-includes / wp-db.php on line 1643

    [05-Apr-2019 17:58:09 UTC] PHP Warning: mysql_connect (): Too many connections in /var/www/mysite.com/htdocs/wp-includes/wp-db.php on line 1643

    [05-Apr-2019 17:58:15 UTC] PHP Warning: mysqli_query (): MySQL server has gone away in /var/www/mysite.com/htdocs/wp-includes/wp-db.php on line 2007

    [05-Apr-2019 17:58:15 UTC] PHP Warning: mysqli_query (): Error reading result set’s header in /var/www/mysite.com/htdocs/wp-includes/wp-db.php on line 2007

    [05-Apr-2019 17:58:15 UTC] PHP Warning: mysqli_query (): MySQL server has gone away in /var/www/mysite.com/htdocs/wp-includes/wp-db.php on line 2007

    [05-Apr-2019 17:58:15 UTC] PHP Warning: mysqli_query (): Error reading result set’s header in /var/www/mysite.com/htdocs/wp-includes/wp-db.php on line 2007

    [05-Apr-2019 17:58:15 UTC] PHP Warning: Error while sending QUERY packet. PID = 19985 in /var/www/mysite.com/htdocs/wp-includes/wp-db.php on line 2007

    So my site loses connection to the database and only returns to normal when I restart the MySQL service.

    Are these errors being caused by the AMP plugin? Any suggestions on how to solve it?

    Thanks!

Viewing 1 replies (of 1 total)
  • Plugin Author Weston Ruter

    (@westonruter)

    Humm. The MySQL errors don’t seem to be related to the AMP plugin. The first one regarding incorrectly calling is_amp_endpoint() is due to a theme or plugin that is calling it too early.

Viewing 1 replies (of 1 total)
  • The topic ‘Error connecting to database’ is closed to new replies.