I'd add a die statement and move it down the page line by line to isolate the line causing the problem. Then if it comes from one of your include files, do the same there until you find the line of code. Once you find the line it should be easy to see what to remove.
Start on the top and move it down. Eventually it will say:
and then you know the zero is written above that line.