Warning: Cannot modify header information - headers already sent by (output started at example.php:1)
It looks like there is an unlimited amount of these questions and they keep coming. I agree that in most cases the answer is out there already.
I ran into the same issue myself. There was a mysterious character in the output that prevented me from setting the headers. Since it was a big application that has a lot of files, going through each one to search for it was not an option.
I believe the issue is due to a BOM or an extra space before the <?php
opening tag somewhere in one of the included files. When I open the file referred to in the error message it looks like there's nothing wrong with it.
How do I find where the issue is?