Warning: Cannot modify header information - headers already sent by (output started at /home/content/82/6985782/html/wordpress/wp-content/themes/syntax/themeoptions.php:289) in /home/content/82/6985782/html/wordpress/wp-content/themes/syntax/themeoptions.php on line 136

Thats the error i get whenever i want to submit something in the admin panel.

Here's the code for the themeoptions.php:


It all works perfectly normal on localhost, any explanations??


Do you have output buffering enabled on your local server? On your web server?

Written by Emil Vikström

whats that? this is for wordpress. Not sure what you are referring to.

Written by Daryl

local: ; output_buffering ; Default Value: Off ; Development Value: 4096 ; Production Value: 4096

Written by Daryl

as for the hosting, no idea how to find out, I'm using godaddy

Written by Daryl

Accepted Answer

It's probably output_buffering that is enabled on your local machine, but not on the remote server. (You can find out by using phpinfo).

The easy fix is to prepend your script with a output_buffering command:


Even better is finding out where the output starts and fix it there.

Written by netcoder
This page was build to provide you fast access to the question and the direct accepted answer.
The content is written by members of the stackoverflow.com community.
It is licensed under cc-wiki