おそらく、私がここに投稿している理由の多くは、多くの質問の複製ではありませんが、これはWp-login.phpページに表示されるログです。
Notice: automatic_feed_links is deprecated since version 3.0! Use add_theme_support( 'automatic-feed-links' ) instead. in /home/truckgua/public_html/test2/wp-includes/functions.php on line 2871
Notice: wp_deregister_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.) in /home/truckgua/public_html/test2/wp-includes/functions.php on line 3012
Warning: Cannot modify header information - headers already sent by (output started at /home/truckgua/public_html/test2/wp-includes/functions.php:2871) in /home/truckgua/public_html/test2/wp-login.php on line 384
Warning: Cannot modify header information - headers already sent by (output started at /home/truckgua/public_html/test2/wp-includes/functions.php:2871) in /home/truckgua/public_html/test2/wp-login.php on line 396
Warning: Cannot modify header information - headers already sent by (output started at /home/truckgua/public_html/test2/wp-includes/functions.php:2871) in /home/truckgua/public_html/test2/wp-includes/pluggable.php on line 678
Warning: Cannot modify header information - headers already sent by (output started at /home/truckgua/public_html/test2/wp-includes/functions.php:2871) in /home/truckgua/public_html/test2/wp-includes/pluggable.php on line 679
Warning: Cannot modify header information - headers already sent by (output started at /home/truckgua/public_html/test2/wp-includes/functions.php:2871) in /home/truckgua/public_html/test2/wp-includes/pluggable.php on line 680
Warning: Cannot modify header information - headers already sent by (output started at /home/truckgua/public_html/test2/wp-includes/functions.php:2871) in /home/truckgua/public_html/test2/wp-includes/pluggable.php on line 875
WPバージョン3.6とWPバージョン3.7.1で同じことがわかりました
今ここに私はそれが機能するようにするためにすでに行ったことがあります:
もう1つ重要なのは、このWebサイトがWindows Server上で開発され、現在はLinux Server上で移動していることです
今ここに私はそれが機能するようにするためにすでに行ったことがあります:
- FTPからプラグインを無効にする
どのプラグイン?
- 選択したテーマフォルダの名前を変更してテーマを切り替える
- 前後のスペースの確認
何の前後に?
- WPファイルを新しいダウンロードで置き換える
あなたは早くやめた。 PHPは、どのような問題が発生しているのかを示しており、通知や警告を無視しているようです。
最初の通知を読みましょう。
Notice: automatic_feed_links is deprecated since version 3.0! Use add_theme_support( 'automatic-feed-links' ) instead.
それでは、行を折り返して読みやすくするための説明文を追加しましょう。
問題:automatic_feed_links()
関数はバージョン3.0以降廃止予定です。
解決策:代わりにadd_theme_support( 'automatic-feed-links' );
を使用してください。
automatic_feed_links()
関数を呼び出します。// automatic_feed_links()
。 (これは正確には見えないかもしれません。)add_theme_support( 'automatic-feed-links' );
2番目の通知を読みましょう。
Notice: wp_deregister_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.) in /home/truckgua/public_html/test2/wp-includes/functions.php on line 3012
それでは、行を折り返して読みやすくするための説明文を追加しましょう。
問題:wp_deregister_script()
関数が間違ったフックを使って呼び出されました。
解決方法:スクリプトとスタイルは、wp_enqueue_scripts
、admin_enqueue_scripts
、またはlogin_enqueue_scripts
フックまで登録またはキューに入れないでください。
wp_deregister_script()
関数を呼び出します。wp_deregister_script()
関数呼び出しのある行が見つかったら、その行があるユーザー定義関数の名前を探します。add_action()
関数呼び出しを探します。add_action( 'wp_enqueue_scripts', 'the_name of the user defined function' );
を追加します。the_name of the user defined function
を、手順3で見つけたユーザー定義関数で見つけた関数の名前に置き換えます。すべての通知がなくなると、ヘッダーの前に何も追加されなくなり、その他の警告がなくなる可能性があります。
これらの変更はページを修正しないかもしれません。他のエラーがそれをしているかもしれませんが、より多くのデバッグを続ける前に、最初に特記事項を修正する必要があります。
比較的古いテーマを使用しようとしているように見えますが、ワードプレース3.4以降のベストプラクティスとは互換性がありません。
「非推奨」の通知は修正する必要があります。一つの方法は@Charlesが示唆するように実際にそれらを修正することです、そしてもう一つはあなたのconfig.phpファイルに行くことによってそれらを隠してWP_DEBUGがTRUEに設定されている行を削除またはコメントすることです。