Skip to:

Unable to login – cannot modify header information

Viewing 4 replies - 1 through 4 (of 4 total)
  • Did you install any plugins or add anything else to config.php?


    Sam Bauers


    I’d say you have some whitespace before the “<?php” tag in your config.php file.



    Just wanted to add a note to save someone out there a bit of agony around config.php and extra characters.

    I had edited my config.php file and was getting the “Warning: Cannot modify header information…” error upon admin log-in.

    But for the life of me, I couldn’t find any whitespace before the “<?php” tag.

    And then I remembered…

    I had edited the file with Expression Web. I know, I know, my bad. But it just looked nicer, was easier to edit. BUT as I found a few years ago, it has a tendency to add an invisible character before files. Only way to see this would be in a byte editor.

    So then I went back to the original sample config.php file, did a new version of my edits, this time in Notepad (good old notepad) and it worked beautifully.

    I think the lesson is “mind your text editor.”

    Very interesting.

    Thanks guys for paulandrew for the info

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.
Skip to toolbar