Forums / All Other Contributions/Addons / Sql Error Code 1064 - SELECT ratio FROM zen_sc_products_ratio (Store Credit mod)

Sql Error Code 1064 - SELECT ratio FROM zen_sc_products_ratio (Store Credit mod)

Locked

Views: 1,674

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
20 Mar 2008, 2:41 PM
#1
ejw avatar

ejw

New Zenner

Join Date:
Mar 2008
Posts:
7
Plugin Contributions:
0

Sql Error Code 1064 - SELECT ratio FROM zen_sc_products_ratio (Store Credit mod)

Hi guys I'm using Zen Cart 1.3.8a
Database Patch Level: 1.3.8 when I check out with a test order I get the following error

1064 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 ':c67a93707abd36d886c00bda2ad5b9cf LIMIT 1' at line 1
in:
[SELECT ratio FROM zen_sc_products_ratio WHERE products_id=1:c67a93707abd36d886c00bda2ad5b9cf LIMIT 1]

I have the product set to

Product Qty Minimum: 1
Product Qty Maximum: 0 0 = Unlimited, 1 = No Qty Boxes
Product Qty Units: 1
Product Qty Min/Unit Mix No

Please Help.:frusty:

20 Mar 2008, 2:56 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: Sql Error Code 1064 - SELECT ratio FROM zen_sc_products_ratio (Store Credit mod)

Sounds like a bug in whatever addon you've installed that created/uses the sc_products_ratio table.
The addon is trying to treat non-numeric data as a number.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

20 Mar 2008, 3:31 PM
#3
ejw avatar

ejw

New Zenner

Join Date:
Mar 2008
Posts:
7
Plugin Contributions:
0

Re: Sql Error Code 1064 - SELECT ratio FROM zen_sc_products_ratio (Store Credit mod)

Thanks I think it is the store credit mod:D