Hackviking He killed Chuck Norris, he ruled dancing so he took up a new hobby…


Cannot modify header information – headers already sent by

Ever got this error:

Warning: Cannot modify header information - headers already sent by 
(output started at /storage/content/52/102452/hackviking.com/public_html/wp-config.php:1)
in /storage/content/52/102452/hackviking.com/public_html/wp-includes/class-wp-ajax-response.php on line 129

I Googled it a lot. Got number of posts on the problem. Almost all the posted solutions was about blank spaces and unclosed php tags (?>). I tried it all. Worker through all of my template files and got nothing. Removed the template and still had the issue. Checked for blank spaces in the wp-config.php file and still nothing worked. Then I found that the wp-config.php file was Unicode. Re-saved the file as ANSI and re-uploaded it via ftp and it was all working again.

Posted by Kristofer Källsbo

Filed under: Wordpress Leave a comment
Comments (3) Trackbacks (0)
  1. Thanks a lot, it was very helpful!

  2. for the above site, this post has worked for me.
    thank you very much for posting this!

  3. Thanks for the great tip. In my case, I left it as a unicode file but changed the line endings from windows to unix and this solved the problem.


Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

No trackbacks yet.