[Bitrix\Main\DB\SqlQueryException] 
Mysql query error: (2006) MySQL server has gone away (400)
SELECT 
	`catalog_catalog_iblock`.`IBLOCK_ID` AS `IBLOCK_ID`,
	`catalog_catalog_iblock`.`PRODUCT_IBLOCK_ID` AS `PRODUCT_IBLOCK_ID`,
	`catalog_catalog_iblock`.`SKU_PROPERTY_ID` AS `SKU_PROPERTY_ID`,
	`catalog_catalog_iblock_iblock`.`VERSION` AS `VERSION`,
	`catalog_catalog_iblock_iblock`.`ID` AS `UALIAS_0`
FROM `b_catalog_iblock` `catalog_catalog_iblock` 
INNER JOIN `b_iblock` `catalog_catalog_iblock_iblock` ON `catalog_catalog_iblock`.`IBLOCK_ID` = `catalog_catalog_iblock_iblock`.`ID`
WHERE `catalog_catalog_iblock`.`PRODUCT_IBLOCK_ID` = 4
/var/www/admin/www/megachas.ru/bitrix/modules/main/lib/db/mysqliconnection.php:137
#0: Bitrix\Main\DB\MysqliConnection->queryInternal(string, array, NULL)
	/var/www/admin/www/megachas.ru/bitrix/modules/main/lib/db/connection.php:330
#1: Bitrix\Main\DB\Connection->query(string)
	/var/www/admin/www/megachas.ru/bitrix/modules/main/lib/orm/query/query.php:3398
#2: Bitrix\Main\ORM\Query\Query->query(string)
	/var/www/admin/www/megachas.ru/bitrix/modules/main/lib/orm/query/query.php:825
#3: Bitrix\Main\ORM\Query\Query->exec()
	/var/www/admin/www/megachas.ru/bitrix/modules/main/lib/orm/data/datamanager.php:500
#4: Bitrix\Main\ORM\Data\DataManager::getList(array)
	/var/www/admin/www/megachas.ru/bitrix/modules/catalog/general/catalog_sku.php:143
#5: CAllCatalogSku::GetInfoByProductIBlock(integer)
	/var/www/admin/www/megachas.ru/bitrix/modules/iblock/lib/propertyindex/facet.php:45
#6: Bitrix\Iblock\PropertyIndex\Facet->__construct(integer)
	/var/www/admin/www/megachas.ru/bitrix/modules/iblock/lib/propertyindex/querybuilder.php:28
#7: Bitrix\Iblock\PropertyIndex\QueryBuilder->__construct(integer)
	/var/www/admin/www/megachas.ru/bitrix/modules/iblock/classes/general/iblockelement.php:662
#8: CAllIBlockElement->MkFilter(array, array, array)
	/var/www/admin/www/megachas.ru/bitrix/modules/iblock/classes/general/iblockelement.php:3095
#9: CAllIBlockElement->PrepareGetList(array, array, array, string, array, array, NULL, NULL, array, boolean, string, array, array, array)
	/var/www/admin/www/megachas.ru/bitrix/modules/iblock/classes/mysql/iblockelement.php:326
#10: CIBlockElement->prepareSql(array, array, boolean, array)
	/var/www/admin/www/megachas.ru/bitrix/modules/iblock/classes/mysql/iblockelement.php:666
#11: CIBlockElement::GetList(array, array, boolean, array, array)
	/var/www/admin/www/megachas.ru/bitrix/php_interface/include/functions.php:36
#12: getCardType(string, string)
	/var/www/admin/www/megachas.ru/local/templates/NEW_2021/header.php:23
#13: include_once(string)
	/var/www/admin/www/megachas.ru/bitrix/modules/main/include/prolog_after.php:106
#14: require(string)
	/var/www/admin/www/megachas.ru/bitrix/modules/main/include/prolog.php:11
#15: require_once(string)
	/var/www/admin/www/megachas.ru/bitrix/header.php:1
#16: require(string)
	/var/www/admin/www/megachas.ru/catalog/index.php:34
#17: include_once(string)
	/var/www/admin/www/megachas.ru/bitrix/modules/main/include/urlrewrite.php:159
#18: include_once(string)
	/var/www/admin/www/megachas.ru/bitrix/urlrewrite.php:2

Fatal error: Uncaught Bitrix\Main\DB\SqlQueryException: Mysql query error: (2006) MySQL server has gone away in /var/www/admin/www/megachas.ru/bitrix/modules/main/lib/db/mysqliconnection.php:137 Stack trace: #0 /var/www/admin/www/megachas.ru/bitrix/modules/main/lib/db/connection.php(330): Bitrix\Main\DB\MysqliConnection->queryInternal('INSERT IGNORE I...', Array, NULL) #1 /var/www/admin/www/megachas.ru/bitrix/modules/main/lib/db/connection.php(379): Bitrix\Main\DB\Connection->query('INSERT IGNORE I...', NULL) #2 /var/www/admin/www/megachas.ru/bitrix/modules/main/lib/eventmanager.php(183): Bitrix\Main\DB\Connection->queryExecute('INSERT IGNORE I...') #3 /var/www/admin/www/megachas.ru/bitrix/modules/main/lib/eventmanager.php(157): Bitrix\Main\EventManager->registerEventHandlerInternal('sale', 'OnSaleCancelOrd...', 'tcsbank.kupivkr...', 'CTCSBank', 'OnCancelOrder', 100, '', '', 1) #4 /var/www/admin/www/megachas.ru/bitrix/modules/main/classes/general/module.php(497): Bitrix\Main\EventManager->registerEventHandlerCompatible('s in /var/www/admin/www/megachas.ru/bitrix/modules/main/lib/db/mysqliconnection.php on line 137