サポート » 使い方全般 » ログイン時のエラー

  • 解決済 hitotose

    (@hitotose)


    ログイン画面(-/wp-login.php)にアクセスして、
    ユーザー名、パスワード入力すると以下のような警告が出ます。
    解決方法を教えて欲しいです。
    よろしくお願いいたします。

    Warning: Cannot modify header information – headers already sent by (output started at /usr/local/home/www.nikkol.asia/wp-content/themes/twentyten-child/functions.php:12) in /usr/local/home/www.nikkol.asia/wp-login.php on line 396

    Warning: Cannot modify header information – headers already sent by (output started at /usr/local/home/www.nikkol.asia/wp-content/themes/twentyten-child/functions.php:12) in /usr/local/home/www.nikkol.asia/wp-login.php on line 409

    Warning: Cannot modify header information – headers already sent by (output started at /usr/local/home/www.nikkol.asia/wp-content/themes/twentyten-child/functions.php:12) in /usr/local/home/www.nikkol.asia/wp-includes/pluggable.php on line 914

    Warning: Cannot modify header information – headers already sent by (output started at /usr/local/home/www.nikkol.asia/wp-content/themes/twentyten-child/functions.php:12) in /usr/local/home/www.nikkol.asia/wp-includes/pluggable.php on line 915

    Warning: Cannot modify header information – headers already sent by (output started at /usr/local/home/www.nikkol.asia/wp-content/themes/twentyten-child/functions.php:12) in /usr/local/home/www.nikkol.asia/wp-includes/pluggable.php on line 916

3件の返信を表示中 - 1 - 3件目 (全3件中)
  • > output started at /usr/local/home/www.nikkol.asia/wp-content/themes/twentyten-child/functions.php:12

    のように twentyten-child テーマ内の functions.php の12行目で何かおかしなコードが入っていないかチェックしてみてはと思います。

    トピック投稿者 hitotose

    (@hitotose)

    kimipoohさん
    返信ありがとうございます。

    functions.phpの12行目を確認した所、
    改行になっていましたので、
    不要な改行を削除しました。

    ログイン画面で入力ログインしましたが、
    エラーの表示はありませんでした。

    ありがとうございました。

    上手く直って何よりでした。
    改行でエラーになるということは、 functions.phpの末尾を ?> で終えてませんか。

    functions.php のような全体が PHPコードの場合、空行問題は結構トラブルので、
    ファイルの最後については、?>では閉じないほうがよいと思います。
    参考:http://thesaibase.com/php/end-tag

3件の返信を表示中 - 1 - 3件目 (全3件中)
  • トピック「ログイン時のエラー」には新たに返信することはできません。