WordPress.org

Ready to get started?Download WordPress

Forums

header already sent error... help! (11 posts)

  1. killswitch
    Member
    Posted 10 years ago #

    So, I finally go the installation up an running properly. But now when I go to the login page it gives me the following errors:

    Warning: Cannot modify header information - headers already sent by (output started at ...

    But I checked the <? php and all that, as directed by the wiki and it still gives me errors at login and after an attempted (but failed) login. I'm running php postnuke, my host says it's ver. 4.3.10. But I don't know what do, help!

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

    The warning gives the line number of the error.

    Check the other end ?>

  3. shadow
    Member
    Posted 10 years ago #

    Hey Podz - you are a developer now.
    When did this happen?

    I would have sent you a nice big box of jaffa cakes if I had known :)

    Congratulations

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

    Shadow - still send them. Please - I have run out :(

    And ta very muchly :)

  5. killswitch
    Member
    Posted 10 years ago #

    I checked the other end as well. I've checked everything the wiki told me to and it seems okay. But I'm still getting errors. Heres the full line of text for the errors.

    Warning: Cannot modify header information - headers already sent by (output started at /home/blackout/public_html/killswitch/wp-config.php:34) in /home/blackout/public_html/killswitch/wp-login.php on line 42

    Warning: Cannot modify header information - headers already sent by (output started at /home/blackout/public_html/killswitch/wp-config.php:34) in /home/blackout/public_html/killswitch/wp-login.php on line 43

    Warning: Cannot modify header information - headers already sent by (output started at /home/blackout/public_html/killswitch/wp-config.php:34) in /home/blackout/public_html/killswitch/wp-login.php on line 44

    Warning: Cannot modify header information - headers already sent by (output started at /home/blackout/public_html/killswitch/wp-config.php:34) in /home/blackout/public_html/killswitch/wp-login.php on line 45
    WordPress

    Any ideas?

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

    /wp-config.php:34)

    There it is.

    You doing the delete key thing that it says ?

  7. killswitch
    Member
    Posted 10 years ago #

    What delete key thing? I'm not sure what you are reffering to. There's no space before <?php. And the only space behind the ?> is just what's left over in the text editor. But the scroll bar in my editor isn't activated so i am assuming there is no white space behind.

  8. jkarp
    Member
    Posted 10 years ago #

    And therein is your problem. There must be *no* space after the ?>

  9. killswitch
    Member
    Posted 10 years ago #

    Coul dsome one explain how to get rid of said white space at the end. Sorry. I'm sure it's really easy...

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

    Description: You get a warning message on your browser that says:

    Warning: Cannot modify header information - headers already sent by (output started at…

    Reason and Solution :

    It is usually because there are spaces, new lines, or other garbage before an opening <?php tag or after a closing ?> tag, typically in wp-config.php. This could be true about some other file too, so please check the error message, as it will list the specific file name where the error occurred.

    Just because you cannot see anything does not mean that PHP sees the same.

    Download the file mentioned in the error message.

    Open that file in a plain text editor (NOT MS Word or similar. Notepad or BBEdit are fine).

    Check that the very first characters are <?php

    Check that the very last characters are ?>

    To be sure about the end of the file, do this:

    1. Place the cursor between the ? and >
    2. Now press the DELETE key on your computer
    3. Keep it pressed
    4. For at least 15 seconds
    5. Now type > and
    6. save without pressing any other key at all.
    7. If you press another key, you will bring the problem back.

  11. killswitch
    Member
    Posted 10 years ago #

    nevermind I just got it. thanks

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.