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.

Leave a Reply

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

  1. 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.

    Cheers!