If you can’t catch error in PHP script but something doesn’t work – add this to the beginning of your script:
ini_set('display_errors',1); error_reporting(E_ALL);
this will allow you to see all errors.
My main background for a recent years is MySQL DEV/DBA engineer but I’m also participating in wider range of tasks which could be likely called as DataOps/DevOps tasks. You can see my online CV here: http://catyellow.net