wp-admin
or dashboard wsod
Website looks fine, only dashboard wsod
.
Set WP_DEBUG
to true
.
No errors displayed.
Then I added no-white-screen.php
in mu-plugins
as ref. suggested.
These are my errors:
Cannot modify header information - headers already sent by (output started at /home/content/58/11808258/html/FFG/wp-includes/pomo/mo.php:2) Backtrace from warning In /home/content/58/11808258/html/FFG/wp-includes/functions.php [line 1141]:
[line ?] calling process_error() /home/content/58/11808258/html/FFG/wp-includes/functions.php [line 1141] calling header_remove() /home/content/58/11808258/html/FFG/wp-admin/admin.php [line 33] calling nocache_headers() /home/content/58/11808258/html/FFG/wp-admin/index.php [line 10] calling require_once()
There are more similar errors but I won't add these, I don't want to spam.
I haven't added any new plugins or done any theme changes, I've anyways deactivated them (by renaming ftp folders) and the problem persisted.
This is the section of function.php that is reporting the errors:
function nocache_headers() {
$headers = wp_get_nocache_headers();
unset( $headers['Last-Modified'] );
// In PHP 5.3+, make sure we are not sending a Last-Modified header.
if ( function_exists( 'header_remove' ) ) {
@header_remove( 'Last-Modified' );
} else {
// In PHP 5.2, send an empty Last-Modified header, but only as a
// last resort to override a header already sent. #WP23021
foreach ( headers_list() as $header ) {
if ( 0 === stripos( $header, 'Last-Modified' ) ) {
$headers['Last-Modified'] = '';
break;
}
}
}
foreach ( $headers as $name => $field_value )
@header("{$name}: {$field_value}");
}
The 'errors' are produced by these 2 lines
@header("{$name}: {$field_value}");
and
@header_remove( 'Last-Modified' );
Any help greatly appreciated!