Or, start off your code (very top of the file) with ob_start();
This starts output buffering and can often reduce these errors. The best recommendation is to follow the previous advice and clean up the code, but I wanted to throw in this little tip. If you use it, it's a best practice to finish up the file with ob_end_flush(); to clear the buffer.
-- This message may have been cut off and the rest will only be shown to members. To become a member, click here --