[Bitrix\Main\DB\SqlQueryException]
Mysql query error: (2006) MySQL server has gone away (400)
SELECT
`sale_internals_discount`.`ID` AS `ID`,
`sale_internals_discount`.`PRIORITY` AS `PRIORITY`,
`sale_internals_discount`.`SORT` AS `SORT`,
`sale_internals_discount`.`LAST_DISCOUNT` AS `LAST_DISCOUNT`,
`sale_internals_discount`.`LAST_LEVEL_DISCOUNT` AS `LAST_LEVEL_DISCOUNT`,
`sale_internals_discount`.`UNPACK` AS `UNPACK`,
`sale_internals_discount`.`APPLICATION` AS `APPLICATION`,
`sale_internals_discount`.`USE_COUPONS` AS `USE_COUPONS`,
`sale_internals_discount`.`EXECUTE_MODULE` AS `EXECUTE_MODULE`,
`sale_internals_discount`.`NAME` AS `NAME`,
`sale_internals_discount`.`CONDITIONS` AS `CONDITIONS_LIST`,
`sale_internals_discount`.`ACTIONS` AS `ACTIONS_LIST`,
`sale_internals_discount`.`ACTIVE_FROM` AS `ACTIVE_FROM`,
`sale_internals_discount`.`ACTIVE_TO` AS `ACTIVE_TO`,
`sale_internals_discount`.`PREDICTIONS` AS `PREDICTIONS_LIST`,
`sale_internals_discount`.`PREDICTIONS_APP` AS `PREDICTIONS_APP`,
`sale_internals_discount`.`PREDICTION_TEXT` AS `PREDICTION_TEXT`,
`sale_internals_discount`.`PRESET_ID` AS `PRESET_ID`,
`sale_internals_discount`.`CURRENCY` AS `CURRENCY`,
`sale_internals_discount`.`LID` AS `LID`,
`sale_internals_discount`.`SHORT_DESCRIPTION` AS `SHORT_DESCRIPTION`,
`sale_internals_discount`.`SHORT_DESCRIPTION` AS `SHORT_DESCRIPTION_STRUCTURE`
FROM `b_sale_discount` `sale_internals_discount`
WHERE `sale_internals_discount`.`ID` IN (26,27,28,30)
AND `sale_internals_discount`.`LID` = 's1'
AND `sale_internals_discount`.`EXECUTE_MODULE` IN ('all', 'catalog')
AND (
(`sale_internals_discount`.`ACTIVE_FROM` IS NULL)
OR `sale_internals_discount`.`ACTIVE_FROM` <= '2024-11-08 12:31:17'
)
AND (
(`sale_internals_discount`.`ACTIVE_TO` IS NULL)
OR `sale_internals_discount`.`ACTIVE_TO` >= '2024-11-08 12:31:17'
)
AND `sale_internals_discount`.`USE_COUPONS` = 'N'
ORDER BY `PRIORITY` DESC, `SORT` ASC, `ID` ASC
/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/discount/runtimecache/discountcache.php:211
#5: Bitrix\Sale\Discount\RuntimeCache\DiscountCache->getDiscounts(array, array, string, array)
/var/www/kssmarket.ru/htdocs/bitrix/modules/sale/lib/discountbase.php:5375
#6: Bitrix\Sale\DiscountBase->loadDiscountList()
/var/www/kssmarket.ru/htdocs/bitrix/modules/sale/lib/discountbase.php:1276
#7: Bitrix\Sale\DiscountBase->calculateFull()
/var/www/kssmarket.ru/htdocs/bitrix/modules/sale/lib/discountbase.php:490
#8: Bitrix\Sale\DiscountBase->calculate()
/var/www/kssmarket.ru/htdocs/bitrix/modules/catalog/general/discount.php:1117
#9: CAllCatalogDiscount::getSaleDiscountsByProduct(array, string, array, array, boolean, array)
/var/www/kssmarket.ru/htdocs/bitrix/modules/catalog/general/discount.php:1253
#10: CAllCatalogDiscount::GetDiscount(integer, integer, array, array, string, string, array)
/var/www/kssmarket.ru/htdocs/bitrix/modules/iblock/lib/component/base.php:2615
#11: Bitrix\Iblock\Component\Base->calculatePriceBlock(array, array, integer, boolean)
/var/www/kssmarket.ru/htdocs/bitrix/modules/iblock/lib/component/base.php:2399
#12: Bitrix\Iblock\Component\Base->calculateItemPrices(array)
/var/www/kssmarket.ru/htdocs/bitrix/modules/iblock/lib/component/base.php:3149
#13: Bitrix\Iblock\Component\Base->processProducts()
/var/www/kssmarket.ru/htdocs/bitrix/modules/iblock/lib/component/base.php:3625
#14: Bitrix\Iblock\Component\Base->prepareData()
/var/www/kssmarket.ru/htdocs/bitrix/modules/iblock/lib/component/base.php:3578
#15: Bitrix\Iblock\Component\Base->processResultData()
/var/www/kssmarket.ru/htdocs/bitrix/modules/iblock/lib/component/element.php:243
#16: Bitrix\Iblock\Component\Element->processResultData()
/var/www/kssmarket.ru/htdocs/bitrix/modules/iblock/lib/component/base.php:4032
#17: Bitrix\Iblock\Component\Base->loadData()
/var/www/kssmarket.ru/htdocs/bitrix/modules/iblock/lib/component/base.php:4021
#18: Bitrix\Iblock\Component\Base->initialLoadAction()
/var/www/kssmarket.ru/htdocs/bitrix/modules/iblock/lib/component/element.php:228
#19: Bitrix\Iblock\Component\Element->initialLoadAction()
#20: call_user_func(array)
/var/www/kssmarket.ru/htdocs/bitrix/modules/iblock/lib/component/base.php:4206
#21: Bitrix\Iblock\Component\Base->doAction()
/var/www/kssmarket.ru/htdocs/bitrix/modules/iblock/lib/component/base.php:4224
#22: Bitrix\Iblock\Component\Base->executeComponent()
/var/www/kssmarket.ru/htdocs/bitrix/modules/main/classes/general/component.php:638
#23: CBitrixComponent->includeComponent(string, array, NULL)
/var/www/kssmarket.ru/htdocs/bitrix/modules/main/classes/general/main.php:1037
#24: CAllMain->IncludeComponent(string, string, array)
/var/www/kssmarket.ru/htdocs/local/templates/letsrock/components/freematiq/main.include/catalog_item/template.php:42
#25: include(string)
/var/www/kssmarket.ru/htdocs/bitrix/modules/main/classes/general/component_template.php:720
#26: CBitrixComponentTemplate->__IncludePHPTemplate(array, array, string)
/var/www/kssmarket.ru/htdocs/bitrix/modules/main/classes/general/component_template.php:815
#27: CBitrixComponentTemplate->IncludeTemplate(array)
/var/www/kssmarket.ru/htdocs/bitrix/modules/main/classes/general/component.php:735
#28: CBitrixComponent->showComponentTemplate()
/var/www/kssmarket.ru/htdocs/bitrix/modules/main/classes/general/component.php:683
#29: CBitrixComponent->includeComponentTemplate()
/var/www/kssmarket.ru/htdocs/local/components/freematiq/main.include/class.php:7
#30: VariableSet->executeComponent()
/var/www/kssmarket.ru/htdocs/bitrix/modules/main/classes/general/component.php:638
#31: CBitrixComponent->includeComponent(string, array, NULL)
/var/www/kssmarket.ru/htdocs/bitrix/modules/main/classes/general/main.php:1037
#32: CAllMain->IncludeComponent(string, string, array)
/var/www/kssmarket.ru/htdocs/item/index.php:138
#33: include_once(string)
/var/www/kssmarket.ru/htdocs/bitrix/modules/main/include/urlrewrite.php:159
#34: 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