First of all try to
error_reporting(E_ALL);
then you see all errors which may cause your problem.