Sometimes, when looking through your Magento log files, you might stumble upon the “Cannot send headers; headers already sent in …” message. One possible reason for that could be a space or a newline behind a closing PHP tag (?>). To solve the problem, just open the file being mentioned in the log file and remove the space or newline.
Solving “Cannot send headers; headers already sent” problem
Need help implementing this solution, or still looking for a fix to your Magento problem? Get in touch and I will be happy to help with your project.