【发布时间】:2011-11-14 22:47:59
【问题描述】:
我遇到了这个错误。我不知道如何处理。
无法修改标头信息 - 标头已由(输出 开始于 /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 是
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;
我很难弄清楚这一点,因为我不是程序员。似乎有什么问题? 请帮助我...
【问题讨论】:
-
嗨,保罗,美好的一天!对不起,你能把它翻译成英文吗?那我该怎么做呢?
-
什么是
pluggable.php?你为什么拥有它?看起来它应该包含在functions.php之前,因为它尝试设置 HTTP 标头,并且需要在您开始输出 HTML 之前设置这些标头。 -
这里不知道 Paul,我只知道 用于小部件化我的侧边栏。不知道,对不起。