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

    2 answers 2

    It is impossible to disable the module directly via ftp. You can download some script that will delete the module.

    Managing error output through htaccess is not enough. Because The bitrix in the main module overrides error output (there is a setting /bitrix/admin/settings.php?lang=ru&mid=main&mid_menu=1 ).

      You can disable errors in the .htaccess file or in the database in the b_option table