[Bitrix\Main\DB\SqlQueryException] 
Mysql query error: (2006) MySQL server has gone away (400)
SELECT 'x' FROM b_module_to_module WHERE FROM_MODULE_ID='sale'	AND MESSAGE_ID='OnSalePayOrder' 	AND TO_MODULE_ID='dw.deluxe' 	AND TO_CLASS='DwBonus' 	AND TO_METHOD='addBonus' AND (TO_PATH='' OR TO_PATH IS NULL) AND (TO_METHOD_ARG='' OR TO_METHOD_ARG IS NULL)
/var/www/giveweb/data/www/actuall.ru/bitrix/modules/main/lib/db/mysqliconnection.php:137
#0: Bitrix\Main\DB\MysqliConnection->queryInternal(string, array, NULL)
	/var/www/giveweb/data/www/actuall.ru/bitrix/modules/main/lib/db/connection.php:330
#1: Bitrix\Main\DB\Connection->query(string)
	/var/www/giveweb/data/www/actuall.ru/bitrix/modules/main/lib/eventmanager.php:185
#2: Bitrix\Main\EventManager->registerEventHandlerInternal(string, string, string, string, string, integer, string, string, integer)
	/var/www/giveweb/data/www/actuall.ru/bitrix/modules/main/lib/eventmanager.php:151
#3: Bitrix\Main\EventManager->registerEventHandler(string, string, string, string, string)
	/var/www/giveweb/data/www/actuall.ru/bitrix/modules/dw.deluxe/include.php:20
#4: include_once(string)
	/var/www/giveweb/data/www/actuall.ru/bitrix/modules/main/lib/loader.php:109
#5: Bitrix\Main\Loader::includeModuleInternal(string)
	/var/www/giveweb/data/www/actuall.ru/bitrix/modules/main/lib/loader.php:96
#6: Bitrix\Main\Loader::includeModule(string)
	/var/www/giveweb/data/www/actuall.ru/bitrix/templates/dresscode/header.php:7
#7: include_once(string)
	/var/www/giveweb/data/www/actuall.ru/bitrix/modules/main/include/prolog_after.php:96
#8: require(string)
	/var/www/giveweb/data/www/actuall.ru/bitrix/modules/main/include/prolog.php:11
#9: require_once(string)
	/var/www/giveweb/data/www/actuall.ru/bitrix/header.php:1
#10: require(string)
	/var/www/giveweb/data/www/actuall.ru/catalog/index.php:2
#11: include_once(string)
	/var/www/giveweb/data/www/actuall.ru/bitrix/modules/main/include/urlrewrite.php:159
#12: include_once(string)
	/var/www/giveweb/data/www/actuall.ru/bitrix/urlrewrite.php:2

Fatal error: Uncaught Bitrix\Main\DB\SqlQueryException: Mysql query error: (2006) MySQL server has gone away in /var/www/giveweb/data/www/actuall.ru/bitrix/modules/main/lib/db/mysqliconnection.php:137 Stack trace: #0 /var/www/giveweb/data/www/actuall.ru/bitrix/modules/main/lib/db/mysqlcommonconnection.php(132): Bitrix\Main\DB\MysqliConnection->queryInternal('SELECT * FROM `...') #1 /var/www/giveweb/data/www/actuall.ru/bitrix/modules/main/lib/db/connection.php(716): Bitrix\Main\DB\MysqlCommonConnection->getTableFields('b_sec_session') #2 /var/www/giveweb/data/www/actuall.ru/bitrix/modules/main/lib/db/sqlhelper.php(387): Bitrix\Main\DB\Connection->getTableField('b_sec_session', 'SESSION_ID') #3 /var/www/giveweb/data/www/actuall.ru/bitrix/modules/main/lib/entity/datamanager.php(974): Bitrix\Main\DB\SqlHelper->prepareAssignment('b_sec_session', 'SESSION_ID', 'D3UW43SA1To9F1C...') #4 /var/www/giveweb/data/www/actuall.ru/bitrix/modules/security/classes/general/session_db.php(92): Bitrix\Main\Entity\DataManager::delete(Array) #5 in /var/www/giveweb/data/www/actuall.ru/bitrix/modules/main/lib/db/mysqliconnection.php on line 137