WordPress.org

Ready to get started?Download WordPress

Forums

Cannot modify header information - headers already sent by (20 posts)

  1. n4c
    Member
    Posted 9 years ago #

    i have just installed wordpress.... i am having these error... please help me!!!! I cannot login

    n4c
    =============================================
    Warning: Cannot modify header information - headers already sent by (output started at /home/n/public_html/blog/wp/wp-config.php:33) in /home/n/public_html/blog/wp/wp-login.php on line 7

    Warning: Cannot modify header information - headers already sent by (output started at /home/n/public_html/blog/wp/wp-config.php:33) in /home/n/public_html/blog/wp/wp-login.php on line 8

    Warning: Cannot modify header information - headers already sent by (output started at /home/n/public_html/blog/wp/wp-config.php:33) in /home/n/public_html/blog/wp/wp-login.php on line 9

    Warning: Cannot modify header information - headers already sent by (output started at /home/n/public_html/blog/wp/wp-config.php:33) in /home/n/public_html/blog/wp/wp-login.php on line 10

    Warning: Cannot modify header information - headers already sent by (output started at /home/n/public_html/blog/wp/wp-config.php:33) in /home/n/public_html/blog/wp/wp-includes/functions.php on line 1767

    Warning: Cannot modify header information - headers already sent by (output started at /home/n/public_html/blog/wp/wp-config.php:33) in /home/n/public_html/blog/wp/wp-includes/functions.php on line 1768

    Warning: Cannot modify header information - headers already sent by (output started at /home/n/public_html/blog/wp/wp-config.php:33) in /home/n/public_html/blog/wp/wp-login.php on line 185
    ==============================================

  2. lbessant

    Posted 9 years ago #

    You most likely have some surplus whitespace in wp-config - either before the opening <?php or after the closing ?>.

    This Codex page might assist.

  3. n4c
    Member
    Posted 9 years ago #

    The word press is ok... But when try to login i get an error... Im using the username and random password.... Can some one help me?

    thanx

    n4c

    ===============================================
    Warning: Cannot modify header information - headers already sent by (output started at /home/n/public_html/blog/wp/wp-config.php:31) in /home/n/public_html/blog/wp/wp-login.php on line 7

    Warning: Cannot modify header information - headers already sent by (output started at /home/n/public_html/blog/wp/wp-config.php:31) in /home/n/public_html/blog/wp/wp-login.php on line 8

    Warning: Cannot modify header information - headers already sent by (output started at /home/n/public_html/blog/wp/wp-config.php:31) in /home/n/public_html/blog/wp/wp-login.php on line 9

    Warning: Cannot modify header information - headers already sent by (output started at /home/n/public_html/blog/wp/wp-config.php:31) in /home/n/public_html/blog/wp/wp-login.php on line 10

    Warning: Cannot modify header information - headers already sent by (output started at /home/n/public_html/blog/wp/wp-config.php:31) in /home/n/public_html/blog/wp/wp-includes/functions.php on line 1767

    Warning: Cannot modify header information - headers already sent by (output started at /home/n/public_html/blog/wp/wp-config.php:31) in /home/n/public_html/blog/wp/wp-includes/functions.php on line 1768

    Warning: Cannot modify header information - headers already sent by (output started at /home/n/public_html/blog/wp/wp-config.php:31) in /home/n/public_html/blog/wp/wp-login.php on line 185
    ==============================================

  4. Kafkaesqui

    Posted 9 years ago #

    "The word press is ok..."

    If it was, you would not be getting the errors. Follow the link lbessant provides above, and follow the instructions on that page.

  5. "This Codex page might assist." ~ lbessant

  6. fromto
    Member
    Posted 9 years ago #

    there must be problems in incording.

    1. Open up wp-config.php file

    2. incording wp-config.php file to ANSI incording.

    3. Save wp-config.php file

  7. jevgen
    Member
    Posted 9 years ago #

    To ~lbessant and "guru" . Have the same problem. Installation OK, MySQL tables OK, wp-login does not pass. Log analysis shows the crap like n4c stated above. wp-config is OK, its ANSI, php tags OK, no spaces.
    What happened? By the way I installed WP on the same server 50 days ago - there were no problems. Server configuration did not changed. May be distribution is guilty?

  8. "This Codex page might assist." ~ lbessant

  9. duncan
    Member
    Posted 9 years ago #

    Ive got a similar problem, but a slight variation of the theme, and yes, I've tried the codex suggestions and still same message. The message has only occured after I changed hosts (no problems on the last one) and is as follows:
    Warning: Cannot modify header information - headers already sent by (output started at /home/mrb/public_html/wp-config.php:27) in /home/mrb/public_html/wp-admin/admin.php on line 6

    Warning: Cannot modify header information - headers already sent by (output started at /home/mrb/public_html/wp-config.php:27) in /home/mrb/public_html/wp-admin/admin.php on line 7

    Warning: Cannot modify header information - headers already sent by (output started at /home/mrb/public_html/wp-config.php:27) in /home/mrb/public_html/wp-admin/admin.php on line 8

    Warning: Cannot modify header information - headers already sent by (output started at /home/mrb/public_html/wp-config.php:27) in /home/mrb/public_html/wp-admin/admin.php on line 9

    I can post but after posting the admin interface freezes and I get an additional line to the error
    Warning: Cannot modify header information - headers already sent by (output started at /home/mrb/public_html/wp-config.php:27) in /home/mrb/public_html/wp-admin/post.php on line 153

    any thoughts would be appreciated

  10. The problem is in wp-config.php on line 27.

  11. duncan
    Member
    Posted 9 years ago #

    I thought this is what it said but couldn't work it out because there was no line 27, then it dawned on me....whitespace after the>, indeed 4 lines of it.

    thanks as always macmanx

  12. noahwesley
    Member
    Posted 9 years ago #

    I came across this same problem. In my case, I had accidentally uploaded all the WordPress files as BINARY, instead of ANSI/ASCII. This just messes everything up. I switched my FTP program to "AUTO" (which will use ASCII for text-based files, like php, and use BINARY for images).

    After I did this, the errors went away and I lived happily ever after.

    Viva WordPress!

  13. leftofcenter
    Member
    Posted 8 years ago #

    A detailed explanation (with solutions and workarounds) is provided here :
    http://www.siteinaweek.com/howto/headerproblems/headerproblems.html

  14. A detailed explanation with a solution and step-by-step instructions (contributed to by the WordPress developers and community) for the most common occurrences of the "headers already sent" problem in a WordPress installation is provided here:

    http://codex.wordpress.org/FAQ_Troubleshooting#How_do_I_solve_the_Headers_already_sent_warning_problem.3F

  15. sirgt
    Member
    Posted 8 years ago #

    I have the same problem but trying to install wordpress (on step 1 this comes out

    "Warning: Cannot modify header information - headers already sent by (output started at /var/www/site/wp-admin/setup-config.php:22) in /var/www/site/wp-includes/wp-db.php on line 304"

    this is not my first installation but it is the first time i see this

    any ideas?

    thanks

  16. mickemus
    Member
    Posted 8 years ago #

    This solved my problem. Tx. Word of caution though... tools like Adobe GoLive likes to stick meta tags (encoding info etc) at the top of the PHP files. Make sure u switch such automated 'stupidity' ;) OFF!
    Cheers!!

  17. Ronny
    Member
    Posted 8 years ago #

    oh my gosh. that codex page solved the problem of the "Warning: Cannot modify header information - headers"

    just wanted to say great job (and pateience) shown by the forum members, moderators :)

  18. tyniu
    Member
    Posted 8 years ago #

    jeżeli jest tu jakiś Polak niech pisze na nrr gg:7991526 lub 8075565

  19. ivanrolim
    Member
    Posted 7 years ago #

    Well, I want to share some of there problems on my PHPBB site. It stay online for 10 days, until a blackout. After restarting my PC, the file /phpbb/db/mysql4.php was filled with strange characters after '?>' . Just removed then, and the page returned to normal :)

    This maybe be a HACKER attempt, since was repeated commands like

    ?> CONNECT 402 FOR @X At. CONNECT 402 FOR @X At. CONNECT 402 FOR @X At. CONNECT 402 FOR @X At. CONNECT 402 FOR @X At. CONNECT 402 FOR @X At.

    A friend of mine GOT DIFFERENT messages, but REPEATED ones, like ´someone trying to go in´. Fortunatelly, apache is strong (yet) with <Directory> options, nevertheless, we must BEWARE!

  20. dj-anakin
    Member
    Posted 7 years ago #

    Just wanted to say thanks for the Codex link up top. Helped fix a bug i've been messing with for days and couldn't get. Lame.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags