WordPress Error – Headers Already Sent Warning Problem
- Updated On 11/12/2010
- Author : Pradeep Kumar
- Topic : WordPress
- Short URL : https://hellboundbloggers.com/?p=7535
CONNECT WITH HBB ON SOCIAL MEDIA
Yesterday I almost became tensed. Some tutorials on the net are really lame! 😛 I trusted a site and applied that tutorial directly on my blog, and the result became sh*t. I highly recommend you to try tutorials on a demo blog rather than on your primary site or blog.
Yesterday I came across this unique WordPress error titled “Cannot modify header information – headers already sent by …” [Without Quotes]
Though, this tutorial is 99.9% perfect, I recommend you to backup all your theme files before implementing this tutorial. Happy Blogging!
I’ll tell you what mistake I did and how to resolve that.. 8)
You get a warning message on your browser that says:
Warning: Cannot modify header information – headers already sent by (output started at
The reason is simply simple. It is usually because there are spaces, new lines, or other garbage before an opening < ?php tag or after a closing ?> tag, most probably in wp-config.php. It may also occur in other files too, so please check the error message. Many editors are adding additional blanks (spaces) and empty lines at the end of a file when you edit it.
The best solution I would say is to replace the corrupted file with the file you have in your backup. You can also try the following alternative steps!
#1 – Download the file mentioned in the error message.
#2 – Now open that file using a really good Text Editor. It should be a plain text editor. I highly recommend Notepad++ or TextWrangler.
P.S. Don’t risk. Avoid Notepad, WordPad and even MS Word.
#3 – Now check that the very first characters are < ?php and the very last characters are ?>
You should save your file either as ANSI/ISO-8859 or as Unicode without BOM. Don’t ever save in normal format.
Have you ever faced this problem? Do you any other solution for solving this?
Want to discuss your queries and interact with experts? You can connect with HellBound Bloggers (HBB) Facebook group for free!
Join HellBound Bloggers (HBB) and get Instant Updates. We'll also notify you with Great Deals, Discounts and other Interesting Tips. We won't SPAM or SHARE your Email Address with anyone.
YOU CAN ALSO SEARCH FOR YOUR DESIRED TOPICS:
Thank you for reading! We welcome and appreciate your comments, but at the same time, make sure you are adding something valuable to this article. If you have any serious queries, suggestions or anything related to this article, feel free to share them, we really appreciate that.
But, if your blog comments are a random "Thank you", "Useful Post", or anything that doesn't actually upscale the article, then we'll be removing them and it won't be appeared below. Thanks for understanding and thanks for connecting with us. If you want to give us any feedback or report any errors, you can kindly contact us and we'll revert back soon.
- Facebook Comments
21 CommentsFacebook Comments