surfeuse
Member
Posted 2 years ago #
I get this problem on this page:
http://www.synergypilates.com/?cat=13
Warning: Cannot modify header information - headers already sent by (output started at ...\wp-content\themes\berlin\header.php:50) in ...\wp-includes\pluggable.php on line 886
It says the problem is in header.php and I have searched everywhere and tried all sorts of fixes but it is still happening. What I don't understand is that if the problem is in the header file as per:
http://codex.wordpress.org/FAQ_Troubleshooting#How_do_I_solve_the_Headers_already_sent_warning_problem.3F
Then why does this only occur on one of my pages when all the other one has the same header....
PLeeeeaaaaaase help
That page is a category page, not a "page" page that uses page.php. Look in your category.php template file. Compare that file with the same file from a fresh download of your theme, or if the them has been modified, you need to look at the php in that file.
surfeuse
Member
Posted 2 years ago #
Hi, thanks, this theme doesn't use a category page it uses archives and I have looked everywhere there too. My question is why does it say the problem is in header. If I delete the offending line in header it just moves the error to the next line...
There is no category.php in your theme? You don't delete the "offending line"; you delete whitespace and invisible characters. See the link you posted above. If you edited core WordPress files, replace them with fresh copies.
surfeuse
Member
Posted 2 years ago #
I know that it sounds like I don't know what I'm doing and I don't totally but kind of... I just deleted the "offending line" since I couldn't find the white space on it and somehow that makes the error move down to the next line which seems weird to me... I mean if there was white space on that line it should not be an issue anymore after the line is gone.
I can't find the white space - believe me I have looked everywhere, just wondering if this is somehow some other issue.
never mind though thanks for trying to help I will solve it somehow
You have to backspace all the way to the top of the file to be sure all invisible characters are gone, and check the bottom of the file, too. Check your functions.php file in your theme. And wp-config.php. Do a manual upgrade of 3.0.1 to replace all WP files.
surfeuse
Member
Posted 2 years ago #
OK - this is just one of these situations where I have to get this done asap because things are live. I will do what you are suggesting. thanks
quick questions though. Because the error message points to this certain line in header.php we still can't be sure that is where the error is? the header is obviously used on all pages but this is the only one with an issue.
the header is obviously used on all pages but this is the only one with an issue.
These can be tough to track down. That's why I think it's a template page like category.php or archive.php. Look in your page editor and see which page template is selected for that page. Check around the php title function, and the top and bottom of the page. Check header.php, too.
Maybe deactivate all ypur plugins for a minute and see if that makes a difference.
Looks like you got it fixed....