Title: Cannot modify header information
Last modified: August 19, 2016

---

# Cannot modify header information

 *  [gall0249](https://wordpress.org/support/users/gall0249/)
 * (@gall0249)
 * [16 years, 11 months ago](https://wordpress.org/support/topic/cannot-modify-header-information-27/)
 * I switched over to this theme and started getting the following error when I 
   publish a post.
 * > Warning: fsockopen() [function.fsockopen]: unable to connect to submissions.
   > ask.com:80 (Connection refused) in /home/gall0249/public_html/wpress/wp-includes/
   > class-snoopy.php on line 1142
   > Warning: Cannot modify header information – headers already sent by (output
   > started at /home/gall0249/public_html/wpress/wp-includes/class-snoopy.php:1142)
   > in /home/gall0249/public_html/wpress/wp-includes/pluggable.php on line 850

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

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [16 years, 11 months ago](https://wordpress.org/support/topic/cannot-modify-header-information-27/#post-1142516)
 * [http://codex.wordpress.org/Answers-Trouble_Shooting#Headers_already_sent](http://codex.wordpress.org/Answers-Trouble_Shooting#Headers_already_sent)
   
   [http://codex.wordpress.org/FAQ_Troubleshooting#How_do_I_solve_the_Headers_already_sent_warning_problem.3F](http://codex.wordpress.org/FAQ_Troubleshooting#How_do_I_solve_the_Headers_already_sent_warning_problem.3F)
 *  [motta](https://wordpress.org/support/users/motta/)
 * (@motta)
 * [16 years, 11 months ago](https://wordpress.org/support/topic/cannot-modify-header-information-27/#post-1142551)
 * I think there’s something wrong with the “header information”. Quite a lot of
   people have the same header problem, just try google “Warning: Cannot modify 
   header information – headers already sent”. I saw lots of posts dealing with 
   it. Good luck.
 *  [shane-g](https://wordpress.org/support/users/shane-g/)
 * (@shane-g)
 * [16 years, 11 months ago](https://wordpress.org/support/topic/cannot-modify-header-information-27/#post-1142562)
 * 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.
 * One 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.

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

The topic ‘Cannot modify header information’ is closed to new replies.

## Tags

 * [Cannot modify header information](https://wordpress.org/support/topic-tag/cannot-modify-header-information/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 4 participants
 * Last reply from: [shane-g](https://wordpress.org/support/users/shane-g/)
 * Last activity: [16 years, 11 months ago](https://wordpress.org/support/topic/cannot-modify-header-information-27/#post-1142562)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
