【发布时间】:2011-11-14 23:02:31
【问题描述】:
我遇到了这个错误。我不知道如何处理。
无法修改标头信息 - 标头已由(输出 开始于 /home/ben213/public_html/wp-content/themes/Bendaggers/functions.php:9) 在 /home/ben213/public_html/wp-includes/pluggable.php 第 934 行
我的 Functions.php 文件第 9 行是:
<?php if(function_exists('register_sidebar'))register_sidebar();?>
而我的 pluggable.php #934 是
函数 wp_redirect($location, $status = 302) { 全局 $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;
我很难弄清楚这一点,因为我不是程序员。似乎有什么问题?请帮助我...
【问题讨论】:
-
感谢赛斯对我的“接受评级”的关注。你对我们很有帮助!
-
@Ben,针对您之前的每个问题,勾选对您有帮助的答案。这是评级旁边的小勾号。号码。
标签: wordpress function pluggable