[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, 'sale', 'OnSaleOrderPaid', 'dw.deluxe',    'DwBonus', 'addBonus', '', '', 2, '476fe52fe84315f67ad9cc053c131314')
/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:152
#4: Bitrix\Main\EventManager->registerEventHandler(string, string, string, string, string)
	/home/bitrix/www/bitrix/modules/dw.deluxe/include.php:21
#5: include_once(string)
	/home/bitrix/www/bitrix/modules/main/lib/loader.php:140
#6: Bitrix\Main\Loader::includeModuleInternal(string)
	/home/bitrix/www/bitrix/modules/main/lib/loader.php:107
#7: Bitrix\Main\Loader::includeModule(string)
	/home/bitrix/www/bitrix/templates/dresscode/header.php:7
#8: include_once(string)
	/home/bitrix/www/bitrix/modules/main/include/prolog_after.php:106
#9: require(string)
	/home/bitrix/www/bitrix/modules/main/include/prolog.php:11
#10: require_once(string)
	/home/bitrix/www/bitrix/header.php:1
#11: require(string)
	/home/bitrix/www/catalog/index.php:2
#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