it looks like you have misplaced an opening or closing php tag when adding the error reporting code which is causing other errors.
the main error is:
Warning: main(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/New_York' for '-5.0/no DST'
this is happening because the date.timezone is not set in the php.ini file on the server, this needs to be set.
it should look something like:
date.timezone = America/New_York
you may have to contact your host to have them correct the date timezone setting.