[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, 'iblock', 'OnAfterIBlockElementUpdate', 'dw.deluxe',    'DwProductEvents', 'productAfterSave', '', '', 2, 'd4292571013b38b87fe1b6444456768d')
/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:26
#5: include_once(string)
	/home/bitrix/www/bitrix/modules/main/lib/loader.php:143
#6: Bitrix\Main\Loader::includeModuleInternal(string)
	/home/bitrix/www/bitrix/modules/main/lib/loader.php:110
#7: Bitrix\Main\Loader::includeModule(string)
	/home/bitrix/www/bitrix/templates/dresscodeV2/header.php:6
#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

Fatal error: Uncaught Bitrix\Main\DB\SqlQueryException: Mysql query error: (2006) MySQL server has gone away in /home/bitrix/www/bitrix/modules/main/lib/db/mysqliconnection.php:137 Stack trace: #0 /home/bitrix/www/bitrix/modules/main/lib/db/connection.php(330): Bitrix\Main\DB\MysqliConnection->queryInternal('\n\t\t\t\tSELECT FRO...', Array, NULL) #1 /home/bitrix/www/bitrix/modules/main/lib/eventmanager.php(230): Bitrix\Main\DB\Connection->query('\n\t\t\t\tSELECT FRO...') #2 /home/bitrix/www/bitrix/modules/main/lib/eventmanager.php(333): Bitrix\Main\EventManager->loadEventHandlers() #3 /home/bitrix/www/bitrix/modules/main/classes/general/module.php(340): Bitrix\Main\EventManager->findEventHandlers('main', 'OnBeforeEndBuff...') #4 /home/bitrix/www/bitrix/modules/main/classes/general/main.php(3160): GetModuleEvents('main', 'OnBeforeEndBuff...', true) #5 [internal function]: CAllMain->EndBufferContent('<pre>[Bitrix\\Ma...', 9) #6 /home/bitrix/www/bitrix/modules/main/classes/general/main.php(3414): ob_end_flush() #7 [internal in /home/bitrix/www/bitrix/modules/main/lib/db/mysqliconnection.php on line 137