Warning: Error while sending QUERY packet. PID=28236 in /www/wwwroot/lesmillsmall.xyz/system/library/db/mysqli.php on line 18
Fatal error: Uncaught exception 'Exception' with message 'Error: MySQL server has gone away<br />Error No: 2006<br />
SELECT
IF(p.quantity > 0, 1, 0) AS availability,
COUNT(*) AS total
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
p.status = '1'
AND p.date_available <= NOW()
AND p2s.store_id = '0'
AND pd.language_id = '1'
GROUP BY
CASE
WHEN p.quantity > 0 THEN 1
ELSE 0
END
' in /www/wwwroot/lesmillsmall.xyz/system/library/db/mysqli.php:40
Stack trace:
#0 /www/wwwroot/lesmillsmall.xyz/storage/modification/system/library/db.php(55): DB\MySQLi->query('\n\t\t\tSELECT \n\t\t\t...')
#1 /www/wwwroot/lesmillsmall.xyz/system/library/journal3/opencart/model.php(48): DB->query('\n\t\t\tSELECT \n\t\t\t...')
#2 /www/wwwroot/lesmillsmall.xyz/catalog/model/journal3/filter.php(1162): Journal3\Opencart\Model->dbQuery('\n\t\t\tSELECT \n\t\t\ in /www/wwwroot/lesmillsmall.xyz/system/library/db/mysqli.php on line 40
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 = 'a5dd201bdf45b059f1979ff82d', `data` = '{\"language\":\"en-gb\",\"currency\":\"USD\"}', expire = '2025-01-23 01:38:56'' in /www/wwwroot/lesmillsmall.xyz/system/library/db/mysqli.php:40
Stack trace:
#0 /www/wwwroot/lesmillsmall.xyz/storage/modification/system/library/db.php(55): DB\MySQLi->query('REPLACE INTO `o...')
#1 /www/wwwroot/lesmillsmall.xyz/system/library/session/db.php(32): DB->query('REPLACE INTO `o...')
#2 /www/wwwroot/lesmillsmall.xyz/system/library/session.php(81): Session\DB->write('a5dd201bdf45b05...', Array)
#3 [internal function]: Session->close()
#4 {main}
thrown in /www/wwwroot/lesmillsmall.xyz/system/library/db/mysqli.php on line 40