When I am trying to solve php issues, I add this to the very top of a php page:
<?php
error_reporting(E_ALL);
ini_set('display_errors','on');
?>
It helps pin down what is causing a problem, although I am not sure if that will help you in this instance. But take care to remove it after problem solved.