WordPress.org

Ready to get started?Download WordPress

Forums

Cannot modify header information - headers already sent (24 posts)

  1. derekdavis
    Member
    Posted 5 years ago #

    When I go to my admin screen (http://derekdavis.org/wp-admin), I get the following warning:

    Warning: Cannot modify header information - headers already sent by (output started at /home/11749/domains/derekdavis.org/html/wp-content/themes/cardeo-standard/functions.php:11) in /home/11749/domains/derekdavis.org/html/wp-includes/pluggable.php on line 850

    Please help!

  2. asfodel
    Member
    Posted 5 years ago #

    The problem is likely caused by a plugin (since pluggable.php is involved). Try deactivating them one at a time.

  3. stvwlf
    Member
    Posted 5 years ago #

    Hi

    The problem here is that you have gotten some text or whitespace (spaces, newline) before the opening PHP tag or after the closing PHP tag in your theme's functions.php file. There can't be a single character before or after those tags.

  4. Shane G
    Member
    Posted 5 years ago #

    Hi,

    You can refer this case study:

    [spam link moderated]

  5. whooami
    Member
    Posted 5 years ago #

    or you can just read the codex article, which incidentally, reads just the same way.

  6. derekdavis
    Member
    Posted 5 years ago #

    Yeah, it was a mix of everything people suggested.

    I deleted all of the plugins except akismet and deleted the following from the functions.php file included in the theme I was using:

    <?php // for sidebar.php if needed ?>
    <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : endif;
    ?>

    Thanks for all of your help!

  7. nuevolutionWD
    Member
    Posted 5 years ago #

    I am getting the same problem: Here is what I've done so far

    • I've removed all the blank spaces from the wp-config.php file
    • I've removed the blank spaces from the class.wp-scripts.php I also noticed that there was a ?>[closing argument] missing at the bottom of this file
    • I've removed all the blank spaces from pluggable.php and nothing seems to work
    • I also removed all the blank spaces from the wp-blog-header.php

    Can someone please guide me in the right direction? this is the error I am getting: Warning: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/phattkicks.com/httpdocs/wp-includes/class.wp-scripts.php:54) in /var/www/vhosts/phattkicks.com/httpdocs/wp-includes/pluggable.php on line 711
    Any help would be appreciated! Thank you for your time...

  8. whooami
    Member
    Posted 5 years ago #

    The problem is likely caused by a plugin (since pluggable.php is involved). Try deactivating them one at a time.

  9. nuevolutionWD
    Member
    Posted 5 years ago #

    Ok, let me give more information:
    This is a fresh install. The only Plugin there is the akismet. I deleted that Plugin to see if that's the issue but that didn't solve anything. I already uploaded the files again and nothing seems to work.
    Does anyone know how I can get an Older copy of Word-Press? one that functions correctly?

  10. whooami
    Member
    Posted 5 years ago #

    and where do you see this error, nuevolutionWD? what page?

    I dont see any error on the front page of your blog, hence the q.

  11. ApnaySMS
    Member
    Posted 5 years ago #

    the only easiest way is to renew your function.php file, just download a new wordpress and replace your function.php file with yours
    i had the same problem at http://decentsms.com but now it is solved

  12. nuevolutionWD
    Member
    Posted 5 years ago #

    Whooami,
    It's in the Admin Side. and yes the front of the web site is OK, Whne I Log In, I see the header message (howdy Admin) and right under that I see the Message, so I don't see the tabs.

  13. Inspired2Write
    Member
    Posted 5 years ago #

    Hi NuevolutionWD,

    Just in case, you might want to check out this forum:
    http://wordpress.org/support/topic/210013?replies=8

    You may want to check to make sure your site was not hit with a malicious script, as mentioned in that forum thread. I'm in the process of cleaning up my 2.7.1 site, which was hit with the same script mentioned in the above thread. The script causes a "headers already sent" error, which was from iframe urls placed into the site header, and footer, and in my case also prevented me from logging into my WP Admin dashboard.

    Check "view page source" from your site and see if there are any "iframe urls" listed above your header codes. (Just one way to look for it to begin with). I'm hoping it's not what has happened to you, because it's a nightmare to clean up! :(

  14. nuevolutionWD
    Member
    Posted 5 years ago #

    Ok, this is the thing... It's a fresh installation. Would it be possible that there are issues with the 2.7.1 installation?
    Or can there be an issue with the package?
    I'm running php5 it does install correctly just for that error that is annoying, Ican't see nothing below the howdy Admin, but when I check the source code it shows pages, comments, and other items... can there be an issue with the footer?

  15. Kriscinda
    Member
    Posted 5 years ago #

    ApnaySMS
    I am having this problem cam I still have my origanl wp I download. Can you tell me how to replace your function.php file?

    Please Kris

  16. phenri
    Member
    Posted 4 years ago #

    Im only save the wp-config.php using notepad in coded ANSI diferent them normaly utf8

    and its Work's

  17. Flocktome
    Member
    Posted 4 years ago #

    Old topic, but, this will help others I am sure.

    As stvwlf said,

    Chek in your site template folder. if you have a "functions.php" file in there, make sure there are no whitespaces, especially after the final closing ?> tag, and remove any line breaks (ie, make sure ?> is the final line of your file.

    I had EXACTLY this issue, where pluggable reads my template to see if there are any extra functions to be added, and breaks via pluggable.

    To test, simply rename your "functions.php" to "-functions.php" and you'll that this could be the problem.

  18. CaramelCHF
    Member
    Posted 4 years ago #

    Thank U Archetory

    I've tested all the suggestion on my site, but there's only rename as "-functions.php" work~ it's weird, but works!

  19. PinupParkingLot
    Member
    Posted 4 years ago #

    I fixed it on my site. You just must make sure you open up the correct line to edit.
    Example:
    Warning: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/phattkicks.com/httpdocs/wp-includes/class.wp-scripts.php:54) in /var/www/vhosts/phattkicks.com/httpdocs/wp-includes/pluggable.php on line 711

    The error of the ?> space is on line 54, not 711 where it sounds like it is.

  20. syaheedabdullah
    Member
    Posted 4 years ago #

    7.

    Help me..I've read some messages but nothing can help me. some asked me to remove plugins but i can't even see my homepage.What should I do?

    this is what I got. please I beg your help.

    Warning: Cannot modify header information - headers already sent by (output started at /home/coloncl3/public_html/budakhitam.com/wp-content/plugins/google-news-widget/google-news-widget.php:1) in /home/coloncl3/public_html/budakhitam.com/wp-includes/pluggable.php on line 868

  21. Shane G.
    Member
    Posted 4 years ago #

    Hi,

    It is usually due to spaces, new lines, or other garbage at opening/closing PHP file <?php tag or after a closing ?> tag in wp-config.php. It can be other file too so need to check error message as it may list file name where the error occurred.

    You can either upload error file from the backup or edit erroneous file. To edit the file one need to check below mentioned points:

    1. Download the file mentioned in the error message.

    2. Open that file in a plain text editor

    3. Check that the very first characters are <?php

    4. Check that the very last characters are ?>

    5. Place the cursor between the ? and >

    6. Now press the DELETE key on your computer and keep that key pressed for at least 15 seconds.

    7. Now type > and

    8. Save without pressing any other key at all.

    That’s it!

    Thanks,

    Shane G.

  22. MorganL
    Member
    Posted 4 years ago #

    6. Now press the DELETE key on your computer and keep that key pressed for at least 15 seconds.

    7. Now type > and

    8. Save without pressing any other key at all.

    What his saying is to make sure that there arn't any non-pritable charachters at the end of the file.

  23. fyco3
    Member
    Posted 4 years ago #

    Tahnks phenry, I edit and save the wp-config.php using notepad in coded ANSI diferent them normaly utf8

    and its Work's

    GREAT

  24. coachkim
    Member
    Posted 4 years ago #

    I am having the same error message - something about not being able to modify header information - specifically:

    Warning: Cannot modify header information - headers already sent by (output started at /home/content/04/5805304/html/wp-content/plugins/affiliate-link1/affli-config.php:133) in /home/content/04/5805304/html/wp-content/plugins/wp-super-cache/wp-cache-phase2.php on line 71

    All of the previous advice sounds great - the only problem for me is that I cannot even log in in order to make any adjustments. Can anyone get me behind door #1??? Thank you in advance as this is VERY frustrating.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.