I know the problem may be too localized and specific to my theme only, but I think, if we can explore the problem, dig it, then we might find a new solution from it.
PROBLEM
I made a custom theme from Ian Stewart's theme lessons. Everything is ok, except the warning in the admin panel:
Warning: Cannot modify header information - headers already sent by (output started at /home/nano/public_html/wp-content/themes/nanodesigns/functions.php:1) in /home/nano/public_html/wp-includes/option.php on line 568
Warning: Cannot modify header information - headers already sent by (output started at /home/nano/public_html/wp-content/themes/nanodesigns/functions.php:1) in /home/nano/public_html/wp-includes/option.php on line 569
I've read most of THESE solutions, and even the Codex Solution and tried. At least I figured out that the problem is my theme specific and it's coming from the functions.php (not from wp-includes/option.php). Because the portion of the message in parenthesis is changing page by page, somewhere pluggable.php, somewhere else.php.
- I checked and double checked the
functions.phpfile and there is no space/spaces before or after php tags. - I deactivated/reactivated the plugins and there is no change.
THEN, WHAT THE HECK IS HAPPENED?
HERE is my whole bunch of code in functions.php. Just copied and pasted, no alteration made.