WordPress.org

Ready to get started?Download WordPress

Forums

[closed] Header error wp-includes/pluggable.php on line 876 (20 posts)

  1. sirquentin5
    Member
    Posted 1 year ago #

    I have come across a few posts that address a similar problem. But, none of the solutions seem to work for me. Here is the exact error.

    Warning: Cannot modify header information - headers already sent by (output started at /home/content/38/7834438/html/wp-content/themes/gridthemeresponsive/functions.php:1) in /home/content/38/7834438/html/wp-includes/pluggable.php on line 876

    I have deleted all plug-ins. I also can't seem to find a pluggable.php in my FTP. I'm sure someone knows whats going on...Cause I don't...

  2. shannoncx
    Member
    Posted 1 year ago #

    I have just got a very similar problem too. I was just updating my plugins and wordpress and found the following issue: Warning: Cannot modify header information - headers already sent by (output started at /hermes/waloraweb076/b170/moo.cypressridgecottages/highstreetmotorinn.com.au/wp-admin/includes/template.php:1642) in /hermes/waloraweb076/b170/moo.cypressridgecottages/highstreetmotorinn.com.au/wp-includes/pluggable.php on line 876

  3. sirquentin5
    Member
    Posted 1 year ago #

    Fixed it. I replaced the functions.php file of my theme with the original file that I downloaded again.

  4. g33kg0dd3ss
    Member
    Posted 1 year ago #

    Hi, Sirquentin! Do you know which portion of your functions.php file was causing the error? I'm getting the same error, and I'm about to start poking around in my functions.php file to see what's causing the problem.

    Edited to add: Whoops, my error was the same, but with a totally separate cause (attachment extender plugin). I disabled the plugin, since it's pretty unnecessary now anyway. Please disregard! :)

  5. luquerias
    Member
    Posted 1 year ago #

    Hi, i found a simple solution that worked for me. Simply take the wp-config.php file, open it in a text editor and click save as. It will try to save as UTF-8 file, save it as ANSI. As i said this worked for me...

  6. positiveproductivity
    Member
    Posted 1 year ago #

    this is also happening to me and I just started my website. I really need help on this.

  7. luquerias
    Member
    Posted 1 year ago #

    Didn't you try to do what i said? ake the wp-config.php file, open it in a text editor and click save as. It will try to save as UTF-8 file, save it as ANSI. This worked for me...

  8. positiveproductivity
    Member
    Posted 1 year ago #

    there are two types of ANSI_x3.110-1983 and ANSI_3.4-1968..which should I choose? this is teh first time I ahve to do this and if you can help me with a step-by-step process then it would be great. I also tried to use the text editor but when I click save changes it just gives me the message that I made no changes. By the way I'm doing this in my hostgator cpanel.

  9. luquerias
    Member
    Posted 1 year ago #

    First of all, download the file to your desktop. Then open it with a text editor, save as ANSI and upload it overwritig the file that is on the server. What operating system are you using?

  10. luquerias
    Member
    Posted 1 year ago #

    I have read that the the ANSI equivalent might be Western (Windows Latin 1) or Western (DOS Latin 1)

  11. Levi
    Member
    Posted 1 year ago #

    Changing the UTF to ANSI doesn't fix this problem. There's a plugin problem somewhere, but there's not enough information to discern what plugin is giving you the heartache here.

  12. oklamax
    Member
    Posted 1 year ago #

    Fixed!!!I had this Line 876 Warning also, You should Go to WordPress Index.php file and make sure nothing is above the Opening php tag, For some reason I had <title></title> on top of <?php like below
    ---------------------
    <title></title>
    <?php

    Instead of
    ---------------------
    <?php

    The opening php tag should be at the top of the page, I'm not sure how the Title Tag got added unless it happened using Dreamweaver or a Plugin!

    [Signature moderated]

  13. andreboekhorst
    Member
    Posted 11 months ago #

    Had the same problem too. Like oklamax said, I believe it has to do with spaces either before the <?php or after te ?>.

    I had to put a closing ?> at the end of my functions.php and made sure there weren't any spaces or line breaks.

  14. Ryan Burnette
    Member
    Posted 10 months ago #

    Same here as well. This problem arose for me when I had a functions.php with no closing PHP tag and WordPress installed in a subdirectory.

  15. micheal luthor
    Member
    Posted 10 months ago #

    I also got this error, but I solved this.

    it's because something is outputed before wp-includes/pluggable.php on line 876, so, you may changed the file in some place, when error shows up, it would tell you which file output something, you can check that file with following :

    1. is there anything before <?php, notice, if you save as UTF-8 be careful with the BOM mark, this may be the reason. so you can try save it as UTF-8 without BOM mark. XXX: do not use notepad, cause it would add that BOM mark. you can use notepad++.

    2. is there anything after ?>, maybe you can delete ?> directly.

  16. esmi
    Theme Diva & Forum Moderator
    Posted 10 months ago #

  17. wpseobuddy
    Member
    Posted 10 months ago #

    Here also same problem..

    Warning: Cannot modify header information - headers already sent by (output started at /home/freevqw9/public_html/thereviewsite.info/wp-includes/media.php:4) in /home/freevqw9/public_html/thereviewsite.info/wp-includes/pluggable.php on line 876

    Can any one he;p me please..

  18. esmi
    Theme Diva & Forum Moderator
    Posted 10 months ago #

    @wpseobuddy: As per the Forum Welcome, please post your own topic.

  19. darylmonte
    Member
    Posted 9 months ago #

    You should NOT output anything before using a header function. Even 1 space is not allowed.

  20. chrisvwlc
    Member
    Posted 9 months ago #

    Hi,

    I am experiencing the same problems and have followed all of the recommendations: I have been sure to remove any spaces before the opening <?php and after the closing ?> (btw, are all of the wp core files supposed to have a closing tag? wp-includes/pluggable.php, wp-includes/functions.php, index.php, and others didn't...)
    I have saved the files locally, opened them with TextWrangler and saved as UTF-8 without BOM, retyped the opening and closing tags, etc.
    Here is the error I keep getting. And I cannot get into wp-admin so I have started deleting plugins via ftp but that's not ideal because some may use the database...
    Cannot modify header information - headers already sent by (output started at /home/XXXX/public_html/wp-includes/functions.php:2841) in /home/XXXX/public_html/wp-includes/pluggable.php on line 876
    I don't want to confuse the topic, but I also get
    register_sidebar_widget is deprecated since version 2.8! Use wp_register_sidebar_widget() instead. in /home/cpasu0/public_html/wp-includes/functions.php on line 2841
    which I mention only because I recently updated wordpress and I would have thought the included functions would have been updated and because the error messages reference the same line in the same file??
    Is there a good source to see what should be in a wordpress install? A good way to determine which files have been corrupted? a type of version control? Thanks for any help!

Topic Closed

This topic has been closed to new replies.

About this Topic