Warning: Cannot modify header information - headers already sent …
Posted on February 7, 2008
Filed Under Projects, Web Sites, Wordpress |
I ran across this Warning message from my wordpress blog. Being the idiot I am I put 2 and 2 together. I just upgraded my wordpress blog, and the warning started to show up after that. It didn’t disable my blog, it just appearing when an action was taken. For instance, If someone sent a comment and clicked the submit button, the next message they saw on their screen was the warning. The comment went through ok, but my thousands of fans thought it didn’t go through. I immediately got thousands of emails (maybe it was one person, I forget!) telling me about my problem.
Well, let me help if I may. Maybe someone else will run into the same problem. When I upgraded my blog, I knew I didn’t want to touch my config.php file. BUT, and thats a big butt I must say, The new upgrade needed two more lines added to it. Well, brainiac here, just copied the sample config under my original and compared the two, then made corrections, and delete the sample crap. Guess what, There can be no spaces after the final “?>” in the config.php file. Notta, nutin, noway, zilcho. Absolutely nothing after that “?>” in the config.php file. Went in and deleted everything after the “?>” and all is fine. It’s easy if you know how!
Maybe this will help someone.
Comments
2 Responses to “Warning: Cannot modify header information - headers already sent …”
Leave a Reply
This helped me! Thanks a bunch!
I figured someone would run into the same problem.
Thanks for letting me know it helped.