Cannot modify header information – headers already sent
Warning: Cannot modify header information – headers already sent by (output started at /…/wp-config.php:1) in /…/wp-includes/pluggable.php on line 890
When I first saw this error message on my wordpress site I just got stumbled. I had no idea why it happened. I searched google and found lots of wordpress bloggers got this kind of problem and it is actually no big problem to fix! If you would like to know how I fixed it then please keep reading!
According to the error message posted above, I can see the wp-config.php has problem. So what is and where is the problem actually? It’s because the BOM that’s conflicted with UFT-8. When I edited the wp-config.php file,it created some BOM codes in the file though we cannot see those codes in the file. So remedy for this problem is removing BOM from the file.
I used the notepadd++ editor to edit the file again and then uploaded it to replace the one on my webhosting server.And the problem just got fixed that way! It’s said that notepad++ will easily clear the BOM codes in website file. You just need to simply copy your code to notepad++ and then save it. Don’t to change any code in the file. Just copy and save and then replace the file on hosting server! Isn’t it easy to fx?