News:

AbanteCart v1.4.2 is released.

Main Menu

DB error in product.php

Started by jetman, December 28, 2016, 01:38:03 AM

Previous topic - Next topic

jetman

php 7.0.13
10.1.14-MariaDB
driver: amysqli
litespeed

Clicking on a product with an option in the cart, the resulting product page returns with this error:

2016-12-27 21:32:02 - database error: AbanteCart core v.1.2.9 SQL Error: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ':70968c2523c4ae41441b8df13a2c9231)
AND customer_group_id = '1'
AND' at line 3
Error No: 1064
SQL: SELECT product_id, price
FROM product_specials
WHERE product_id IN (1975:70968c2523c4ae41441b8df13a2c9231)
AND customer_group_id = '1'
AND ((date_start = '0000-00-00' OR date_start < NOW())
AND (date_end = '0000-00-00' OR date_end > NOW()))
ORDER BY product_id ASC, priority ASC, price ASC in <b>/home/***/public_html/core/database/amysqli.php</b> on line <b>108</b>

I am unable reproduce the error on the demo store and I replaced the core/storefront with a fresh copy but I am still getting this error. I like to know why abantecart is not removing ":70968c2523c4ae41441b8df13a2c9231"

Any ideas?

Jason

abolabo

try to replace your file public_html/storefront/model/catalog/product.php with attached and let us know
"No one is useless in this world who lightens the burdens of another."
― Charles Dickens

jetman

Thank you. It works perfectly  :)

Forum Rules Code of conduct
AbanteCart.com 2010 -