2

WordPress 3.5の子テーマで使用していTwenty Eleven 1.5ます。突然、次の警告が表示されます。

Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'cp_admin_init' was given in /home/templ/public_html/wp-includes/plugin.php on line 406

Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, '_canonical_charset' was given in /home/templ/public_html/wp-includes/plugin.php on line 173

次のプラグインを使用しています。

  1. ダウンロードマネージャー 2.3.9
  2. ワードプレス-seo 1.4.7
  3. wp-pagenavi 2.83

さらにいくつかのポイント:

1) mysite.comを指定すると、2 行以上の警告が表示されます。www.mysite.comを指定すると、次の行にも次のものが含まれます。

Warning: Cannot modify header information - headers already sent by (output started at /home/templ/public_html/wp-includes/plugin.php:406) in /home/templ/public_html/wp-includes/pluggable.php on line 876

2) mysite.com/wp-admin/またはwww.mysite.com/wp-admin/を指定すると、1 番目の警告と 3 番目の警告が表示されます。

3) www.mysite.com/wp-login.phpにアクセスすると、次の 5 つの警告が表示されます。

Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'cp_admin_init' was given in /home/templ/public_html/wp-includes/plugin.php on line 406

Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, '_canonical_charset' was given in /home/templ/public_html/wp-includes/plugin.php on line 173

Warning: Cannot modify header information - headers already sent by (output started at /home/templ/public_html/wp-includes/plugin.php:406) in /home/templ/public_html/wp-login.php on line 368

Warning: Cannot modify header information - headers already sent by (output started at /home/templ/public_html/wp-includes/plugin.php:406) in /home/templ/public_html/wp-login.php on line 380

Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'wp_authenticate_spam_check' was given in /home/templ/public_html/wp-includes/plugin.php on line 173

4)正しいユーザー名とパスワードを入力しても、ログインできません。次の問題を与えて、

ERROR: Invalid username or incorrect password.
ERROR: Cookies are blocked or not supported by your browser. You must enable cookies to use WordPress.

私は解決策を見つけようとしています。私はできません。誰でも私を助けることができますか?

4

1 に答える 1

0

This sounds like a corrupted install. So you have a few options to fix this:

But First: Make a Backup

Please be sure to backup your install! Before proceeding: http://codex.wordpress.org/WordPress_Backups

Getting Logins Working: Masking the symptoms

First I would disable debugging output because that should fix most of these issues. When a warning occurs in Wordpress, PHP starts writing the response body and closes the header section of the response. This means that whenever Wordpress tries to add another header after the original warning was raised, PHP will raise another warning:

Warning: Cannot modify header information - headers already sent by (output started at /home/templ/public_html/wp-includes/plugin.php:406) in /home/templ/public_html/wp-login.php on line 380

So if we disable debugging then we should be able to mask the symptoms. This is a quick patch for a larger problem that we will have to solve with an in-place upgrade

To Disable Debugging

Ensure that the following constants exist and are set correctly is in your wp-config.php file

define('WP_DEBUG', false);

and

define('WP_DEBUG_DISPLAY', false);

Now you should be able to login to your site as an administrator without errors.

Disable your Plugins

Disable all your plugins in Plugins -> Installed Plugins This is imperative so that we can make sure that the update goes smoothly.

Do an Update

Go to Dashboard -> Updates and click either Update Now or Re-install Now

Reactivate your Plugins

Reactivate all your plugins in Plugins -> Installed Plugins and update them if necessary.

That's It

That's the process for reinstalling Wordpress. The key here is that you have Debugging enabled on a production site which is not good. You should always have WP_DEBUG and WP_DEBUG_DISPLAY set to false in a production environment.

于 2013-11-14T15:00:15.503 に答える