Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2008
    Posts
    7
    Plugin Contributions
    0

    Default 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.

  2. #2
    Join Date
    Jan 2004
    Posts
    66,380
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Sql Error Code 1064 - SELECT ratio FROM zen_sc_products_ratio

    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.

  3. #3
    Join Date
    Mar 2008
    Posts
    7
    Plugin Contributions
    0

    Default Re: Sql Error Code 1064 - SELECT ratio FROM zen_sc_products_ratio

    Thanks I think it is the store credit mod

 

 

Similar Threads

  1. 1064 sql error from mod in split_page_results.php ?
    By bonnit in forum Basic Configuration
    Replies: 2
    Last Post: 9 Aug 2011, 05:13 PM
  2. 1064 SQL Syntax error when upgrading database from 1.3.8 to 1.3.9
    By pioupioun in forum Upgrading from 1.3.x to 1.3.9
    Replies: 5
    Last Post: 23 Aug 2010, 06:26 AM
  3. Product Select SQL Code
    By gregger in forum General Questions
    Replies: 2
    Last Post: 30 Jul 2010, 11:50 AM
  4. Replies: 1
    Last Post: 30 Jun 2010, 07:52 PM
  5. Replies: 2
    Last Post: 3 Jul 2007, 06:39 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR