Can please remove the line: error_reporting(0);
(the first line of code)
It prevents displaying all errors on the site, even when WP_DEBUG is set to true in the config. This way it impossible to debug.
It took me several hours finding this line of code in my WordPress install.