Skip to:
Content
Pages
Categories
Search
Top
Bottom

Unable to login – cannot modify header information

  • Installed bbpress, checked integration – everything worked fine, I was even able to post a few topics…

    Now all of a sudden I can’t login – it started giving me the following:

    Warning: Cannot modify header information - headers already sent by (output started at /home/skazka/public_html/forum/config.php:1) in /home/skazka/public_html/forum/bb-includes/pluggable.php on line 37

    Warning: Cannot modify header information - headers already sent by (output started at /home/skazka/public_html/forum/config.php:1) in /home/skazka/public_html/forum/bb-includes/pluggable.php on line 37

    Warning: Cannot modify header information - headers already sent by (output started at /home/skazka/public_html/forum/config.php:1) in /home/skazka/public_html/forum/bb-includes/pluggable.php on line 166

    I haven’t modified any code, nor any file. It just started suddenly :(.

    What have I done wrong?

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

    Trent


    Sam Bauers
    Participant

    @sambauers

    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.