我遇到此錯誤。我不知道如何處理這個問題。無法修改標題信息 - 標題已發送... 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我的側邊欄。不知道,對不起。 –