As a result of the transition to php, I tried to catch an error, why the main one was not displayed. In the administrative panel included the output of all errors and got it:
[ErrorException] E_DEPRECATED Non-static method CSecurityAntiVirus::OnPageStart() should not be called statically (0) /bitrix/modules/main/classes/general/module.php:490 #0: ExecuteModuleEventEx(array) /home/bitrix/ext_www/host.svarbi.ru/bitrix/modules/main/include.php:304 #1: require_once(string) /bitrix/modules/main/include/prolog_admin_before.php:18 #2: require_once(string) /bitrix/modules/main/interface/desktop.php:2 #3: require(string) /home/bitrix/ext_www/host.svarbi.ru/bitrix/admin/index.php:2 Now I need to recover and disable error output in the main bitrix 16.5.11 module using php. I know in Wordpress can be done quite simply, but I can not find similar actions