预计阅读时间: 2 分钟
问题描述:
在更新wordpress或新安装wordpress的时候,在浏览器上出现错误信息: “Warning: Cannot modify header information – headers already sent by (output started at /path/blog/wp-config.php:34)
解决方法:

  1. 使用FTP下载 wp-config.php 。
  2. 打开 wp-config.php.
  3. 移除 .前的空格
  4. 一定要保证第一个字节是 , 在之前不要有空格。Header Error - 10 Most Common WordPress Errors (+Solutions)
  5. 移除 ?>之后的空格。
  6. 保证最后的字节是 ?>, 在其后不要有空格。Header Error - 10 Most Common WordPress Errors (+Solutions)

这个错误也会在其它文件内出现,特别是函数文件functions.php文件内。如出现RSS错误,一般通过此方法也会得到解决。

此文章对你有帮助吗? 已有 0 人说这篇文章是有用的。