Title: &quot;Cannot modify header information&quot; issue
Last modified: August 30, 2016

---

# "Cannot modify header information" issue

 *  [onirisweb](https://wordpress.org/support/users/onirisweb/)
 * (@onirisweb)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/cannot-modify-header-information-issue-2/)
 * Hello,
 * I am trying to set an option page to my custom theme.
 * Since I made it, the posts don’t appear anymore in the archive page, and when
   I want to edit the permalink structure in settings > permalinks, I have this 
   kind of error appearing :
 * `Warning: Cannot modify header information - headers already sent by (output 
   started at .../wp-content/themes/oniris-theme/options/options-init.php:1) in .../
   wp-includes/pluggable.php on line 1196`
 * If I refresh the page, everything is okay.
 * Before giving all the code of my options-init.php template, is there any tip 
   to fix or to find the issue ?
 * Thanks for your help 🙂

Viewing 1 replies (of 1 total)

 *  [kjodle](https://wordpress.org/support/users/kjodle/)
 * (@kjodle)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/cannot-modify-header-information-issue-2/#post-6390760)
 * This is most often caused by errant whitespace before an opening `<?php` tag 
   or after a closing `?>` tag. I would check for that first.
 * > Before giving all the code of my options-init.php template,
 * If you must do that, be sure to use pastebin.

Viewing 1 replies (of 1 total)

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

## Tags

 * [header](https://wordpress.org/support/topic-tag/header/)
 * [options page](https://wordpress.org/support/topic-tag/options-page/)
 * [permalink](https://wordpress.org/support/topic-tag/permalink/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [kjodle](https://wordpress.org/support/users/kjodle/)
 * Last activity: [10 years, 10 months ago](https://wordpress.org/support/topic/cannot-modify-header-information-issue-2/#post-6390760)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
