Fatal error: Uncaught Exception: Error: Deadlock found when trying to get lock; try restarting transaction
Error No: 1213
DELETE FROM oc_cart WHERE (api_id > '0' OR customer_id = '0') AND date_added < DATE_SUB(NOW(), INTERVAL 1 HOUR) in /var/www/zuheir2/data/www/optcosmetics.com/system/library/db/mysqli.php:46 Stack trace: #0 /var/www/zuheir2/data/www/optcosmetics.com/system/library/db.php(16): DB\MySQLi->query('DELETE FROM oc_...', Array) #1 /var/www/zuheir2/data/www/optcosmetics.com/system/storage/modification/system/library/cart/cart.php(25): DB->query('DELETE FROM oc_...') #2 /var/www/zuheir2/data/www/optcosmetics.com/system/storage/modification/catalog/controller/startup/startup.php(213): Cart\Cart->__construct(Object(Registry)) #3 /var/www/zuheir2/data/www/optcosmetics.com/system/storage/modification/system/engine/action.php(51): ControllerStartupStartup->index() #4 /var/www/zuheir2/data/www/optcosmetics.com/system/engine/front.php(34): Action->execute(Object(Registry)) #5 /var/www/zuheir2/data/www/optcosm in /var/www/zuheir2/data/www/optcosmetics.com/system/library/db/mysqli.php on line 46