我正在尝试登录wordpress管理员http://www.kzoomarketing.com/tascott/wp-login.php
我收到这个消息:
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安装进行了比较,没有发现任何问题。
如有任何帮助,我们将不胜感激。
我遇到了同样的问题,我用这个解决了问题:
http://wordpress.org/support/topic/warning-header-may-not-contain-more-than-a-single-header-1
joshfraz张贴4年前
我也有这个问题。事实证明,我在我的网站URL选项末尾有一个额外的空间。一旦我把空间移走,效果就很好。
因此,在您的WP数据库中,勾选WP_options>siturl并删除值字段中的任何额外空格或换行符。
如果第一种方法不能解决您的问题,其他一些用户则希望有utf8 BOM代码问题。
当文件在<?php
和?>
之前或之后包含空白时,通常会弹出此类错误。
如果您有一个插件或自定义的东西,请确保<?php
之前没有空格。?>
通常可以完全省略以避免出现问题。
您不应该更改您的核心文件。
我怀疑是你的某个插件文件导致了问题,请尝试逐一禁用它们,如果你发现最后一个删除了它们?>在有问题的文件中。
还有一个插件,它会遍历你的所有插件,然后在最后删除所有空白。