【问题标题】:Warning: Cannot modify header information wp-includes/functions.php [duplicate]警告:无法修改头信息 wp-includes/functions.php [重复]
【发布时间】:2015-08-09 14:51:02
【问题描述】:

Warning: Cannot modify header information - headers already sent by (output started at /home/******/public_html/wp-includes/functions.php:3198) in /home/*****/public_html/wp-includes/option.php on line 773

如何解决?

【问题讨论】:

    标签: wordpress function header include


    【解决方案1】:

    在 WordPress 尝试设置标头之前,有些东西正在写入输出缓冲区,从而导致您看到的错误。通常这是您的一个文件开头的空格或其他字符(不是option.php,这是试图设置header() 的文件,错误可能在您的主题或wp-config.php)。

    删除发送文本的代码(无论它是什么),错误就会消失。

    【讨论】:

      猜你喜欢
      • 2022-12-14
      • 2018-06-24
      • 1970-01-01
      • 2011-01-15
      • 1970-01-01
      • 1970-01-01
      • 2011-05-09
      • 2010-12-27
      相关资源
      最近更新 更多