【问题标题】:Cannot modify header information - cannot be resolved though no errors [duplicate]无法修改标头信息-尽管没有错误但无法解决[重复]
【发布时间】:2015-12-24 12:44:46
【问题描述】:

我的 wordpress 网站出现问题,我在登录屏幕上看不到任何内容:http://vtrails.us/login - 它是空白的。 但是在我的error_log 文件中,我正在寻找一个问题

PHP Warning: Cannot modify header information - headers already sent by (output started at /home/vtrailsu/public_html/wp-content/plugins/mix-tape/update_calls.php:198) in /home/vtrailsu/public_html/wp-includes/pluggable.php on line 1228 但我在update_calls : line 198 上看不到任何东西(见上文) 那么它的解决方案是什么?我可以得到更多关于它的信息吗?

【问题讨论】:

  • 在这种情况下你有错误(称为警告):)
  • 尝试在 PHP.ini 中更改“output_buffering = On”。它解决了我的问题。 chevronscode.com/index.php/…

标签: php error-handling wordpress


【解决方案1】:

不要在 php 脚本末尾使用?>。结束标签是可选的。 + ?> 后面有 2 个换行符用于输出。

只有在你想写纯html之后才使用?>结束标签

【讨论】:

  • 或者,去掉结束标签后的空白...
猜你喜欢
  • 2023-03-14
  • 1970-01-01
  • 2012-04-30
  • 2011-08-03
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2010-12-27
相关资源
最近更新 更多