Cannot modify header information – headers already sent by
Ever got this error:
[plain]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[/plain]
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.
Thanks a lot, it was very helpful!
LikeLike
for the above site, this post has worked for me.
thank you very much for posting this!
LikeLike
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!
LikeLike