Fatal error: Uncaught Exception: Error: MySQL server has gone away<br />Error No: 2006<br />SELECT SQL_CALC_FOUND_ROWS p.* ,pd.* , (SELECT ps.`price` FROM `oc_product_special` ps WHERE ps.`product_id` = p.`product_id` AND ((ps.`date_start` = '0000-00-00' OR ps.`date_start` <= '2024-10-31') AND (ps.`date_end` = '0000-00-00' OR ps.`date_end` > '2024-10-31') AND (ps.`customer_group_id` = 1)) ORDER BY ps.`priority`, ps.`price` LIMIT 1) AS special , (SELECT ss.`name` FROM `oc_stock_status` ss WHERE ss.`stock_status_id` = p.`stock_status_id` AND ss.`language_id` = 1 LIMIT 1) AS stock_status , IF(((ps.`date_start` = '0000-00-00' OR ps.`date_start` <= '2024-10-31') AND (ps.`date_end` = '0000-00-00' OR ps.`date_end` > '2024-10-31') AND (ps.`customer_group_id` = 1)), ps.`price`, p.`price`) AS price_sort , (SELECT ROUND(AVG(rating)) AS total FROM `oc_review` r1 WHERE r1.`product_id` = p.`product_id` AND r1.`status` = 1 GROUP BY r1.`product_id`) AS rating , (SELECT COUNT(*) AS total FROM `oc_review` r2 WHERE r2.`product_id` = p.`p in /var/www/annacosm/data/www/annacosmetics.ru/system/library/db/mysqli.php on line 40

Fatal error: Uncaught Exception: Error: MySQL server has gone away<br />Error No: 2006<br />REPLACE INTO `oc_session` SET session_id = 'c8f11f340c19ffc8f03d0118a6', `data` = '{\"language\":\"ru-ru\",\"currency\":\"RUB\"}', expire = '2024-10-31 23:23:25' in /var/www/annacosm/data/www/annacosmetics.ru/system/library/db/mysqli.php:40 Stack trace: #0 /var/www/annacosm/data/www/annacosmetics.ru/system/library/db.php(45): DB\MySQLi->query('REPLACE INTO `o...') #1 /var/www/annacosm/data/www/annacosmetics.ru/system/library/session/db.php(32): DB->query('REPLACE INTO `o...') #2 /var/www/annacosm/data/www/annacosmetics.ru/system/library/session.php(81): Session\DB->write('c8f11f340c19ffc...', Array) #3 [internal function]: Session->close() #4 {main} thrown in /var/www/annacosm/data/www/annacosmetics.ru/system/library/db/mysqli.php on line 40