このエラーが発生しました。私はこれを扱うことは考えていません。ヘッダー情報を変更できません - 既に送信されたヘッダー... 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;
です。何が間違っているようですか? 親切に助けてください...
こんにちはPaul!申し訳ありませんが、英語で翻訳していただけますか?だから、どうすればいいの? –
'pluggable.php'とは何ですか?なぜあなたはそれを持っていますか? HTTPヘッダーを設定しようとするときに 'functions.php'の前にインクルードする必要があり、HTML出力を開始する前に設定する必要があります。 –
ポール、私が知っているのは<?php if(function_exists( 'register_sidebar'))register_sidebar();?>は私のサイドバーをウィジェット化するためのものです。ごめんなさい、申し訳ありません。 –