• http://www.tamba2.org.uk/T2
    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 ….

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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.

    Thread Starter Mark (podz)

    (@podz)

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

    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… 😛

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Very odd error (archives / wp-login)’ is closed to new replies.