WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] php header problems (4 posts)

  1. akraz
    Member
    Posted 4 years ago #

    Noticed a lot of pages are broken after changing my database password in MySQL.

    for example http://blog.0mfgl0l.com/wp-login.php
    gets errors at the top:

    Warning: Cannot modify header information - headers already sent by (output started at ***/domains/blog.0mfgl0l.com/html/wp-config.php:63) in ***/domains/blog.0mfgl0l.com/html/wp-login.php on line 302
    
    Warning: Cannot modify header information - headers already sent by (output started at ***/domains/blog.0mfgl0l.com/html/wp-config.php:63) in ***/domains/blog.0mfgl0l.com/html/wp-login.php on line 314

    and when I do log in with my account, it doesnt even do anything. It forwards me to a page with even more header errors. I cant admin any part of my site.

    These are the errors I get when I log in:

    Warning: Cannot modify header information - headers already sent by (output started at ***/domains/blog.0mfgl0l.com/html/wp-config.php:63) in ***/domains/blog.0mfgl0l.com/html/wp-login.php on line 302
    
    Warning: Cannot modify header information - headers already sent by (output started at ***/domains/blog.0mfgl0l.com/html/wp-config.php:63) in ***/domains/blog.0mfgl0l.com/html/wp-login.php on line 314
    
    Warning: Cannot modify header information - headers already sent by (output started at ***/domains/blog.0mfgl0l.com/html/wp-config.php:63) in ***/domains/blog.0mfgl0l.com/html/wp-includes/pluggable.php on line 674
    
    Warning: Cannot modify header information - headers already sent by (output started at ***/domains/blog.0mfgl0l.com/html/wp-config.php:63) in ***/domains/blog.0mfgl0l.com/html/wp-includes/pluggable.php on line 675
    
    Warning: Cannot modify header information - headers already sent by (output started at ***/domains/blog.0mfgl0l.com/html/wp-config.php:63) in ***/domains/blog.0mfgl0l.com/html/wp-includes/pluggable.php on line 676
    
    Warning: Cannot modify header information - headers already sent by (output started at ***/domains/blog.0mfgl0l.com/html/wp-config.php:63) in ***/domains/blog.0mfgl0l.com/html/wp-includes/pluggable.php on line 868

    What is odd is, the main site still works fine. You can view and comment on my blog posts no problem, but nothing else. The other issue now is some russian-speaking spammers have found their way onto my site and are hijacking some posts. I cant delete them because well.. it's broken. :S Help!

  2. Jeremy Clark
    Moderator
    Posted 4 years ago #

    Did you edit your wp-config.php file in a plain text editor such as notepad if not then you'll need to get a new copy from the wordpress zip file and then edit it again with notepad. Also make sure there aren't any spaces before or after the php tags. An easy way is to put your cursor after the > and hold the delete key.

  3. akraz
    Member
    Posted 4 years ago #

    Yeah There were 2 blank lines at the bottom of wp-config.php... i deleted both blank lines now everything works..

    wow what a stupid mistake :S

    I am sorry, resolved now.

    Thank you so much. This would have driven me insane.

  4. Jonas Grumby
    Member
    Posted 4 years ago #

    There is documentation in the codex that says the "headers already sent" message is usually caused by extra spaces where they don't belong. When you get an error message like that it's good to search the codex and forums because the answer is probably already there.

Topic Closed

This topic has been closed to new replies.

About this Topic