Ozd adlı üyeden alıntı: mesajı görüntüle
Merhaba.

Opencart v3.0.3.2 ve Journal 3 temasını kullanıyorum. Oturum açmadan sepete ürün ekleyip daha sonra giriş yaptığımda bu hatayı veriyor ve sayfayı yenilediğimde düzeliyor. Aşağıdaki hatanın sebebi ne olabilir ve nasıl düzeltebilirim?

Fatal error: Uncaught Exception: Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'option='{\"871\":\"2420\"}' WHERE customer_id = '50' AND session_id = '814317e42' at line 1<br />Error No: 1064<br />UPDATE wst_cart SET quantity = (quantity + 1),option='{\"871\":\"2420\"}' WHERE customer_id = '50' AND session_id = '814317e421b97640daee6afc68' AND product_id = '481' in /home/example/domains/example.com/public_html/system/library/db/mysqli.php:40 Stack trace: #0 /home/example/domains/example.com/public_html/system/storagee/modification/system/library/db.php(55): DB\MySQLi->query('UPDATE wst_cart...') #1 /home/example/domains/example.com/public_html/system/storagee/modification/system/library/cart/cart.php(296): DB->query('UPDATE wst_cart...') #2 /home/example/domains/example.com/public_html/system/storagee/modification/system/library/cart/cart.php(28): Cart\Cart->add('481', '1', Object(stdClass), '0') #3 /home/example/domains/example.com/ in /home/example/domains/example .com/public_html/system/library/db/mysqli.php on line 40
Selamlar,

Muhtemelen sepet ekleme kısmındaki kodlarda SQL sorunu var. İmzamdaki numaramıza yazabilirseniz yardımcı olabiliriz.