WordPress6.0 管理画面が真っ白になりログインできない

WordPress6.0 管理画面が真っ白になりログインできない

WordPress6.0で、管理画面が真っ白になりログインできない原因と対処法を手順を記述してます。

環境

  • WordPress 6.0.0

エラー全文

管理画面のURLにアクセスすると、真っ白になったままだったので、「wp-config.php」のデバックを一度ONに変更すると、

define('WP_DEBUG', true);

以下のエラーが発生。

Warning: Cannot modify header information - 
headers already sent by 
(output started at /home/xxxxxx/wp-content/themes/generic-child/functions.php:49) 
in /home/xxxxxx/wp-includes/pluggable.php on line 1421

Warning: Cannot modify header information - 
headers already sent by 
(output started at /home/xxxxxx/wp-content/themes/generic-child/functions.php:49) 
in /home/xxxxxx/wp-includes/pluggable.php on line 1424

原因

メッセージに記述されているように「functions.php」をみてみると、49行目に改行が含まれていたことが原因

対処法

改行を削除する