• 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)
  • 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.