Exception: Query error HY000: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away. Query: SELECT
COUNT(*) AS `count`
FROM `shop_purchase_discounts`
WHERE `shop_purchase_discounts`.`shop_id` = '3' AND `active` = 1 AND `position` > 0 AND `start_datetime` <= '2024-12-22 06:51:16' AND `end_datetime` >= '2024-12-22 06:51:16' AND `shop_purchase_discounts`.`deleted` = 0
modules/core/database/pdo.php:679 Core_Exception->__construct
modules/core/querybuilder/statement.php:87 Core_DataBase_Pdo->query
modules/core/orm.php:648 Core_QueryBuilder_Statement->execute
modules/core/entity.php:633 Core_ORM->getCount
modules/shop/purchase/discount/model.php:169 Core_Entity->getCount
modules/shop/cart/controller/default.php:73 Shop_Purchase_Discount_Model->checkAvailableWithPosition
hostcmsfiles/lib/lib_73/lib_73.php:269 Shop_Cart_Controller_Default->getAll
modules/lib/model.php:277 include
modules/core/page.php:176 Lib_Model->execute
templates/template27/template.htm:5 Core_Page->execute
modules/template/model.php:107 include
modules/core/page.php:176 Template_Model->execute
templates/template13/template.htm:272 Core_Page->execute
modules/template/model.php:107 include
modules/core/page.php:176 Template_Model->execute
modules/core/command/controller/default.php:621 Core_Page->execute
modules/core/router/route.php:195 Core_Command_Controller_Default->showAction
index.php:383 Core_Router_Route->execute
Fatal error: Uncaught Core_Exception: Query error HY000: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away. Query: UPDATE `sessions` SET `value` = 'aG9zdGNtc0NhcnR8YToxOntpOjM7YToxOntpOjYwOTczO2E6NTp7czo4OiJxdWFudGl0eSI7aToxO3M6ODoicG9zdHBvbmUiO2k6MDtzOjc6Im1hcmtpbmciO3M6MDoiIjtzOjExOiJzaXRldXNlcl9pZCI7aTowO3M6MTc6InNob3Bfd2FyZWhvdXNlX2lkIjtpOjA7fX19', `time` = 1734839476 WHERE `id` = 'bcfb3f100f98de7c5c940b8c6ef2ebd6'
<br />modules/core/database/pdo.php:679 Core_Exception->__construct
<br />modules/core/querybuilder/statement.php:87 Core_DataBase_Pdo->query
<br />modules/core/session/database.php:155 Core_QueryBuilder_Statement->execute
<br />modules/core/session.php:478 session_write_close
<br />modules/core/core.php:524 Core_Session::close in /var/www/a57896/data/www/tuningspeed.ru/modules/core/database/pdo.php:673
Stack trace:
#0 /var/www/a57896/data/www/tuningspeed.ru/modules/core/querybuilder/statement.php(87): Core_DataBase_Pdo->query('UPDATE `session...')
#1 /var/www/a57896/data/www/tuningspeed.ru/m in /var/www/a57896/data/www/tuningspeed.ru/modules/core/database/pdo.php on line 673