I've created quite a few custom websites but I've come across this problem with various addons/plugins or just general code. How can I avoid the "headers already sent" error?
I've tried to put the code as far up in the header.php file as possible but have never managed to get around the error. Is there an easier way to avoid it?
My latest bit of code that's getting the error is using the html2pdf script.
It always happens in the header.php file, I've removed all extra spaces etc and made sure it's unicode-8 etc but just cannot get rid of the problem in the header.php file.