Ready to get started?Download WordPress


Very odd error (archives / wp-login) (4 posts)

  1. Mark (podz)
    Support Maven
    Posted 10 years ago #

    Been moving all the hacks into their own directory, and the 'my-hacks.php' is now just a list of calls ( like this <?php require_once('hacks/comment_plugger.php'); ?> )
    I tested as I went, and all was fine until I moved this one.
    Now my page looks fine, but when I go to log in, I get errors ;
    Warning: Cannot modify header information - headers already sent by (output started at /home/---path---/T2/hacks/comment_plugger.php:26) in /home/---path---/T2/wp-login.php on line 254
    I've checked that file, and this part refers to ;
    header("Expires: Wed, 5 Jun 1979 23:41:00 GMT"); /* private joke: this is Michel's birthdate - though officially it's on the 6th, since he's GMT+1 :) */
    Does the fact that the hack is now a directory lower matter ? I don't *think* it does...
    I'm at a loss ....

  2. antifuse
    Posted 10 years ago #

    Almost always, when you get a "headers already sent" message it means that you've got unexpected whitespace (blank lines, etc) at the end of a php file. Check comment_plugger.php to ensure that there's no blank lines at the end.

  3. Mark (podz)
    Support Maven
    Posted 10 years ago #

    Ack ! That was it .. and I really should have known that too .. must have got sloppy after doing a pile of files :)

  4. antifuse
    Posted 10 years ago #

    Happens to me every once in a while too... but it happened almost every time I edited a file when I first started using WP, so I have it ingrained into my brain... :P

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.