Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16
  1. #11
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: SQL Error 1064??

    So, switching templates gets rid of the error.

    That means something in one or more of your override files is causing the problem.

    What files do you have in your /includes/modules/YOUR_CUSTOM_TEMPLATE/ folder?
    .

    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.

  2. #12
    Join Date
    Jul 2008
    Posts
    14
    Plugin Contributions
    0

    Default Re: SQL Error 1064??

    Hello, DrByte

    Help, I do not know what I do!

    Where does this look?


    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 13
    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 = '2' and p.products_status = 1 and p.products_id in ()]

    Tanks

  3. #13
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: SQL Error 1064??

    Quote Originally Posted by Zlink View Post
    Help, I do not know what I do!

    Where does this look?


    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 13
    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 = '2' and p.products_status = 1 and p.products_id in ()]

    Tanks
    That's a completely different situation, which should remain in the original discussion in which you started it: http://www.zen-cart.com/forum/showthread.php?t=103576
    .

    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.

  4. #14
    Join Date
    Feb 2008
    Location
    Inside my head.
    Posts
    55
    Plugin Contributions
    0

    Default Re: SQL Error 1064??

    The only file I have in there is the product_listing.php

    I've replaced that file with the original from the package that I downloaded - several times. I've also replaced the file product_listing.php with the original from the zen-cart download in the includes/modules/ directory as well.
    </Seth>

  5. #15
    Join Date
    Feb 2008
    Location
    Inside my head.
    Posts
    55
    Plugin Contributions
    0

    Default Re: SQL Error 1064??

    Well, I just went ahead and reinstalled the store to a new directory. For the moment it isn't broken and I have most of the store changed over already to look correctly. I have a new question that isn't related to this one. So I am going to make a new thread for it.

    Thank you so much for looking and trying to help me Dr. Byte. Your intelligence and usefulness is unmatched.

    If I ever have time to just mess around with some of the older directories and I figure out what it was that I did wrong I will make sure to come back to this forum and explain it to the best of my knowledge.

    Thanks again!
    </Seth>

  6. #16
    Join Date
    Feb 2008
    Location
    Inside my head.
    Posts
    55
    Plugin Contributions
    0

    Default Re: SQL Error 1064??

    I FIGURED IT OUT!

    Quite irritating because it was such an error that I never would have caught it intentionally.

    In the admin section under configuration->product listing -> Product Listing Columns Per Row - the maximum amount of products you can have is 10. I don't know why...because I wanted all my products to be able to display on one page...but you can't. So..I had it set to 75...and that was a LOT to high and broke the sql. I found it out on my 3rd remake of this website. Glad to have figured it out but irritating that it broke the website.

    Hope this will help someone else.

    Thanks to everyone that helped me out with this - or looked into it.
    </Seth>

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. Replies: 1
    Last Post: 25 Aug 2011, 05:58 AM
  2. Error message 1064 you have an error in your sql syntax
    By honrheart in forum General Questions
    Replies: 1
    Last Post: 11 Sep 2009, 02:38 AM
  3. SQL Error 1064?
    By niemie in forum General Questions
    Replies: 7
    Last Post: 2 Apr 2009, 09:35 PM
  4. SQL error 1064??
    By paperzombie in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 23 Jan 2008, 06:24 AM

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