lost connection to mySQL server during query
-
following is the error message I am getting when publishing. see https://www.taupo.org.nz/wordpress for the then result. I have posted on this issue a couple of times and suggestion is that it is a host problem. My host has no answers???
Could having a database name and username the same conflict????
error message……….. WordPress database error: [MySQL server has gone away]
SELECT ID, user_login, user_pass FROM wp_users WHERE user_login = ‘admin’Warning: Cannot modify header information – headers already sent by (output started at /home/sites/site182/web/wordpress/wp-includes/wp-db.php:98) in /home/sites/site182/web/wordpress/wp-includes/pluggable-functions.php on line 109
Warning: Cannot modify header information – headers already sent by (output started at /home/sites/site182/web/wordpress/wp-includes/wp-db.php:98) in /home/sites/site182/web/wordpress/wp-includes/pluggable-functions.php on line 110
Warning: Cannot modify header information – headers already sent by (output started at /home/sites/site182/web/wordpress/wp-includes/wp-db.php:98) in /home/sites/site182/web/wordpress/wp-includes/pluggable-functions.php on line 111
Warning: Cannot modify header information – headers already sent by (output started at /home/sites/site182/web/wordpress/wp-includes/wp-db.php:98) in /home/sites/site182/web/wordpress/wp-includes/pluggable-functions.php on line 112
Warning: Cannot modify header information – headers already sent by (output started at /home/sites/site182/web/wordpress/wp-includes/wp-db.php:98) in /home/sites/site182/web/wordpress/wp-includes/pluggable-functions.php on line 114
This is the PHP script that the above relates to (I have added line numbers)
endif;
if ( !function_exists(‘auth_redirect’) ) :
function auth_redirect() {
// Checks if a user is logged in, if not redirects them to the login page
if ( (!empty($_COOKIE[‘wordpressuser_’ . COOKIEHASH]) &&
!wp_login($_COOKIE[‘wordpressuser_’ . COOKIEHASH], $_COOKIE[‘wordpresspass_’ . COOKIEHASH], true)) ||
(empty($_COOKIE[‘wordpressuser_’ . COOKIEHASH])) ) {
header(‘Expires: Wed, 11 Jan 1984 05:00:00 GMT’); =line 109
header(‘Last-Modified: ‘ . gmdate(‘D, d M Y H:i:s’) . ‘ GMT’); =line 110
header(‘Cache-Control: no-cache, must-revalidate, max-age=0’); =line 111
header(‘Pragma: no-cache’); =line 112header(‘Location: ‘ . get_settings(‘siteurl’) . ‘/wp-login.php?redirect_to=’ . urlencode($_SERVER[‘REQUEST_URI’])); =line 114
exit();
}
}Can anyone help????? Please!!!! even just some suggested questions I can put to my host
- The topic ‘lost connection to mySQL server during query’ is closed to new replies.