/ Каталог
[Bitrix\Main\DB\SqlQueryException] 
Mysql query error: (2006) MySQL server has gone away (400)
SELECT 
	`sale_internals_order_discount`.`ID` AS `ID`,
	`sale_internals_order_discount`.`MODULE_ID` AS `MODULE_ID`,
	`sale_internals_order_discount`.`DISCOUNT_ID` AS `DISCOUNT_ID`,
	`sale_internals_order_discount`.`NAME` AS `NAME`,
	`sale_internals_order_discount`.`DISCOUNT_HASH` AS `DISCOUNT_HASH`,
	`sale_internals_order_discount`.`CONDITIONS` AS `CONDITIONS`,
	`sale_internals_order_discount`.`UNPACK` AS `UNPACK`,
	`sale_internals_order_discount`.`ACTIONS` AS `ACTIONS`,
	`sale_internals_order_discount`.`APPLICATION` AS `APPLICATION`,
	`sale_internals_order_discount`.`USE_COUPONS` AS `USE_COUPONS`,
	`sale_internals_order_discount`.`SORT` AS `SORT`,
	`sale_internals_order_discount`.`PRIORITY` AS `PRIORITY`,
	`sale_internals_order_discount`.`LAST_DISCOUNT` AS `LAST_DISCOUNT`,
	`sale_internals_order_discount`.`ACTIONS_DESCR` AS `ACTIONS_DESCR`
FROM `b_sale_order_discount` `sale_internals_order_discount` 

WHERE `sale_internals_order_discount`.`DISCOUNT_HASH` = '0f45b570e1e5dcb30ee4a7ae4dfdb97f'
/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:329
#1: Bitrix\Main\DB\Connection->query(string)
	/home/bitrix/www/bitrix/modules/main/lib/entity/query.php:1924
#2: Bitrix\Main\Entity\Query->query(string)
	/home/bitrix/www/bitrix/modules/main/lib/entity/query.php:505
#3: Bitrix\Main\Entity\Query->exec()
	/home/bitrix/www/bitrix/modules/main/lib/entity/datamanager.php:256
#4: Bitrix\Main\Entity\DataManager::getList(array)
	/home/bitrix/www/bitrix/modules/sale/lib/orderdiscount.php:215
#5: Bitrix\Sale\OrderDiscountManager::saveDiscount(array, boolean)
	/home/bitrix/www/bitrix/modules/sale/lib/discount.php:3795
#6: Bitrix\Sale\Discount->convertDiscount(array)
	/home/bitrix/www/bitrix/modules/sale/lib/discount.php:3246
#7: Bitrix\Sale\Discount->calculateFullSaleDiscountResult()
	/home/bitrix/www/bitrix/modules/sale/lib/discount.php:2770
#8: Bitrix\Sale\Discount->applySaleDiscount()
	/home/bitrix/www/bitrix/modules/sale/lib/discount.php:5130
#9: Bitrix\Sale\Discount->executeDiscountList()
	/home/bitrix/www/bitrix/modules/sale/lib/discount.php:1709
#10: Bitrix\Sale\Discount->calculateFull()
	/home/bitrix/www/bitrix/modules/sale/lib/discount.php:721
#11: Bitrix\Sale\Discount->calculate()
	/home/bitrix/www/bitrix/modules/catalog/general/discount.php:1091
#12: CAllCatalogDiscount::getSaleDiscountsByProduct(array, string, array, array, boolean)
	/home/bitrix/www/bitrix/modules/catalog/general/discount.php:1222
#13: CAllCatalogDiscount::GetDiscount(integer, integer, array, array, string, string, array)
	/home/bitrix/www/bitrix/modules/iblock/lib/component/base.php:2592
#14: Bitrix\Iblock\Component\Base->calculatePriceBlock(array, array, integer, boolean)
	/home/bitrix/www/bitrix/modules/iblock/lib/component/base.php:2380
#15: Bitrix\Iblock\Component\Base->calculateItemPrices(array)
	/home/bitrix/www/bitrix/modules/iblock/lib/component/base.php:3160
#16: Bitrix\Iblock\Component\Base->processOffers()
	/home/bitrix/www/bitrix/modules/iblock/lib/component/base.php:3598
#17: Bitrix\Iblock\Component\Base->prepareData()
	/home/bitrix/www/bitrix/modules/iblock/lib/component/base.php:3550
#18: Bitrix\Iblock\Component\Base->processResultData()
	/home/bitrix/www/bitrix/modules/iblock/lib/component/element.php:244
#19: Bitrix\Iblock\Component\Element->processResultData()
	/home/bitrix/www/bitrix/modules/iblock/lib/component/base.php:3955
#20: Bitrix\Iblock\Component\Base->loadData()
	/home/bitrix/www/bitrix/modules/iblock/lib/component/base.php:3944
#21: Bitrix\Iblock\Component\Base->initialLoadAction()
	/home/bitrix/www/bitrix/modules/iblock/lib/component/element.php:229
#22: Bitrix\Iblock\Component\Element->initialLoadAction()
	
#23: call_user_func(array)
	/home/bitrix/www/bitrix/modules/iblock/lib/component/base.php:4129
#24: Bitrix\Iblock\Component\Base->doAction()
	/home/bitrix/www/bitrix/modules/iblock/lib/component/base.php:4147
#25: Bitrix\Iblock\Component\Base->executeComponent()
	/home/bitrix/www/bitrix/modules/main/classes/general/component.php:585
#26: CBitrixComponent->includeComponent(string, array, object)
	/home/bitrix/www/bitrix/modules/main/classes/general/main.php:1035
#27: CAllMain->IncludeComponent(string, string, array, object)
	/home/bitrix/www/local/templates/.default/components/bitrix/catalog/catalog/element.php:150
#28: include(string)
	/home/bitrix/www/bitrix/modules/main/classes/general/component_template.php:714
#29: CBitrixComponentTemplate->__IncludePHPTemplate(array, array, string)
	/home/bitrix/www/bitrix/modules/main/classes/general/component_template.php:806
#30: CBitrixComponentTemplate->IncludeTemplate(array)
	/home/bitrix/www/bitrix/modules/main/classes/general/component.php:681
#31: CBitrixComponent->showComponentTemplate()
	/home/bitrix/www/bitrix/modules/main/classes/general/component.php:629
#32: CBitrixComponent->includeComponentTemplate(string)
	/home/bitrix/www/bitrix/components/bitrix/catalog/component.php:168
#33: include(string)
	/home/bitrix/www/bitrix/modules/main/classes/general/component.php:548
#34: CBitrixComponent->__includeComponent()
	/home/bitrix/www/bitrix/modules/main/classes/general/component.php:600
#35: CBitrixComponent->includeComponent(string, array, boolean)
	/home/bitrix/www/bitrix/modules/main/classes/general/main.php:1035
#36: CAllMain->IncludeComponent(string, string, array, boolean)
	/home/bitrix/www/product/index.php:341
#37: include_once(string)
	/home/bitrix/www/bitrix/modules/main/include/urlrewrite.php:159
#38: include_once(string)
	/home/bitrix/www/bitrix/urlrewrite.php:2