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

---

# Cannot modify header information

 *  [baszer](https://wordpress.org/support/users/baszer/)
 * (@baszer)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/cannot-modify-header-information-49/)
 * I just activated a new theme and I got the following warning:
 * > Warning: Cannot modify header information – headers already sent by (output
   > started at /var/www/vhosts/despekbraander.nl/httpdocs/test/wp-content/themes/
   > ruinerwold/functions/theme-options.php:317) in /var/www/vhosts/despekbraander.
   > nl/httpdocs/test/wp-includes/functions.php on line 862
 * what is going wrong?

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

 *  [Rev. Voodoo](https://wordpress.org/support/users/rvoodoo/)
 * (@rvoodoo)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/cannot-modify-header-information-49/#post-2401832)
 * you have some sort of issue on line 317 of
    themes/ruinerwold/functions/theme-
   options.php
 * Often, the cause is white space between, before or after php tags
 *  Thread Starter [baszer](https://wordpress.org/support/users/baszer/)
 * (@baszer)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/cannot-modify-header-information-49/#post-2401834)
 * thanks for your answer!
 * Can you look at [my code](http://pastebin.com/sAd0AkqT) because there is no line
   317 :S
 *  Thread Starter [baszer](https://wordpress.org/support/users/baszer/)
 * (@baszer)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/cannot-modify-header-information-49/#post-2401837)
 * YEAH! Rev. Voodoo, I just deleted the last rows after the php tag and the error
   is gone!
 * Thanks for helping!
 *  [Rev. Voodoo](https://wordpress.org/support/users/rvoodoo/)
 * (@rvoodoo)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/cannot-modify-header-information-49/#post-2401838)
 * THere actually is in the paste, and that is the problem!
 * lines 306-317 are white space after the closing php tag
 * there should be absolutely nothing after
 *     ```
       <?php } ?>
       ```
   
 * no blank lines, not even one empty space after that >
 * And in all honesty, that last line could read
 *     ```
       <?php }
       ```
   
 * eliminating the unnecessary closing php tag, and getting rid of the whitespace
   issue in the first place

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

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

 * 4 replies
 * 2 participants
 * Last reply from: [Rev. Voodoo](https://wordpress.org/support/users/rvoodoo/)
 * Last activity: [14 years, 6 months ago](https://wordpress.org/support/topic/cannot-modify-header-information-49/#post-2401838)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
