Cannot modify header information - headers already sent by (output started at /data/home/

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Cannot modify header information - headers already sent by (output started at /data/home/相关的知识,希望对你有一定的参考价值。

Warning: Cannot modify header information - headers already sent by (output started at /data/home/qmu015180/htdocs/wp-content/themes/041b/functions.php:1) in/data/home/qmu015180/htdocs/xr-includes/pluggable.php on line 1743
这个事问题
if ( !$is_IIS && php_sapi_name() != 'cgi-fcgi' )
status_header($status);// This causes problems on IIS and some FastCGI setups
header("Location: $location", true, $status);
就是说的这行错误
希望大神解决一下

参考技术A 出这个错误是因为 header('Content-Type:text/html;charset= UTF-8');发送头之前不能有任何输出,空格也不行,你需要将header(...)之前的空格去掉,或者其他输出的东西去掉,如果他上面include其他文件了,你还要检查其他文件里是否有输出
请采纳答案,支持我一下。追问


<?php if (is_home()||is_search()) bloginfo('name'); else wp_title(''); print " 这就是那个header.php前面没有什么东西啊

本回答被提问者采纳

以上是关于Cannot modify header information - headers already sent by (output started at /data/home/的主要内容,如果未能解决你的问题,请参考以下文章

PHP错误Warning: Cannot modify header information - headers already sent by解决方法

Warning: Cannot modify header information - headers already sent in Unknown on line 0

如何解决PHP 出现Warning: Cannot modify header information错误?

Cannot modify header information - headers already sent by (output started at /data/home/

php5.6,Ajax报错,Warning: Cannot modify header information - headers already sent in Unknown on line 0(

ORA-12838: cannot read/modify an object after modifying it in parallel