• Resolved taupo

    (@taupo)


    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 112

    header(‘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

Viewing 2 replies - 16 through 17 (of 17 total)
  • I get this error:

    Warning: Cannot modify header information – headers already sent by (output started at ./wordpress/wp-includes/wp-db.php:102) in ./wordpress/wp-admin/post.php on line 128

    I have the same issues, but the harikumar’s fix didn’t resolve anything. I am hunting for whitespaces now in all the files… The strange thing is that I have another website, hosted at the same Hosting Service, and with the exact same configurations. On that site it works fine, on the other it doesn’t…

    This is the solution I found for this problem.

    Sign in to your wp-admin. Go to Options > Writing > Update Services. Delete ALL update services except:

    https://rpc.pingomatic.com/

Viewing 2 replies - 16 through 17 (of 17 total)
  • The topic ‘lost connection to mySQL server during query’ is closed to new replies.