作业帮 > 综合 > 作业

wordpress后台Warning: Cannot modify header information - heade

来源:学生作业帮 编辑:拍题作业网作业帮 分类:综合作业 时间:2024/05/18 02:24:16
wordpress后台Warning: Cannot modify header information - headers already sent by
Warning: Cannot modify header information - headers already sent by (output started at /.../public_html/wp-config.php:1) in /.../public_html/wp-includes/pluggable.php on line 890
pluggable.php 这个文件其中一部分内容
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 ) {
header("Refresh: 0;url=$location");
} else {
if ( php_sapi_name() != 'cgi-fcgi' )
status_header($status); // This causes problems on IIS and some FastCGI setups
header("Location: $location", true, $status); (这是890行)
}
}
前台没问题,后台出现这问题
DW编辑文件的话默认貌似不是utf8无bom,你检查一下编码,这毛病通常是因为括号里那个文件由于有bom多出一个看不见的空格