Try using:
ini_set('display_errors',1);
If that doesn't work I'll need a url to view the page and FTP access to debug myself.
I'll probably add a die statement to the top of the page and then remove the code below and then move it down the page and add back the code until I can narrow down the line of code causing the problem. At that point it should become easier to figure out what is wrong with that line and get it fixed.