Warning: mysqli::query(): MySQL server has gone away in /var/www/html/partner2/system/library/db/mysqli.php on line 18Warning: mysqli::query(): Error reading result set's header in /var/www/html/partner2/system/library/db/mysqli.php on line 18Fatal error: 'Error: MySQL server has gone away
Error No: 2006
SELECT p.*, pd.name, pd.description, pd.meta_description, m.name AS manufacturer,
(SELECT price
FROM oc_product_discount AS pd2
WHERE pd2.product_id = p.product_id
AND pd2.customer_group_id = '8'
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 AS ps
WHERE ps.product_id = p.product_id
AND ps.customer_group_id = '8'
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,
(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 ss.name
FROM oc_stock_status ss
WHERE ss.stock_status_id = p.stock_status_id
AND ss.language_id = '1'
) AS stock_status,
(SELECT COUNT(*) AS total
FROM oc_review r2
WHERE r2.product_id = p.product_id AND r2.status = '1'
GROUP BY r2.product_id
) AS reviews
FROM oc_product AS p
INNER JOIN oc_product_description AS pd ON p.product_id = pd.product_id
LEFT JOIN oc_manufacturer AS m ON p.manufacturer_id = m.manufacturer_id
INNER JOIN oc_product_to_store p2s ON p.product_id = p2s.product_id
WHERE p.status = 1
AND p.date_available <= NOW()
AND pd.language_id = 1 AND p2s.store_id = 0 AND p.hide_from_store = 0 AND NOT EXISTS (SELECT ptc.product_id FROM oc_product_to_category ptc LEFT JOIN oc_category c ON c.category_id = ptc.category_id WHERE c.hide_customer_groups LIKE '%"0"%' AND p.product_id = ptc.product_id) ORDER BY p.date_added DESC LIMIT 0,4'
in /var/www/html/partner2/system/library/db/mysqli.php:40
Stack trace:
#0 system/storage/modification/system/library/db.php(30): DB\MySQLi->query('SELECT p.*, pd....', Array)
#1 system/vendor/BurnEngine/catalog/model/productsModel.php(225): DB->query('SELECT p.*, pd....')
#2 system/vendor/BurnEngine/widget/AbstractProductsListingWidget.php(331): Theme_Catalog_ProductsModel->getProducts(Array)
#3 system/vendor/BurnEngine/widget/LatestProductsWidget.php(38): AbstractProductsListingWidget->getProductsListing(Array)
#4 system/vendor/BurnEngine/widget/AbstractProductsListingWidget.php(128): Theme_LatestProductsWidget->getProductsListing()
#5 system/vendor/BurnEngine/library/vendor/sfEventDispatcher.php(76): AbstractProductsListingWidget->setProductsOptions(Object(sfEvent))
#6 system/vendor/BurnEngine/catalog/ThemeCatalogExtension.php(130): sfEventDispatcher->notify(Object(sfEvent))
#7 system/vendor/BurnEngine/library/vendor/sfEventDispatcher.php(76): Theme_Catalog_Extension->afterRouting(Object(sfEvent))
#8 system/vendor/BurnEngine/library/CatalogDispatcher.php(116): sfEventDispatcher->notify(Object(sfEvent))
#9 system/vendor/BurnEngine/library/CatalogDispatcher.php(43): TB_CatalogDispatcher->doRouting(Object(sfEventDispatcher), Object(Request), Object(TB_ViewDataBag))
#10 system/vendor/BurnEngine/catalog/boot.php(58): TB_CatalogDispatcher->dispatch()
#11 catalog/controller/common/BurnEngine.php(77): TB_Boot::dispatchRequest(Object(TB_Engine))
#12 catalog/controller/common/BurnEngine.php(12): ControllerCommonBurnEngine->index()
#13 [internal function]: ControllerCommonBurnEngine->onGetEventsAfter('extension/event...', Array, Array)
#14 vqmod/vqcache/vq2-system_storage_modification_system_engine_action.php(51): call_user_func_array(Array, Array)
#15 system/storage/modification/system/engine/event.php(31): Action->execute(Object(Registry), Array)
#16 vqmod/vqcache/vq2-system_storage_modification_system_engine_loader.php(209): Event->trigger('model/extension...', Array)
#17 [internal function]: Loader->{closure}(Array, Array)
#18 system/engine/proxy.php(25): call_user_func_array(Object(Closure), Array)
#19 catalog/controller/startup/event.php(7): Proxy->__call('getEvents', Array)
#20 catalog/controller/startup/event.php(7): Proxy->getEvents()
#21 [internal function]: ControllerStartupEvent->index()
#22 vqmod/vqcache/vq2-system_storage_modification_system_engine_action.php(51): call_user_func_array(Array, Array)
#23 system/storage/modification/system/engine/front.php(37): Action->execute(Object(Registry))
#24 system/storage/modification/system/engine/front.php(19): Front->execute(Object(Action))
#25 system/framework.php(103): Front->dispatch(Object(Action), Object(Action))
#26 vqmod/vqcache/vq2-system_startup.php(124): require_once('/var/www/html/p...')
#27 index.php(23): start('catalog')
#28 {main}