Are we to assume that your local machine is running the same OS, Web server and version of PHP as the production server, with the same filesystem layout etc?
If it isn't, perhaps the errors are caused by one of those being different. Developing on a different OS, web server or PHP version is not recommended. Ideally use the exact same build of PHP on dev.
Your error handling code should enable errors which happen in dev and production to be recorded in a log file, and appropriate output given to the user (which in production means NOT outputting the error).
I recommend always having error_reporting(E_ALL), because even notices usually indicate a problem and must cause your script to terminate immediately to avoid later problems. Your error handler should generate a stack trace, log it somewhere and exit cleanly.
Mark