WPのディレクトリ変更に失敗後、元に戻したがログイン画面が真っ白のままになる
-
ドメイントップから1つ下層(以後AAA)にWordpressを移動させようとして失敗しました。
やった手順
検索して来て出てきたサイトを元に(URLは失念しました)
設定→一般 から
・WordPress アドレス (URL)
・サイトアドレス (URL)
上記2つを移動させたい「URL.com/AAA」に変更後「.htaccess」内の 「RewriteBase /」を「RewriteBase / AAA 」に変更
「index.php」内の「require( dirname( __FILE__ ) . ‘/wp-blog-header.php’ );」を
「require( dirname( __FILE__ ) . ‘AAA/wp-blog-header.php’ );」に変更そしてコピーしたファイルをAAAへ移動させて確認をしてみたら真っ白になり表示されなくなりました。
元に戻すためAAAのフォルダ毎削除。
「.htaccess」「index.php」どちらも元の状態に戻して見たところまだ真っ白でした。
調べてみたら一番最初に行ったURLの変更がまずかったと分かり
「wp-config.php」の下部に以下を記述しました。
define(‘WP_HOME’,’正しいURL’);
define(‘WP_SITEURL’,’正しいURL’);その後サイトを更新してみたら正常に表示されましたが、ログイン画面のみ真っ白な状態になりました。
更に調べて「wp-config.php」内の
define(‘WP_DEBUG’, false); を define(‘WP_DEBUG’, true);
に変更してエラーを表示させてみたら以下の4つエラーが出ていました。Notice: wp_register_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.) in /home/abn/AAA.com/public_html/wp-includes/functions.php on line 4138
Notice: wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.) in /home/abn/AAA.com/public_html/wp-includes/functions.php on line 4138
Notice: wp_register_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.) in /home/abn/AAA.com/public_html/wp-includes/functions.php on line 4138
Notice: wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.) in /home/abn/AAA.com/public_html/wp-includes/functions.php on line 4138
該当するファイルを見て見ましたが全く意味がわからず困っております。
解決方法分かる方おられますか?
- トピック「WPのディレクトリ変更に失敗後、元に戻したがログイン画面が真っ白のままになる」には新たに返信することはできません。