Use trigger_error instead of error_log for providing error messages