It’s probably that you are getting a PHP error but [size=2]your server setting is set for deployment (not showing errors)… you need to configure your server for development (show any possible errors/warnings/notices)…[/size]
[size=2]
[/size]
[size=2]In general the development is done locally where you can set everything for development and only when the code is stabilised (all errors fixed) the app is uploaded to the server where all the settings are set for production.[/size]