Cannot modify header information – headers already sent
-
Hi everyone,
Not sure when this started or why (I haven’t changed my site for quite some time), but mobile (Android 7.1.2 Chrome and Firefox) access to my web site gives the white screen of death displaying just “error”. Works OK on an Apple.I accept this may be an Android, Nexus 5X or even a problem with my phone, but the error seems a bit mysterious so I’m hoping this post will either identify the problem or (when I find the cause) enable someone else to learn from the cause!
I updated WordPress to 4.8 and all the plugins and the Udesign theme, but it still does the same thing.
Debug output (on 4.8) is listed below. And the code referred to is the setcookie lines in the following:
++++++++++++++++++++++++++++
/** This filter is documented in wp-includes/pluggable.php */
if ( ! apply_filters( ‘send_auth_cookies’, true ) ) {
return;
}// Auth cookies
setcookie( AUTH_COOKIE, ‘ ‘, time() – YEAR_IN_SECONDS, ADMIN_COOKIE_PATH, COOKIE_DOMAIN );
setcookie( SECURE_AUTH_COOKIE, ‘ ‘, time() – YEAR_IN_SECONDS, ADMIN_COOKIE_PATH, COOKIE_DOMAIN );
setcookie( AUTH_COOKIE, ‘ ‘, time() – YEAR_IN_SECONDS, PLUGINS_COOKIE_PATH, COOKIE_DOMAIN );
setcookie( SECURE_AUTH_COOKIE, ‘ ‘, time() – YEAR_IN_SECONDS, PLUGINS_COOKIE_PATH, COOKIE_DOMAIN );
setcookie( LOGGED_IN_COOKIE, ‘ ‘, time() – YEAR_IN_SECONDS, COOKIEPATH, COOKIE_DOMAIN );
setcookie( LOGGED_IN_COOKIE, ‘ ‘, time() – YEAR_IN_SECONDS, SITECOOKIEPATH, COOKIE_DOMAIN );// Settings cookies
setcookie( ‘wp-settings-‘ . get_current_user_id(), ‘ ‘, time() – YEAR_IN_SECONDS, SITECOOKIEPATH );
setcookie( ‘wp-settings-time-‘ . get_current_user_id(), ‘ ‘, time() – YEAR_IN_SECONDS, SITECOOKIEPATH );// Old cookies
setcookie( AUTH_COOKIE, ‘ ‘, time() – YEAR_IN_SECONDS, COOKIEPATH, COOKIE_DOMAIN );
setcookie( AUTH_COOKIE, ‘ ‘, time() – YEAR_IN_SECONDS, SITECOOKIEPATH, COOKIE_DOMAIN );
setcookie( SECURE_AUTH_COOKIE, ‘ ‘, time() – YEAR_IN_SECONDS, COOKIEPATH, COOKIE_DOMAIN );
setcookie( SECURE_AUTH_COOKIE, ‘ ‘, time() – YEAR_IN_SECONDS, SITECOOKIEPATH, COOKIE_DOMAIN );// Even older cookies
setcookie( USER_COOKIE, ‘ ‘, time() – YEAR_IN_SECONDS, COOKIEPATH, COOKIE_DOMAIN );
setcookie( PASS_COOKIE, ‘ ‘, time() – YEAR_IN_SECONDS, COOKIEPATH, COOKIE_DOMAIN );
setcookie( USER_COOKIE, ‘ ‘, time() – YEAR_IN_SECONDS, SITECOOKIEPATH, COOKIE_DOMAIN );
setcookie( PASS_COOKIE, ‘ ‘, time() – YEAR_IN_SECONDS, SITECOOKIEPATH, COOKIE_DOMAIN );
}
endif;
+++++++++++++++++++++++Loading the site on PC web browser works fine. I looked at pluggable.php and found two extra blank lines after the last endif; statement – removed them but it still fails.
Any other suggestions?
Thanks in advance.
SteveWarning: Cannot modify header information – headers already sent by (output started at /home/theva/public_html/wp-config.php:97) in /home/theva/public_html/wp-includes/pluggable.php on line 942
Warning: Cannot modify header information – headers already sent by (output started at /home/theva/public_html/wp-config.php:97) in /home/theva/public_html/wp-includes/pluggable.php on line 943
Warning: Cannot modify header information – headers already sent by (output started at /home/theva/public_html/wp-config.php:97) in /home/theva/public_html/wp-includes/pluggable.php on line 944
Warning: Cannot modify header information – headers already sent by (output started at /home/theva/public_html/wp-config.php:97) in /home/theva/public_html/wp-includes/pluggable.php on line 945
Warning: Cannot modify header information – headers already sent by (output started at /home/theva/public_html/wp-config.php:97) in /home/theva/public_html/wp-includes/pluggable.php on line 946
Warning: Cannot modify header information – headers already sent by (output started at /home/theva/public_html/wp-config.php:97) in /home/theva/public_html/wp-includes/pluggable.php on line 947
Warning: Cannot modify header information – headers already sent by (output started at /home/theva/public_html/wp-config.php:97) in /home/theva/public_html/wp-includes/pluggable.php on line 950
Warning: Cannot modify header information – headers already sent by (output started at /home/theva/public_html/wp-config.php:97) in /home/theva/public_html/wp-includes/pluggable.php on line 951
Warning: Cannot modify header information – headers already sent by (output started at /home/theva/public_html/wp-config.php:97) in /home/theva/public_html/wp-includes/pluggable.php on line 954
Warning: Cannot modify header information – headers already sent by (output started at /home/theva/public_html/wp-config.php:97) in /home/theva/public_html/wp-includes/pluggable.php on line 955
Warning: Cannot modify header information – headers already sent by (output started at /home/theva/public_html/wp-config.php:97) in /home/theva/public_html/wp-includes/pluggable.php on line 956
Warning: Cannot modify header information – headers already sent by (output started at /home/theva/public_html/wp-config.php:97) in /home/theva/public_html/wp-includes/pluggable.php on line 957
Warning: Cannot modify header information – headers already sent by (output started at /home/theva/public_html/wp-config.php:97) in /home/theva/public_html/wp-includes/pluggable.php on line 960
Warning: Cannot modify header information – headers already sent by (output started at /home/theva/public_html/wp-config.php:97) in /home/theva/public_html/wp-includes/pluggable.php on line 961
Warning: Cannot modify header information – headers already sent by (output started at /home/theva/public_html/wp-config.php:97) in /home/theva/public_html/wp-includes/pluggable.php on line 962
Warning: Cannot modify header information – headers already sent by (output started at /home/theva/public_html/wp-config.php:97) in /home/theva/public_html/wp-includes/pluggable.php on line 963
error
- The topic ‘Cannot modify header information – headers already sent’ is closed to new replies.