Title: Headers already sent error
Last modified: August 19, 2016

---

# Headers already sent error

 *  Resolved [hkcharlie](https://wordpress.org/support/users/hkcharlie/)
 * (@hkcharlie)
 * [16 years, 3 months ago](https://wordpress.org/support/topic/headers-already-sent-error/)
 * I’m getting an error on every page except my home (blog) page.
    This is: Warning:
   Cannot modify header information – headers already sent by (output started at/
   home/backinfi/public_html/wp-content/themes/backin5mins_2010/header.php:2) in/
   home/backinfi/public_html/wp-includes/pluggable.php on line 868
 * I have looked for spaces in the header.php
    I have no idea what it means by header.
   php**:2**
 * I looked for spaces in the wp-config.php, there aren’t any.
 * If I log in as admin, I do not get the error and every page views perfectly.
 * Can anyone please help?

Viewing 12 replies - 1 through 12 (of 12 total)

 *  [Shane G.](https://wordpress.org/support/users/shane-g-1/)
 * (@shane-g-1)
 * [16 years, 3 months ago](https://wordpress.org/support/topic/headers-already-sent-error/#post-1403287)
 * 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.
 *  Thread Starter [hkcharlie](https://wordpress.org/support/users/hkcharlie/)
 * (@hkcharlie)
 * [16 years, 3 months ago](https://wordpress.org/support/topic/headers-already-sent-error/#post-1403478)
 * Hi Shane,
    thanks for the reply, your explanation of this “fix” is very clear
   and precise, however it does not work for me in this instance. Any other ideas
   please?
 *  [Shane G.](https://wordpress.org/support/users/shane-g-1/)
 * (@shane-g-1)
 * [16 years, 3 months ago](https://wordpress.org/support/topic/headers-already-sent-error/#post-1403479)
 * Hi,
 * Please try to upgrade your wordpress to the latest version 2.9.2. If it is already
   upgraded then download fresh copy of the wordpress and reinstall wp-admin and
   wp-includes folders with all files and folders.
 * Thanks,
 * Shane G.
 *  [sethmarie](https://wordpress.org/support/users/sethmarie/)
 * (@sethmarie)
 * [16 years, 3 months ago](https://wordpress.org/support/topic/headers-already-sent-error/#post-1403485)
 * Im having the same problem except I cant even log into my account. I can get 
   to my log in page, but not to the admin portion…
    Warning: Cannot modify header
   information – headers already sent by (output started at /home/thrashw1/public_html/
   public/wp-content/plugins/wp-google-buzz/wp-google-buzz.php:1631) in /home/thrashw1/
   public_html/public/wp-login.php on line 314
 *  Thread Starter [hkcharlie](https://wordpress.org/support/users/hkcharlie/)
 * (@hkcharlie)
 * [16 years, 3 months ago](https://wordpress.org/support/topic/headers-already-sent-error/#post-1403490)
 * Hi Shane, I was already on version 2.9.2, but I updated the files with new ones
   downloaded from the wordpress website as you suggested.
 * Still the same error!
 * I saw another solution that included (as well as what you have said) saying:
   “
   Also check the encoding of the file. If the file is encoded as UTF-8 with BOM,
   the BOM is seen as a character which starts the output.”
 * How do you check the encoding of the file?
    And how do you change it if you need
   to?
 *  Thread Starter [hkcharlie](https://wordpress.org/support/users/hkcharlie/)
 * (@hkcharlie)
 * [16 years, 3 months ago](https://wordpress.org/support/topic/headers-already-sent-error/#post-1403522)
 * Anyone? I have looked and I can’t see how to do it. Having said that, I’m guessing
   if I replaced all the files with a new wordpress download, this solution shouldn’t
   be relevant anyway.
 *  [Shane G.](https://wordpress.org/support/users/shane-g-1/)
 * (@shane-g-1)
 * [16 years, 3 months ago](https://wordpress.org/support/topic/headers-already-sent-error/#post-1403537)
 * Hi,
 * It is the issue in wp-google-buzz plugin. Please download a fresh copy of it 
   and upload it again.
 * Thanks,
 * Shane G.
 *  [edda197](https://wordpress.org/support/users/edda197/)
 * (@edda197)
 * [16 years, 3 months ago](https://wordpress.org/support/topic/headers-already-sent-error/#post-1403548)
 * sethmarie – i have the same problem with this msg when i got on my login page(
   i can’t even log in)
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home1/ponidive/public_html/eddangel/wp-content/themes/cooking-blog-theme/
   functions.php:11) in /home1/ponidive/public_html/eddangel/wp-includes/pluggable.
   php on line 865
 * did u find a solution?
 * thanks
 * edda
 *  [henkholland](https://wordpress.org/support/users/henkholland/)
 * (@henkholland)
 * [16 years, 3 months ago](https://wordpress.org/support/topic/headers-already-sent-error/#post-1403549)
 * Hi edda,
 * Check the file functions.php in your themes/cooking-blog-theme/ folder.
    It should
   start on the first line with `<?php` and end a the very last line with `?>` and
   NO empty lines after that.
 *  Thread Starter [hkcharlie](https://wordpress.org/support/users/hkcharlie/)
 * (@hkcharlie)
 * [16 years, 3 months ago](https://wordpress.org/support/topic/headers-already-sent-error/#post-1403551)
 * Shane – I don’t have that plugin installed !
 *  [alism](https://wordpress.org/support/users/alism/)
 * (@alism)
 * [16 years, 3 months ago](https://wordpress.org/support/topic/headers-already-sent-error/#post-1403552)
 * hkcharlie,
 * “output started at /home/backinfi/public_html/wp-content/themes/backin5mins_2010/
   header.php:2”
 * Have another look at the header.php file. The “:2” is referring to line 2 of 
   that file. Which suggests you’ve perhaps got a space or something on line 1.
 * As henkholland says, make sure the very first line starts with a `<?php` and 
   nothing before that. Put your cursor just before the first `<` and hit backspace
   a few times just to make sure, then save it again. Otherwise, restore the original
   header.php that came with the theme.
 *  Thread Starter [hkcharlie](https://wordpress.org/support/users/hkcharlie/)
 * (@hkcharlie)
 * [16 years, 3 months ago](https://wordpress.org/support/topic/headers-already-sent-error/#post-1403559)
 * After a lengthy investigation of check and check again, this turned out to be
   a conflict with a user permissions plugin
    [http://urbangiraffe.com/plugins/user-permissions/](http://urbangiraffe.com/plugins/user-permissions/)

Viewing 12 replies - 1 through 12 (of 12 total)

The topic ‘Headers already sent error’ is closed to new replies.

## Tags

 * [BOM](https://wordpress.org/support/topic-tag/bom/)
 * [cannot](https://wordpress.org/support/topic-tag/cannot/)
 * [header](https://wordpress.org/support/topic-tag/header/)
 * [Modify](https://wordpress.org/support/topic-tag/modify/)
 * [utf-8](https://wordpress.org/support/topic-tag/utf-8/)
 * [utf8](https://wordpress.org/support/topic-tag/utf8/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 12 replies
 * 6 participants
 * Last reply from: [hkcharlie](https://wordpress.org/support/users/hkcharlie/)
 * Last activity: [16 years, 3 months ago](https://wordpress.org/support/topic/headers-already-sent-error/#post-1403559)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
