Author Topic: DB error in product.php  (Read 9440 times)

Offline jetman

  • Newbie
  • *
  • Posts: 17
  • Karma: +3/-0
    • View Profile
DB error in product.php
« on: December 28, 2016, 01:38:03 AM »
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
« Last Edit: December 28, 2016, 03:16:33 AM by jetman »

Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2174
  • Karma: +345/-13
  • web for all, all for web!
    • View Profile
    • AbanteCart
Re: DB error in product.php
« Reply #1 on: December 28, 2016, 09:14:11 AM »
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

Offline jetman

  • Newbie
  • *
  • Posts: 17
  • Karma: +3/-0
    • View Profile
Re: DB error in product.php
« Reply #2 on: December 28, 2016, 01:00:26 PM »
Thank you. It works perfectly  :)

 

Powered by SMFPacks Social Login Mod