Title: Error message when posting
Last modified: August 19, 2016

---

# Error message when posting

 *  [HorrorUK](https://wordpress.org/support/users/horroruk/)
 * (@horroruk)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/error-message-when-posting-2-2/)
 * I’m getting an error when creating or updating a post.
 * `Warning: Cannot modify header information - headers already sent by (output 
   started at /var/www/vhosts/moonworks.tv/httpdocs/wp-content/themes/moonworkstv/
   functions.php:1) in /var/www/vhosts/moonworks.tv/httpdocs/wp-includes/pluggable.
   php on line 890`
 * It still happens even if I have a completly blank functions.php file, but it 
   won’t happen if I delete the functions.php file.
 * The problem I have, is that I need to have some code in there, so I can’t just
   not include it.
 * It was all working fine and then just started up and, from what I can recall,
   for no reason. I hadn’t just added a new plugin or anything.
 * It also happens when activating/deactivating a plugin and with all plugins deactivated.
 * Thanks

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

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/error-message-when-posting-2-2/#post-1665857)
 * [Solving “headers already sent” warnings](http://codex.wordpress.org/FAQ_Troubleshooting#How_do_I_solve_the_Headers_already_sent_warning_problem.3F)
 *  Thread Starter [HorrorUK](https://wordpress.org/support/users/horroruk/)
 * (@horroruk)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/error-message-when-posting-2-2/#post-1665934)
 * Thanks for the link.
 * I have looked at these two lines countless times, but cannot see the difference
   in the two bits of code :o/
 * If the error message states:`Warning: Cannot modify header information - headers
   already sent by (output started at /path/blog/wp-config.php:34) in /path/blog/
   wp-login.php on line 42`, then the problem is at line #34 of wp-config.php, not
   line #42 of wp-login.php. In this scenario, line #42 of wp-login.php is the victim.
   It is being affected by the excess whitespace at line #34 of wp-config.php.
 * If the error message states: `Warning: Cannot modify header information - headers
   already sent by (output started at /path/wp-admin/admin-header.php:8) in /path/
   wp-admin/post.php on line 569`, then the problem is at line #8 of admin-header.
   php, not line #569 of post.php. In this scenario, line #569 of post.php is the
   victim. It is being affected by the excess whitespace at line #8 of admin-header.
   php.

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

The topic ‘Error message when posting’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [HorrorUK](https://wordpress.org/support/users/horroruk/)
 * Last activity: [15 years, 9 months ago](https://wordpress.org/support/topic/error-message-when-posting-2-2/#post-1665934)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
