[Bitrix\Main\DB\SqlQueryException] 
Mysql query error: (2006) MySQL server has gone away (400)
INSERT IGNORE INTO b_module_to_module (SORT, FROM_MODULE_ID, MESSAGE_ID, TO_MODULE_ID, 	TO_CLASS, TO_METHOD, TO_PATH, TO_METHOD_ARG, VERSION, UNIQUE_ID) VALUES (100, 'main', 'OnAfterEpilog', 'main',    'ModifyContent', 'EndBuffer', '', '', 1, 'a80e817bdcbc2b0e2892dc44d8f8b4ce')
/home/bitrix/www/bitrix/modules/main/lib/db/mysqliconnection.php:137
#0: Bitrix\Main\DB\MysqliConnection->queryInternal(string, array, NULL)
	/home/bitrix/www/bitrix/modules/main/lib/db/connection.php:330
#1: Bitrix\Main\DB\Connection->query(string, NULL)
	/home/bitrix/www/bitrix/modules/main/lib/db/connection.php:379
#2: Bitrix\Main\DB\Connection->queryExecute(string)
	/home/bitrix/www/bitrix/modules/main/lib/eventmanager.php:183
#3: Bitrix\Main\EventManager->registerEventHandlerInternal(string, string, string, string, string, integer, string, string, integer)
	/home/bitrix/www/bitrix/modules/main/lib/eventmanager.php:157
#4: Bitrix\Main\EventManager->registerEventHandlerCompatible(string, string, string, string, string, string, string, array)
	/home/bitrix/www/bitrix/modules/main/classes/general/module.php:507
#5: RegisterModuleDependences(string, string, string, string, string, string)
	/home/bitrix/www/bitrix/php_interface/include/bonus.php:327
#6: include(string)
	/home/bitrix/www/local/php_interface/init.php:893
#7: include_once(string)
	/home/bitrix/www/bitrix/modules/main/include.php:236
#8: require_once(string)
	/home/bitrix/www/bitrix/modules/main/include/prolog_before.php:14
#9: require_once(string)
	/home/bitrix/www/bitrix/modules/main/include/prolog.php:10
#10: require_once(string)
	/home/bitrix/www/bitrix/header.php:1
#11: require(string)
	/home/bitrix/www/catalog/index.php:1
#12: include_once(string)
	/home/bitrix/www/bitrix/modules/main/include/urlrewrite.php:159
#13: include_once(string)
	/home/bitrix/www/bitrix/urlrewrite.php:2