WordPress.org

Ready to get started?Download WordPress

Forums

Warning: Cannot modify header information (12 posts)

  1. Icrywolf
    Member
    Posted 9 years ago #

    Installation went beautifully, and the default page looks fine ( http://www.icrywolf.com ), but when I go to login, I get the following error lines at the top of the screen:

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

    Also for lines 43, 44, and 45. After I put in my admin & password, I just get three more of these lines for 167, 168, and 174.

    I've looked at the wp-login PHP file, but it's Greek to me. What could be the hangup on this? Ta.

  2. James
    Happiness Engineer
    Posted 9 years ago #

  3. Icrywolf
    Member
    Posted 9 years ago #

    I've done this as many different ways as possible, but a space (or carriage return) keeps reintroducing itself after I save the file. Ugh.

  4. James
    Happiness Engineer
    Posted 9 years ago #

    Deactivate any active plugins (by renaming or deleting the plugin files), then delete wp-login.php and upload a new copy from a fresh WP download. Do not overwrite the file. Overwriting files via FTP can lead to incomplete transfers.

  5. NuclearMoose
    Member
    Posted 9 years ago #

    What program are you using to edit the file?

  6. deydas
    Member
    Posted 9 years ago #

    Do not use something like Microsoft Word and all that. Also if you are using Notepad, make sure that the 'Word Wrap' option is not checked.

  7. Icrywolf
    Member
    Posted 9 years ago #

    I've tried different text editors with different settings (nothing like Word ... notepad, text edit, bbedit), and it always ends up with a carriage return after the last line. I think my site's FTP server is putting it in there. Can't delete it. Is there another way around this? Been banging my head against this wall all weekend.

  8. James
    Happiness Engineer
    Posted 9 years ago #

    No, your FTP app is doing that. Check your FTP app settings and it it to upload your files as ASCII or text.

  9. Icrywolf
    Member
    Posted 9 years ago #

    Still not working. When I upload/download with Fetch (set for "text"), there's no space at the end of the wp-login.php file. The header error occurs. When I check the file in my site's control panel browser interface, there's a carriage return after the last ?> and it won't go away, no matter how many times I overwrite or upload/download.

    I have another WP blog on a different host that works just fine. I don't understand how this could NOT be working?

  10. TechGnome
    Moderator
    Posted 9 years ago #

    It's NOT the wp-login file that's causing issues.... it's the wp-config.php file....

    here's some help in deciphering the error msg:
    Warning: Cannot modify header information - headers already sent by (output started at /home/icrywolf/public_html/wp-config.php:34) in /home/icrywolf/public_html/wp-login.php on line 42

    Right there in bold it tells you exactly where the header was already sent.

    Line 42 of wp-login tries to do a redirect, which you can't do if headers were already sent. Which, in this case, happened on line 34 of the wp-config.php file.

    Tg

  11. Icrywolf
    Member
    Posted 9 years ago #

    An entire weekend of stress melts away. It's always something obvious, isn't it?

    Working now. Thanks Tg.

  12. TechGnome
    Moderator
    Posted 9 years ago #

    hehe....
    A friend and I were driving around town look for a place to live. As we passed one apartment complex, I said "hey how about this place, movin special, first two months free!" He said, "how'd you know that" -- "That big ol'e banner on the side of the building."

    It became a joke later - It's those little things in life, like that six foot sign on the wall.

    Glad to be of help

    Tg

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.