Support » Fixing WordPress » Warning: Cannot modify header information

  • I started fiddling with my calendar and bunged everything up. I fixed most of what I screwed up, but now I can’t log into my admin section. When I type in my user ID and password, the login screen simply repeats with the following error message along the top:

    “Warning: Cannot modify header information – headers already sent by (output started at /home/foojrai/public_html/blog/wp-includes/template-functions-general.php:653) in /home/foojrai/public_html/blog/wp-login.php on line 136

    Warning: Cannot modify header information – headers already sent by (output started at /home/foojrai/public_html/blog/wp-includes/template-functions-general.php:653) in /home/foojrai/public_html/blog/wp-login.php on line 138″

    I have been to the appropriate lines in wp-login.php, but have been unable to solve the problem. Can anyone offer advice?

    Cheers!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Look for spaces or returns before the opening php tag <?php and after the closing php tag ?>.

    Thread Starter brpublicover

    (@brpublicover)

    Thanks, Nuke Moose! Okay, those spaces took care of the parse errors, but I still have a prob: when I try to log in, the login screen simply refreshes (rather than letting me into the account).

    Any idea what the prob is here?

    Cheers!

    are you allowing cookies ?

    Thread Starter brpublicover

    (@brpublicover)

    Cookies… would that be connected to “COOKIEHASH” sorta stuff in the wp-login.php file?

    B.

    Yes, the browser cookies. Try deleting them (if you can, just those for your domain), restart the browser, and try to log in again.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Warning: Cannot modify header information’ is closed to new replies.