wordpress后台Warning: Cannot modify header information - headers already sent byWarning: Cannot modify header information - headers already sent by (output started at /.../public_html/wp-config.php:1) in /.../public_html/wp-includes/pluggable.php o
来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/18 13:04:47
wordpress后台Warning: Cannot modify header information - headers already sent byWarning: Cannot modify header information - headers already sent by (output started at /.../public_html/wp-config.php:1) in /.../public_html/wp-includes/pluggable.php o
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行)
}
}
前台没问题,后台出现这问题
wordpress后台Warning: Cannot modify header information - headers already sent byWarning: Cannot modify header information - headers already sent by (output started at /.../public_html/wp-config.php:1) in /.../public_html/wp-includes/pluggable.php o
DW编辑文件的话默认貌似不是utf8无bom,你检查一下编码,这毛病通常是因为括号里那个文件由于有bom多出一个看不见的空格
括号里面那个文件是不是用记事本编辑过了?用专门的编辑器存成utf8无bom或者记事本存成ANSI格式 后面应该还有哪个文件引起的这个问题,你重点看下那个我没动过这个文件,一般打开文件也是用DW,我百度搜了类似的问题,都是这样说的,不懂php,所以还是不明白,能详细解答下吗?...
全部展开
括号里面那个文件是不是用记事本编辑过了?用专门的编辑器存成utf8无bom或者记事本存成ANSI格式 后面应该还有哪个文件引起的这个问题,你重点看下那个
收起
我的也有这样提示,不过我是把Auto Blogroll 插件停用就可以了!不信你可以试试!
备份下数据 重装wordpress吧 这种问题比较难解决。。