// These ini_set lines should be at the very top of your script
ini_set('display_errors', 'Off'); // Keep this off on live sites
ini_set('log_errors', 'On');
ini_set('error_log', __DIR__ . '/php_error.log');

add thes lines her
