I have come across a rather concerning issue with my theme that continues to crash my site whenever I enter a new post. I turned on debugging and I'm given the following errors messages:

Cannot modify header information - headers already sent by output started at /Applications/MAMP/htdocs/wp-loveday/wp-content/themes/loveday/functions.php:3

As well as

Warning: Cannot modify header information - headers already sent by (output started at /Applications/MAMP/htdocs/wp-loveday/wp-content/themes/loveday/functions.php:3) in /Applications/MAMP/htdocs/wp-loveday/wp-includes/pluggable.php on line 1171

I probably didn't need to include the localhost info, but you can never be too sure.

I'm really confused about this as it appears that the errors are coming from WordPress specific components.

I'm still pretty new to the WordPress platform, and these errors are making my life hell at the moment. I have also noticed that none of my media assets are showing up in Media Library.

Any help or advice on what the hell is happening here will be greatly appreciated!


Stu :)

1 Answer 1


Please look up before posting your questions ! There is a detailed answer available.


  • I actually found that I was declaring too many empty PHP opening blocks at the top of a couple of files.
    – stucow88
    May 7, 2016 at 2:33
  • That wont cause any issue as long as there is no white-space after <?php ?> closing tag ! Jun 25, 2016 at 5:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.