Ask me a question at the Wordpress Ninja Forum
How To Fix That Nasty Error About Headers Not Sent (yuck)
Posted on August 4, 2008
Filed Under Wordpress Solutions |
You know the one - maybe you have seen it, maybe you haven’t. If you haven’t yet, then i hope you never do….It looks something similar to this:
Warning: Cannot modify header information - headers already sent by (output started at http://………….)
Nasty huh? That’s all you get on an otherwise blank page. Well, luckily it’s a really simple fix. PHP sometimes has a hissy fit at whitespace. What does that mean, you ask? Well, chances are you were editing some code and accidentally (whether you knew it or not) left a ’space’ or ‘carriage return’ where it shouldn’t be - namely after the final PHP tag i.e. ?> at the very end of the file. I have had this several times after editing the wp-config.php file in Dreamweaver.
Make sure that there are no spaces or carriage returns after that final tag - re-upload the file in question and it’s back to normal - no more ugly errors.
Comments
Leave a Reply
Related Posts:
Hi, i am the Wordpress Ninja. My name is Paul and my goal is to be able to answer everyone's Wordpress questions (for free) and post the best solutions on this blog. So for all questions and issues please post in the