Каталог товаров
Предупреждение: PDO::query(): MySQL server has gone away в файле /var/www/www-root/data/www/main/modules/core/database/pdo.php (строка 587)Предупреждение: PDO::query(): Error reading result set's header в файле /var/www/www-root/data/www/main/modules/core/database/pdo.php (строка 587)Exception: Query error HY000: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away. Query: SELECT
MIN(t.absolute_price) AS `min`, MAX(t.absolute_price) AS `max`
FROM (SELECT
IF (`shop_items`.`shop_currency_id` = '3', IF (COUNT(`shop_discounts`.`id`), ((`shop_items`.`price` + IF(`shop_taxes`.`tax_is_included` IS NULL OR `shop_taxes`.`tax_is_included` = 1, 0, `shop_items`.`price` * `shop_taxes`.`rate` / 100)) * (1 - SUM(DISTINCT IF(`shop_discounts`.`type` = 0, `shop_discounts`.`value`, 0)) / 100)) * 53 - SUM(DISTINCT IF(`shop_discounts`.`type`, `shop_discounts`.`value`, 0)), (`shop_items`.`price`) * 53), IF (`shop_items`.`shop_currency_id` = '2', IF (COUNT(`shop_discounts`.`id`), ((`shop_items`.`price` + IF(`shop_taxes`.`tax_is_included` IS NULL OR `shop_taxes`.`tax_is_included` = 1, 0, `shop_items`.`price` * `shop_taxes`.`rate` / 100)) * (1 - SUM(DISTINCT IF(`shop_discounts`.`type` = 0, `shop_discounts`.`value`, 0)) / 100)) * 60 - SUM(DISTINCT IF(`shop_discounts`.`type`, `shop_discounts`.`value`, 0)), (`shop_items`.`price`) * 60), IF (`shop_items`.`shop_currency_id` = '1', IF (COUNT(`shop_discounts`.`id`), ((`shop_items`.`price` + IF(`shop_taxes`.`tax_is_included` IS NULL OR `shop_taxes`.`tax_is_included` = 1, 0, `shop_items`.`price` * `shop_taxes`.`rate` / 100)) * (1 - SUM(DISTINCT IF(`shop_discounts`.`type` = 0, `shop_discounts`.`value`, 0)) / 100)) * 1 - SUM(DISTINCT IF(`shop_discounts`.`type`, `shop_discounts`.`value`, 0)), (`shop_items`.`price`) * 1), `shop_items`.`price` + IF(`shop_taxes`.`tax_is_included` IS NULL OR `shop_taxes`.`tax_is_included` = 1, 0, `shop_items`.`price` * `shop_taxes`.`rate` / 100)))) AS `absolute_price`
FROM `shop_items`
LEFT OUTER JOIN `shop_item_discounts` ON `shop_items`.`id` = `shop_item_discounts`.`shop_item_id`
LEFT OUTER JOIN `shop_discounts` ON `shop_item_discounts`.`shop_discount_id` = `shop_discounts`.`id` AND `shop_discounts`.`active` = 1 AND `shop_discounts`.`deleted` = 0 AND `shop_discounts`.`start_datetime` <= '2025-08-19 22:55:35' AND ( `shop_discounts`.`end_datetime` >= '2025-08-19 22:55:35' OR `shop_discounts`.`end_datetime` = '0000-00-00 00:00:00' )
LEFT OUTER JOIN `shop_taxes` ON `shop_taxes`.`id` = `shop_items`.`shop_tax_id`
WHERE `shop_items`.`deleted` = 0 AND `shop_items`.`shop_id` = '1' AND `shop_items`.`active` = 1 AND `shop_items`.`shortcut_id` = 0 AND `shop_items`.`shop_group_id` = 87
GROUP BY `shop_items`.`id`) AS `t`
36 modules/core/exception.php
597 modules/core/database/pdo.php
80 modules/core/querybuilder/statement.php
3058 modules/shop/controller/show.php
183 templates/template21/template.php
2 templates/template21/template.htm
103 modules/template/model.php
166 modules/core/page.php
153 templates/template13/template.php
2 templates/template13/template.htm
103 modules/template/model.php
166 modules/core/page.php
545 modules/core/command/controller/default.php
195 modules/core/router/route.php
235 index.php
Fatal error: Uncaught Core_Exception: Query error HY000: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away. Query: UPDATE `sessions` SET `value` = 'aG9zdGNtc1ZpZXdlZHxhOjE6e2k6MTthOjE6e2k6MDtzOjQ6IjE2MDgiO319', `time` = 1755633336 WHERE `id` = 'jv94du4mg8rn5o9635tu5g3c3u'
<br />36 modules/core/exception.php
<br />597 modules/core/database/pdo.php
<br />80 modules/core/querybuilder/statement.php
<br />138 modules/core/session/database.php
<br />254 modules/core/session.php
<br />425 modules/core/core.php in /var/www/www-root/data/www/main/modules/core/database/pdo.php:591
Stack trace:
#0 /var/www/www-root/data/www/main/modules/core/querybuilder/statement.php(80): Core_DataBase_Pdo->query('UPDATE `session...')
#1 /var/www/www-root/data/www/main/modules/core/session/database.php(138): Core_QueryBuilder_Statement->execute()
#2 [internal function]: Core_Session_Database->sessionWrite('jv94du4mg8rn5o9...', 'aG9zdGNtc1ZpZXd...')
#3 /var/www/www-root/data/www/main/modules/core/session.php(254): session_write_close( in /var/www/www-root/data/www/main/modules/core/database/pdo.php on line 591