[Bitrix\Main\DB\SqlQueryException]
Mysql query error: (2006) MySQL server has gone away (400)
SELECT
`sale_internals_discount_entities`.`DISCOUNT_ID` AS `DISCOUNT_ID`,
`sale_internals_discount_entities`.`MODULE_ID` AS `MODULE_ID`,
`sale_internals_discount_entities`.`ENTITY` AS `ENTITY`,
`sale_internals_discount_entities`.`FIELD_ENTITY` AS `FIELD_ENTITY`,
`sale_internals_discount_entities`.`FIELD_TABLE` AS `FIELD_TABLE`
FROM `b_sale_discount_entities` `sale_internals_discount_entities`
WHERE `sale_internals_discount_entities`.`DISCOUNT_ID` IN (26,27,28,30)
/var/www/kssmarket.ru/htdocs/bitrix/modules/main/lib/db/mysqliconnection.php:137
#0: Bitrix\Main\DB\MysqliConnection->queryInternal(string, array, NULL)
/var/www/kssmarket.ru/htdocs/bitrix/modules/main/lib/db/connection.php:330
#1: Bitrix\Main\DB\Connection->query(string)
/var/www/kssmarket.ru/htdocs/bitrix/modules/main/lib/orm/query/query.php:3190
#2: Bitrix\Main\ORM\Query\Query->query(string)
/var/www/kssmarket.ru/htdocs/bitrix/modules/main/lib/orm/query/query.php:806
#3: Bitrix\Main\ORM\Query\Query->exec()
/var/www/kssmarket.ru/htdocs/bitrix/modules/main/lib/orm/data/datamanager.php:457
#4: Bitrix\Main\ORM\Data\DataManager::getList(array)
/var/www/kssmarket.ru/htdocs/bitrix/modules/sale/lib/internals/discountentities.php:224
#5: Bitrix\Sale\Internals\DiscountEntitiesTable::getByDiscount(array)
/var/www/kssmarket.ru/htdocs/bitrix/modules/sale/lib/discount/runtimecache/discountcache.php:131
#6: Bitrix\Sale\Discount\RuntimeCache\DiscountCache->getDiscountEntities(array)
/var/www/kssmarket.ru/htdocs/bitrix/modules/catalog/lib/discount/discountmanager.php:670
#7: Bitrix\Catalog\Discount\DiscountManager::preloadProductDataToExtendOrder(array, array)
/var/www/kssmarket.ru/htdocs/bitrix/modules/iblock/lib/component/base.php:462
#8: Bitrix\Iblock\Component\Base->initCatalogDiscountCache()
/var/www/kssmarket.ru/htdocs/bitrix/modules/iblock/lib/component/base.php:3624
#9: Bitrix\Iblock\Component\Base->prepareData()
/var/www/kssmarket.ru/htdocs/bitrix/modules/iblock/lib/component/base.php:3578
#10: Bitrix\Iblock\Component\Base->processResultData()
/var/www/kssmarket.ru/htdocs/bitrix/modules/iblock/lib/component/element.php:243
#11: Bitrix\Iblock\Component\Element->processResultData()
/var/www/kssmarket.ru/htdocs/bitrix/modules/iblock/lib/component/base.php:4032
#12: Bitrix\Iblock\Component\Base->loadData()
/var/www/kssmarket.ru/htdocs/bitrix/modules/iblock/lib/component/base.php:4021
#13: Bitrix\Iblock\Component\Base->initialLoadAction()
/var/www/kssmarket.ru/htdocs/bitrix/modules/iblock/lib/component/element.php:228
#14: Bitrix\Iblock\Component\Element->initialLoadAction()
#15: call_user_func(array)
/var/www/kssmarket.ru/htdocs/bitrix/modules/iblock/lib/component/base.php:4206
#16: Bitrix\Iblock\Component\Base->doAction()
/var/www/kssmarket.ru/htdocs/bitrix/modules/iblock/lib/component/base.php:4224
#17: Bitrix\Iblock\Component\Base->executeComponent()
/var/www/kssmarket.ru/htdocs/bitrix/modules/main/classes/general/component.php:638
#18: CBitrixComponent->includeComponent(string, array, NULL)
/var/www/kssmarket.ru/htdocs/bitrix/modules/main/classes/general/main.php:1037
#19: CAllMain->IncludeComponent(string, string, array)
/var/www/kssmarket.ru/htdocs/local/templates/letsrock/components/freematiq/main.include/catalog_item/template.php:42
#20: include(string)
/var/www/kssmarket.ru/htdocs/bitrix/modules/main/classes/general/component_template.php:720
#21: CBitrixComponentTemplate->__IncludePHPTemplate(array, array, string)
/var/www/kssmarket.ru/htdocs/bitrix/modules/main/classes/general/component_template.php:815
#22: CBitrixComponentTemplate->IncludeTemplate(array)
/var/www/kssmarket.ru/htdocs/bitrix/modules/main/classes/general/component.php:735
#23: CBitrixComponent->showComponentTemplate()
/var/www/kssmarket.ru/htdocs/bitrix/modules/main/classes/general/component.php:683
#24: CBitrixComponent->includeComponentTemplate()
/var/www/kssmarket.ru/htdocs/local/components/freematiq/main.include/class.php:7
#25: VariableSet->executeComponent()
/var/www/kssmarket.ru/htdocs/bitrix/modules/main/classes/general/component.php:638
#26: CBitrixComponent->includeComponent(string, array, NULL)
/var/www/kssmarket.ru/htdocs/bitrix/modules/main/classes/general/main.php:1037
#27: CAllMain->IncludeComponent(string, string, array)
/var/www/kssmarket.ru/htdocs/item/index.php:138
#28: include_once(string)
/var/www/kssmarket.ru/htdocs/bitrix/modules/main/include/urlrewrite.php:159
#29: include_once(string)
/var/www/kssmarket.ru/htdocs/bitrix/urlrewrite.php:2
Fatal error: Uncaught Bitrix\Main\DB\SqlQueryException: Mysql query error: (2006) MySQL server has gone away in /var/www/kssmarket.ru/htdocs/bitrix/modules/main/lib/db/mysqliconnection.php:137
Stack trace:
#0 /var/www/kssmarket.ru/htdocs/bitrix/modules/main/lib/db/connection.php(330): Bitrix\Main\DB\MysqliConnection->queryInternal('SELECT \n\t`sale_...', Array, NULL)
#1 /var/www/kssmarket.ru/htdocs/bitrix/modules/main/lib/orm/query/query.php(3190): Bitrix\Main\DB\Connection->query('SELECT \n\t`sale_...')
#2 /var/www/kssmarket.ru/htdocs/bitrix/modules/main/lib/orm/query/query.php(806): Bitrix\Main\ORM\Query\Query->query('SELECT \n\t`sale_...')
#3 /var/www/kssmarket.ru/htdocs/bitrix/modules/main/lib/orm/data/datamanager.php(457): Bitrix\Main\ORM\Query\Query->exec()
#4 /var/www/kssmarket.ru/htdocs/bitrix/modules/pecom.ecomm/classes/lib/Bitrix/Handler/deliveries.php(69): Bitrix\Main\ORM\Data\DataManager::getList(Array)
#5 /var/www/kssmarket.ru/htdocs/bitrix/modules/pecom.ecomm/classes/lib/Bitrix/Handler/deliveries.php(77): Ip in
/var/www/kssmarket.ru/htdocs/bitrix/modules/main/lib/db/mysqliconnection.php on line
137