Title: Warning: Cannot modify header information
Last modified: August 20, 2016

---

# Warning: Cannot modify header information

 *  Resolved [cableghost](https://wordpress.org/support/users/cableghost/)
 * (@cableghost)
 * [14 years, 12 months ago](https://wordpress.org/support/topic/warning-cannot-modify-header-information-66/)
 * Okay, so I know there’s a ton of content and solutions out there, which I have
   spent a fair amount of time investigating. However, I have yet to find a solution.
 * Though the following error is revealed, the action I was looking to take place
   executes fine and there is nothing ‘visually’ wrong with the site.
 * Suggestions?
 * `Warning: Cannot modify header information - headers already sent by (output 
   started at /home/xxxxxx/public_html/xxxxxx/wp-content/themes/fiono/functions.
   php:366) in /home/xxxxxx/public_html/xxxxxx/wp-includes/pluggable.php on line
   897`
 * Line 897: `header("Location: $location", true, $status);`
 * I have checked and rechecked numerous php files and they do not seem to have 
   any white space problems. If this is truly a header issue, I’m miffed, as this
   error just occurred without any modifications to the files identified, or any
   of the theme files.
 * I also receive a similar error for line 99 of theme-editor.php
 * Thanks, Scott

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

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [14 years, 12 months ago](https://wordpress.org/support/topic/warning-cannot-modify-header-information-66/#post-2091454)
 * `output started at /home/xxxxxx/public_html/xxxxxx/wp-content/themes/fiono/functions.
   php:366`
 * Try looking in the theme’s functions.php file.
 *  Thread Starter [cableghost](https://wordpress.org/support/users/cableghost/)
 * (@cableghost)
 * [14 years, 12 months ago](https://wordpress.org/support/topic/warning-cannot-modify-header-information-66/#post-2091456)
 * I have opened it numerous times…what exactly should I be looking for?
 * functions.php: [http://pastebin.com/zWTY2XhB](http://pastebin.com/zWTY2XhB)
 * I did add the last php in that file, but removing it does not make a difference,
   so the issue is elsewhere.
 * -Scott
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [14 years, 12 months ago](https://wordpress.org/support/topic/warning-cannot-modify-header-information-66/#post-2091459)
 * Look at line 366
 *  Thread Starter [cableghost](https://wordpress.org/support/users/cableghost/)
 * (@cableghost)
 * [14 years, 12 months ago](https://wordpress.org/support/topic/warning-cannot-modify-header-information-66/#post-2091462)
 * Pardon my ignorance…do I not need the <?php?
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [14 years, 12 months ago](https://wordpress.org/support/topic/warning-cannot-modify-header-information-66/#post-2091465)
 * That depends if it’s preceded by a closing `?>`
 *  Thread Starter [cableghost](https://wordpress.org/support/users/cableghost/)
 * (@cableghost)
 * [14 years, 12 months ago](https://wordpress.org/support/topic/warning-cannot-modify-header-information-66/#post-2091473)
 * I decided to remove the php statement, and now I get the same error for line 
   99 of theme.editor.php
 * [http://pastebin.com/M32qRABX](http://pastebin.com/M32qRABX)
 * I see that line 99 has something to do with headers
 * `header("Location: $location");`
 * However, I am unable to diagnosis the actual issue.
 * -Scott
 *  Thread Starter [cableghost](https://wordpress.org/support/users/cableghost/)
 * (@cableghost)
 * [14 years, 12 months ago](https://wordpress.org/support/topic/warning-cannot-modify-header-information-66/#post-2091487)
 * Update: a browser restart and the issue appears to be gone. I will mark this 
   thread resolved in a few days if there’s no relapse.
 * Thanks [@esmi](https://wordpress.org/support/users/esmi/) for the input.

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

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

## Tags

 * [header](https://wordpress.org/support/topic-tag/header/)
 * [headers](https://wordpress.org/support/topic-tag/headers/)
 * [warning](https://wordpress.org/support/topic-tag/warning/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 7 replies
 * 2 participants
 * Last reply from: [cableghost](https://wordpress.org/support/users/cableghost/)
 * Last activity: [14 years, 12 months ago](https://wordpress.org/support/topic/warning-cannot-modify-header-information-66/#post-2091487)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
