0

我正在尝试在http://www.kzoomarketing.com/tascott/wp-login.php登录 wordpress 管理员

我收到这条消息:

Warning: Header may not contain more than a single header, new line detected. in /home/absbm/public_html/tascott/wp-login.php on line 361

Warning: Cannot modify header information - headers already sent by (output started at /home/absbm/public_html/tascott/wp-login.php:361) in /home/absbm/public_html/tascott/wp-login.php on line 363

Warning: Cannot modify header information - headers already sent by (output started at /home/absbm/public_html/tascott/wp-login.php:361) in /home/absbm/public_html/tascott/wp-includes/pluggable.php on line 669

Warning: Cannot modify header information - headers already sent by (output started at /home/absbm/public_html/tascott/wp-login.php:361) in /home/absbm/public_html/tascott/wp-includes/pluggable.php on line 670

Warning: Cannot modify header information - headers already sent by (output started at /home/absbm/public_html/tascott/wp-login.php:361) in /home/absbm/public_html/tascott/wp-includes/pluggable.php on line 671

Warning: Cannot modify header information - headers already sent by (output started at /home/absbm/public_html/tascott/wp-login.php:361) in /home/absbm/public_html/tascott/wp-includes/pluggable.php on line 673

Warning: Cannot modify header information - headers already sent by (output started at /home/absbm/public_html/tascott/wp-login.php:361) in /home/absbm/public_html/tascott/wp-includes/pluggable.php on line 866

我删除了 login.php 末尾的空格,但仍然收到此错误。

我还查看了第 361 行,并将该文件与其他 wordpress 安装进行了比较,没有发现任何问题。

对此问题的任何帮助将不胜感激。

4

3 回答 3

2

我有同样的问题,我解决了这个问题:

http://wordpress.org/support/topic/warning-header-may-not-contain-more-than-a-single-header-1

joshfraz 发表于 4 年前

我也有这个问题。事实证明,我的 siteurl 选项末尾有一个额外的空间。一旦我删除了空间,它就可以正常工作。

因此,在您的 WP 数据库中,检查 wp_options > siturl 并删除值字段中的任何额外空格或换行符。

如果第一种方法不能解决您的问题,其他一些用户可能会遇到 utf8 BOM 代码问题。

于 2014-02-25T18:12:21.013 回答
0

<?php当您的文件在and之前或之后包含空格时,通常会弹出此类错误?>

如果您有插件或自定义的东西,请确保<?php. 通常?>可以完全省略以避免出现问题。

于 2012-07-23T22:59:58.550 回答
0

You should not change your core files.

I suspect one of your plugin files causes the problem, try disabling them one by one, if you find the one remove the last ?> in the offending file.

There is also a plugin which goes by all your plugins and then deletes all whitespaces at the end.

于 2012-07-23T23:00:23.473 回答