Archive for 八月 2019

“错误:Cookies因预料之外的输出被阻止。要获取帮助,请参见此文档或访问支持论坛。”错误的解决

本博客wordpress后台不能登陆已经有一段时间了,登陆后台时提示”错误:Cookies因预料之外的输出被阻止。要获取帮助,请参见此文档或访问支持论坛。”,如下图所示:

wordpressloginerror01

后台也一直提示ERROR错误日志,如下所示:

[11-Aug-2019 13:28:39 UTC] PHP Warning:  Cannot modify header information – headers already sent by (output started at /wp-config.php:1) inwp-includes/pluggable.php on line 1223
[11-Aug-2019 13:28:46 UTC] PHP Warning:  Cannot modify header information – headers already sent by (output started at /wp-config.php:1) in wp-includes/comment.php on line 529
[11-Aug-2019 13:28:46 UTC] PHP Warning:  Cannot modify header information – headers already sent by (output started at /wp-config.php:1) in wp-includes/comment.php on line 530
[11-Aug-2019 13:28:46 UTC] PHP Warning:  Cannot modify header information – headers already sent by (output started at /wp-config.php:1) in wp-includes/comment.php on line 531
[11-Aug-2019 13:28:46 UTC] PHP Warning:  Cannot modify header information – headers already sent by (output started at /wp-config.php:1) in wp-includes/pluggable.php on line 1223
[11-Aug-2019 13:28:46 UTC] PHP Warning:  Cannot modify header information – headers already sent by (output started at /wp-config.php:1) in wp-includes/functions.php on line 1315
[11-Aug-2019 13:31:08 UTC] PHP Warning:  Cannot modify header information – headers already sent by (output started at /wp-config.php:1) in wp-includes/feed-rss2-comments.php on line 8
[11-Aug-2019 13:31:09 UTC] PHP Warning:  Cannot modify header information – headers already sent by (output started at /wp-config.php:1) inwp-includes/feed-rss2-comments.php on line 8

如上的错误也导致文章不能更新,最近太忙,今天花了些时间搜索了下,发现可能是由于wp-config.php,使用UE打开,并”另存为“一个新文件,另存为时编码选择”ANSI/ASCII“,如下图所示。

wordpressloginerror02

wordpressloginerror03

完成后,上传wp-config.php覆盖原文件,再次打开后台,发现已经没有cookies错误提示,也能登陆后台管理系统。