<分区>
我遇到了这个错误。我不知道如何处理这个问题。
Cannot modify header information - headers already sent by (output started at /home/ben213/public_html/wp-content/themes/Bendaggers/functions.php:9) in /home/ben213/public_html/wp-includes/pluggable.php on line 934
我的 Functions.php 文件第 9 行是:
<?php if(function_exists('register_sidebar'))register_sidebar();?>
而我的 pluggable.php #934 是
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);}
endif;
我很难弄清楚这一点,因为我不是程序员。似乎出了什么问题? 请帮助我...