Fatal error: 'Error: Query execution was interrupted
Error No: 1317
SELECT p.product_id, (SELECT 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 price FROM oc_product_discount pd2 WHERE pd2.product_id = p.product_id AND pd2.customer_group_id = '1' AND pd2.quantity = '1' AND ((pd2.date_start = '0000-00-00' OR pd2.date_start < NOW()) AND (pd2.date_end = '0000-00-00' OR pd2.date_end > NOW())) ORDER BY pd2.priority ASC, pd2.price ASC LIMIT 1) AS discount, (SELECT price FROM oc_product_special ps WHERE ps.product_id = p.product_id AND ps.customer_group_id = '1' AND ((ps.date_start = '0000-00-00' OR ps.date_start < NOW()) AND (ps.date_end = '0000-00-00' OR ps.date_end > NOW())) ORDER BY ps.priority ASC, ps.price ASC LIMIT 1) AS special FROM oc_product p LEFT JOIN oc_product_description pd ON (p.product_id = pd.product_id) LEFT JOIN oc_product_to_store p2s ON (p.product_id = p2s.product_id) WHERE pd.language_id = '1' AND p.status = '1' AND p.date_available <= NOW() AND p2s.store_id = '0' AND p.manufacturer_id = '408' GROUP BY p.product_id ORDER BY p.sort_order ASC, LCASE(pd.name) ASC LIMIT 0,86
'
in /home/cubegulf/public_html/system/library/db/mysqli.php:40
Stack trace:
#0 /home/cubegulf/storage/modification/system/library/db.php(59): DB\MySQLi->query('SELECT p.produc...')
#1 /home/cubegulf/storage/modification/catalog/model/catalog/product.php(206): DB->query('SELECT p.produc...')
#2 [internal function]: ModelCatalogProduct->getProducts(Array)
#3 /home/cubegulf/storage/modification/system/engine/loader.php(276): call_user_func_array(Array, Array)
#4 [internal function]: Loader->{closure}(Array, Array)
#5 system/engine/proxy.php(47): call_user_func_array(Object(Closure), Array)
#6 catalog/controller/product/manufacturer.php(154): Proxy->__call('getProducts', Array)
#7 catalog/controller/product/manufacturer.php(154): Proxy->getProducts(Array)
#8 [internal function]: ControllerProductManufacturer->info()
#9 /home/cubegulf/storage/modification/system/engine/action.php(79): call_user_func_array(Array, Array)
#10 catalog/controller/startup/router.php(25): Action->execute(Object(Registry))
#11 [internal function]: ControllerStartupRouter->index()
#12 /home/cubegulf/storage/modification/system/engine/action.php(79): call_user_func_array(Array, Array)
#13 /home/cubegulf/storage/modification/system/engine/router.php(71): Action->execute(Object(Registry))
#14 /home/cubegulf/storage/modification/system/engine/router.php(60): Router->execute(Object(Action))
#15 system/framework.php(168): Router->dispatch(Object(Action), Object(Action))
#16 system/startup.php(104): require_once('/home/cubegulf/...')
#17 index.php(19): start('catalog')
#18 {main}
Fatal error: Uncaught exception 'Exception' with message 'Error: MySQL server has gone away<br />Error No: 2006<br />REPLACE INTO `oc_session` SET session_id = 'db10d6371996ad1dc6c8aed244', `data` = '{\"language\":\"en-gb\",\"currency\":\"SAR\"}', expire = '2021-10-19 00:27:29'' in /home/cubegulf/public_html/system/library/db/mysqli.php:40 Stack trace: #0 /home/cubegulf/storage/modification/system/library/db.php(59): DB\MySQLi->query('REPLACE INTO `o...') #1 /home/cubegulf/public_html/system/library/session/db.php(32): DB->query('REPLACE INTO `o...') #2 /home/cubegulf/storage/modification/system/library/session.php(134): Session\DB->write('db10d6371996ad1...', Array) #3 [internal function]: Session->close() #4 {main} thrown in /home/cubegulf/public_html/system/library/db/mysqli.php on line 40