我遇到此错误。我不知道如何处理这个问题。无法修改标题信息 - 标题已发送... Wordpress问题
不能更改头信息 - 头已经(输出 开始在 /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之前需要设置它们。 –
在这里不知道保罗,我知道的是<?php if(function_exists('register_sidebar'))register_sidebar();?>是用于widgetizing我的侧边栏。不知道,对不起。 –