Results 1 to 7 of 7
  1. #1
    Join Date
    Apr 2011
    Location
    Saginaw, MI
    Posts
    13
    Plugin Contributions
    0

    database error How do I fix SQL syntax error 1064 New Products, Featured, et al...

    I am relatively new to ZenCart (v. 1.3.9b), but that hasn't stopped me from customizing and making changes to code here and there. However, I wanted to fix the fact that disabled products were showing up in the New Products boxes, and I did something horribly wrong.

    Instead of New Products, Featured products, etc.. I get this error message:

    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 ')' at line 7
    in:
    [select distinct p.products_id, p.products_image, p.products_tax_class_id, pd.products_name, p.products_date_added, p.products_price, p.products_type, p.master_categories_id from zen_products p, zen_products_description pd where p.products_id = pd.products_id and pd.language_id = '1' and p.products_status = 1 and p.products_id in ()]


    See it here: http://spartanpools.com/



    I've tried replacing both New_Products.php and Featured_Products.php with original files, but I may have done something elsewhere in a fugue state of coding. Shame on me. Please help!

  2. #2
    Join Date
    Apr 2011
    Location
    Saginaw, MI
    Posts
    13
    Plugin Contributions
    0

    Default Re: How do I fix SQL syntax error 1064 New Products, Featured, et al...

    I can't stand having that error message on my main page! I disabled the New and featured Products in Config > Index Listing. You can still see the error message here: http://spartanpools.com/main-access-m-31.html all the way at the bottom of the page.

    Also, for whatever reason, the sideboxes don't show up on pages displaying the error.
    Dan Kettler
    http://spartanpools.com
    "Not Penny's Boat!"

  3. #3
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: How do I fix SQL syntax error 1064 New Products, Featured, et al...

    What happens if you turn off the SEO/rewrites ... does it change anything?
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  4. #4
    Join Date
    Apr 2011
    Location
    Saginaw, MI
    Posts
    13
    Plugin Contributions
    0

    Default Re: How do I fix SQL syntax error 1064 New Products, Featured, et al...

    I changed SEO URLs to false and still no dice.
    However, I only get the error when "Show New Products on Main Page" is enabled.
    Interesting, but i always get the error on the Manufacturer's page and on Cart is Empty page.
    Dan Kettler
    http://spartanpools.com
    "Not Penny's Boat!"

  5. #5
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: How do I fix SQL syntax error 1064 New Products, Featured, et al...

    You might try upgrading to v1.3.9h and see if in the processes this resolves the error ...

    Do you have any Categories with both Products and Categories in it?
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  6. #6
    Join Date
    Apr 2011
    Location
    Saginaw, MI
    Posts
    13
    Plugin Contributions
    0

    Default Re: How do I fix SQL syntax error 1064 New Products, Featured, et al...

    I was told not to upgrade. That it could cause conflict in some of the files. So, I'm nervous about trying that.

    Do you have any Categories with both Products and Categories in it?
    Maybe. I should know this, right? I'll check.
    Dan Kettler
    http://spartanpools.com
    "Not Penny's Boat!"

  7. #7
    Join Date
    Apr 2011
    Location
    Saginaw, MI
    Posts
    13
    Plugin Contributions
    0

    Default Re: How do I fix SQL syntax error 1064 New Products, Featured, et al...

    Zencart doesn't allow me to enter products in a category page, and vice versa.
    Dan Kettler
    http://spartanpools.com
    "Not Penny's Boat!"

 

 

Similar Threads

  1. v138a 1064 Error in SQL Syntax - old v.1.3.8 on new MySQL
    By Chasel in forum Installing on a Windows Server
    Replies: 3
    Last Post: 18 Aug 2012, 07:36 PM
  2. Replies: 1
    Last Post: 25 Aug 2011, 05:58 AM
  3. 1064 SQL error on Featured Products page
    By stevelucky in forum General Questions
    Replies: 5
    Last Post: 24 Sep 2010, 01:15 PM
  4. Error with new install 1.3.9d 1064 error in SQL syntax
    By Joseph M in forum Installing on a Linux/Unix Server
    Replies: 21
    Last Post: 28 Jun 2010, 06:36 PM
  5. Replies: 2
    Last Post: 16 Sep 2009, 06:15 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