WordPress.org

Ready to get started?Download WordPress

Forums

That darn message again - Warning: Cannot modify header information (17 posts)

  1. affilmike
    Member
    Posted 5 years ago #

    Hi
    I have been in this forum for 3 hours reading up on the solutions. I have removed the "spaces" on my pluggable-php file as suggested, still no joy!!

    I do not know php and used to program years ago.

    I cant seem to find the config file that you folks keep talking about.

    Also I went to each of the lines mentioned below but I do not know where to look for the "spaces" to remove.

    I have deactivated all my plug ins, does this still allow my site to be public?

    Please help, this is very frustrating as I have noted with the other posts

    Michael

    Warning: Cannot modify header information - headers already sent by (output started at /home2/quiltlov/public_html/wp-content/themes/ClubBlue/functions.php:9) in /home2/quiltlov/public_html/wp-login.php on line 287

    Warning: Cannot modify header information - headers already sent by (output started at /home2/quiltlov/public_html/wp-content/themes/ClubBlue/functions.php:9) in /home2/quiltlov/public_html/wp-login.php on line 299

    Warning: Cannot modify header information - headers already sent by (output started at /home2/quiltlov/public_html/wp-content/themes/ClubBlue/functions.php:9) in /home2/quiltlov/public_html/wp-includes/pluggable.php on line 689

    Warning: Cannot modify header information - headers already sent by (output started at /home2/quiltlov/public_html/wp-content/themes/ClubBlue/functions.php:9) in /home2/quiltlov/public_html/wp-includes/pluggable.php on line 690

    Warning: Cannot modify header information - headers already sent by (output started at /home2/quiltlov/public_html/wp-content/themes/ClubBlue/functions.php:9) in /home2/quiltlov/public_html/wp-includes/pluggable.php on line 691

    Warning: Cannot modify header information - headers already sent by (output started at /home2/quiltlov/public_html/wp-content/themes/ClubBlue/functions.php:9) in /home2/quiltlov/public_html/wp-includes/pluggable.php on line 692

    Warning: Cannot modify header information - headers already sent by (output started at /home2/quiltlov/public_html/wp-content/themes/ClubBlue/functions.php:9) in /home2/quiltlov/public_html/wp-includes/pluggable.php on line 693

    Warning: Cannot modify header information - headers already sent by (output started at /home2/quiltlov/public_html/wp-content/themes/ClubBlue/functions.php:9) in /home2/quiltlov/public_html/wp-includes/pluggable.php on line 694

    Warning: Cannot modify header information - headers already sent by (output started at /home2/quiltlov/public_html/wp-content/themes/ClubBlue/functions.php:9) in /home2/quiltlov/public_html/wp-includes/pluggable.php on line 697

    Warning: Cannot modify header information - headers already sent by (output started at /home2/quiltlov/public_html/wp-content/themes/ClubBlue/functions.php:9) in /home2/quiltlov/public_html/wp-includes/pluggable.php on line 698

    Warning: Cannot modify header information - headers already sent by (output started at /home2/quiltlov/public_html/wp-content/themes/ClubBlue/functions.php:9) in /home2/quiltlov/public_html/wp-includes/pluggable.php on line 699

    Warning: Cannot modify header information - headers already sent by (output started at /home2/quiltlov/public_html/wp-content/themes/ClubBlue/functions.php:9) in /home2/quiltlov/public_html/wp-includes/pluggable.php on line 700

    Warning: Cannot modify header information - headers already sent by (output started at /home2/quiltlov/public_html/wp-content/themes/ClubBlue/functions.php:9) in /home2/quiltlov/public_html/wp-includes/pluggable.php on line 703

    Warning: Cannot modify header information - headers already sent by (output started at /home2/quiltlov/public_html/wp-content/themes/ClubBlue/functions.php:9) in /home2/quiltlov/public_html/wp-includes/pluggable.php on line 704

    Warning: Cannot modify header information - headers already sent by (output started at /home2/quiltlov/public_html/wp-content/themes/ClubBlue/functions.php:9) in /home2/quiltlov/public_html/wp-includes/pluggable.php on line 705

    Warning: Cannot modify header information - headers already sent by (output started at /home2/quiltlov/public_html/wp-content/themes/ClubBlue/functions.php:9) in /home2/quiltlov/public_html/wp-includes/pluggable.php on line 706

    Warning: Cannot modify header information - headers already sent by (output started at /home2/quiltlov/public_html/wp-content/themes/ClubBlue/functions.php:9) in /home2/quiltlov/public_html/wp-includes/pluggable.php on line 865

  2. Samuel B
    moderator
    Posted 5 years ago #

    /ClubBlue/functions.php

    look at your theme's functions.php file
    clear the empty space or line break at beginning of file or end of file (or both)

  3. Yojance Rabelo
    Member
    Posted 5 years ago #

    I had the same problem as soon as I updated to the latest version and I did what Samboll just told you and it work. I thought I was the only one having that problem.

  4. affilmike
    Member
    Posted 5 years ago #

    Thank you folks.

    wanted to mention 2 things...

    1 - when I changed from one template to another the problem went away, which means these errors only happen on certain templates so I should let the designer know this.

    2 - went into functions.php of the problem template and there was no ?> at the end, so I held the delete button to get rid of any spaces that may exist then put in the ?>

    IT WORKED!!

    Thanks to all

    Michael

  5. Yojance Rabelo
    Member
    Posted 5 years ago #

    Yeah, sometimes those spaces are not visible and are very easy to miss.

  6. letsnurture
    Member
    Posted 4 years ago #

    Hi folk,

    I had been facing the same problem and so I tried ob_start(); in index.php file at line no 1.

    And it fixed the problem.

    Enjoys!!!!!!

    Reragds,
    Web-Farmer
    http://www.google.com/profiles/sachinpethani
    http://www.letsnurture.com

  7. colintheriot
    Member
    Posted 4 years ago #

    I just wanted to add, I had the same problem when I did an upgrade, so I did what Samboll suggested above, but the theme file was fine. After I narrowed it down to one guilty plugin, I checked the main php file fore it and sure enough, there was an extra line break in it. I removed it and voila! So if a particular plugin is causing this error, try that. :)

  8. Sinac
    Member
    Posted 4 years ago #

    look at your theme's functions.php file
    clear the empty space or line break at beginning of file or end of file (or both)

    it's work, thank you samboll

  9. dmaniatis
    Member
    Posted 4 years ago #

    same problem here. solved it after removing trailing spaces at end of wp-includes/query.php

    it is what is before <? or after ?> tags that cause this.

  10. spotlightingadmin
    Member
    Posted 4 years ago #

    Almost same problem.

    Only appears with new users. Users who'd already registered don't get the warning lines. (Two in this case.)

    Warning: Cannot modify header information - headers already sent by (output started at /home/name/public_html/wp-admin/includes/dashboard.php:1789) in /home/name/public_html/wp-includes/functions.php on line 784

    Every line of code in wp-admin/includes/dashboard.php is followed by a blank line.

    Should every blank line be deleted?

    Thought I'd ask for another opinion before we just go ahead and do this.

  11. spotlightingadmin
    Member
    Posted 4 years ago #

    Every line of code in wp-admin/includes/dashboard.php is followed by a blank line.

    Should every blank line be deleted?

    P.S. Correction: appears with old and new users, but goes away after you open any other WP admin page after logging in.

    Here's what appears;

    Warning: Cannot modify header information - headers already sent by (output started at /home/name/public_html/wp-admin/includes/dashboard.php:1789) in /home/name/public_html/wp-includes/functions.php on line 784

  12. laudes
    Member
    Posted 4 years ago #

    Hi Everyone,

    Though none of the above & other solutions in the forums solved my issues.

    Out of frustration I copied all the code then pasted into sticky notes (linux)(Notepad Windows). I then re-copied the same code and pasted it back ... SOLVED MY PROBLEMS !!

  13. laudes
    Member
    Posted 4 years ago #

    Ignore my previous post,

    the same issue appeared again, I then pasted ob_start(); at the TOP of my functions.php file (Was the file generating the error messages)

  14. mediabros
    Member
    Posted 4 years ago #

    Just had the same issue after I added a new function to functions.php in my theme folder. So searched and tryed to get rid of all the invisible spaces. Didn't work, so i searched further and everyone was keep telling me, remove te spaces. And again i removed them all... I thought, cause the third time, I cutted all the code out of the functions.php except for the function which the errorwarning came up with. And there, yes, a freaky ultra hidden space. :)

  15. mediabros
    Member
    Posted 4 years ago #

    And just like you laudes, the issue appeared again...

  16. Samrat Khan
    Member
    Posted 4 years ago #

    I have found in wordpress.org and also 100 blogs and forums(may be). Every where are talking about white spaces. But, I have checked whole files. like
    wp-settings.php
    wp-admin.php
    wp-login.php
    query.php
    functions.php etc etc.. But I didnt solved this problem.

    It's giving me the problem yet. I cant login to wp-admin. Help me about it.

    I almost have finished my blog in localhost. Suddenly, I have faced this problem. I am totally frustrated.

    Please help me.

  17. The "Cannot modify header information" error always refers to a specific line and file. It's just a matter of interpreting the error. In the case of the original poster in this thread, the error was on line 9 of functions.php . See this for more info:

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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.