История просмотров:

[Bitrix\Main\DB\SqlQueryException] 
Mysql query error: (2006) MySQL server has gone away (400)
SELECT 
	`catalog_catalog_viewed_product`.`PRODUCT_ID` AS `PRODUCT_ID`,
	`catalog_catalog_viewed_product`.`ELEMENT_ID` AS `ELEMENT_ID`,
	`catalog_catalog_viewed_product`.`DATE_VISIT` AS `DATE_VISIT`,
	`catalog_catalog_viewed_product`.`ID` AS `UALIAS_0`,
	`catalog_catalog_viewed_product_parent_element`.`ID` AS `UALIAS_1`
FROM `b_catalog_viewed_product` `catalog_catalog_viewed_product` 
INNER JOIN `b_iblock_element` `catalog_catalog_viewed_product_parent_element` ON `catalog_catalog_viewed_product`.`ELEMENT_ID` = `catalog_catalog_viewed_product_parent_element`.`ID`
WHERE `catalog_catalog_viewed_product`.`FUSER_ID` = 10158325
AND `catalog_catalog_viewed_product`.`SITE_ID` = 's1'
AND `catalog_catalog_viewed_product_parent_element`.`IBLOCK_ID` = 4
AND `catalog_catalog_viewed_product_parent_element`.`WF_STATUS_ID` = 1
AND (`catalog_catalog_viewed_product_parent_element`.`WF_PARENT_ELEMENT_ID` IS NULL OR `catalog_catalog_viewed_product_parent_element`.`WF_PARENT_ELEMENT_ID` = 0)
ORDER BY `DATE_VISIT` DESC
LIMIT 0, 16

/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/lib/catalogviewedproduct.php:324
#5: Bitrix\Catalog\CatalogViewedProductTable::getProductSkuMap(integer, integer, integer, integer, integer, integer)
	/var/www/admin/www/megachas.ru/bitrix/components/bitrix/catalog.products.viewed/class.php:86
#6: CatalogProductsViewedComponent->getProductIds()
	/var/www/admin/www/megachas.ru/bitrix/modules/iblock/lib/component/base.php:4538
#7: Bitrix\Iblock\Component\Base->initialLoadAction()
	
#8: call_user_func(array)
	/var/www/admin/www/megachas.ru/bitrix/modules/iblock/lib/component/base.php:4725
#9: Bitrix\Iblock\Component\Base->doAction()
	/var/www/admin/www/megachas.ru/bitrix/modules/iblock/lib/component/base.php:4743
#10: Bitrix\Iblock\Component\Base->executeComponent()
	/var/www/admin/www/megachas.ru/bitrix/modules/main/classes/general/component.php:656
#11: CBitrixComponent->includeComponent(string, array, boolean, boolean)
	/var/www/admin/www/megachas.ru/bitrix/modules/main/classes/general/main.php:1041
#12: CAllMain->IncludeComponent(string, string, array, boolean)
	/var/www/admin/www/megachas.ru/local/templates/NEW_2021/footer.php:132
#13: include_once(string)
	/var/www/admin/www/megachas.ru/bitrix/modules/main/include/epilog_before.php:93
#14: require(string)
	/var/www/admin/www/megachas.ru/bitrix/modules/main/include/epilog.php:2
#15: require_once(string)
	/var/www/admin/www/megachas.ru/bitrix/footer.php:4
#16: require(string)
	/var/www/admin/www/megachas.ru/catalog/index.php:296
#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