At the beginning of the php document add the following lines of code:
Code:
error_reporting(E_ALL);
ini_set('display_errors', '1');
This will forcibly show any errors. When you fix all the problems remove those lines of code, as it can show too much info to wannabe-hackers.