Results 1 to 9 of 9
  1. #1
    Join Date
    Jun 2011
    Posts
    7
    Plugin Contributions
    0

    Default 1064 You have an error in your SQL syntax; check the manual that corresponds to your

    Hi,

    There is an error that causes the shopping cart [Zen Cart 1.3.8a] to not function at all.
    The Add To Cart button is gone, and when clicking on View Shopping Cart, this shows:

    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 6
    in:
    [select p.products_id, pd.products_name, products_date_available as date_expected, p.master_categories_id from products p, products_description pd where p.products_id = pd.products_id and p.products_status = 1 and pd.language_id = '1' and p.products_date_available >20110620235959 order by date_expected desc limit ]


    Please help.


    Regards,

    Masha

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: 1064 You have an error in your SQL syntax; check the manual that corresponds to y

    Have you checked the similar threads at the bottom of this post?
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Jan 2004
    Posts
    66,440
    Plugin Contributions
    279

    Default Re: 1064 You have an error in your SQL syntax; check the manual that corresponds to y

    As kobra said, your question is likely answered in the other threads on the same topic. The first one listed below contains the solution that likely fits your case: http://www.zen-cart.com/forum/showthread.php?t=178145
    .

    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. #4
    Join Date
    Jun 2011
    Posts
    7
    Plugin Contributions
    0

    Default Re: 1064 You have an error in your SQL syntax; check the manual that corresponds to y

    I've looked at the admin > conf. > max. val. ... and have no idea what you're talking about. What I have set to 0 means that it's off and not a numerical value.

    Please give other suggestions.

    Thanx

  5. #5
    Join Date
    Jan 2004
    Posts
    66,440
    Plugin Contributions
    279

    Default Re: 1064 You have an error in your SQL syntax; check the manual that corresponds to y

    What have you set to 0? And what is set to blank?

    I suspect you've got the "Upcoming products" set to blank, which would cause the symptoms you describe.
    .

    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.

  6. #6
    Join Date
    Jun 2011
    Posts
    7
    Plugin Contributions
    0

    Default Re: 1064 You have an error in your SQL syntax; check the manual that corresponds to y

    What number should I set the upcoming products to?

  7. #7
    Join Date
    Jun 2011
    Posts
    7
    Plugin Contributions
    0

    Default Re: 1064 You have an error in your SQL syntax; check the manual that corresponds to y

    Thank you, the error disappeared after I put a number on the Upcoming Products.

    However, the button Add To Cart is still gone. Now, it just shows Contact Us.

    What should I do?
    Last edited by Masha; 28 Jun 2011 at 12:35 AM.

  8. #8
    Join Date
    Jan 2004
    Posts
    66,440
    Plugin Contributions
    279

    Default Re: 1064 You have an error in your SQL syntax; check the manual that corresponds to y

    If you've set your store into showcase mode, then it will not offer any add-to-cart buttons; instead, it offers Contact Us.
    And if you've set your individual products as "Call for Price", it will display a Contact Us button instead of add-to-cart.
    .

    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.

  9. #9
    Join Date
    Jun 2011
    Posts
    7
    Plugin Contributions
    0

    Default Re: 1064 You have an error in your SQL syntax; check the manual that corresponds to y

    Thank you! Thank you! Thank you! We're back in business!
    Dr.Byte, you are the best!

    Sincerely,
    Masha

 

 

Similar Threads

  1. Replies: 1
    Last Post: 2 Dec 2011, 07:22 AM
  2. 1064 You have an error in your SQL syntax;
    By limelites in forum General Questions
    Replies: 6
    Last Post: 10 Jun 2009, 07:35 PM
  3. 1064 You have an error in your SQL syntax
    By phastings in forum General Questions
    Replies: 1
    Last Post: 18 Dec 2008, 06:12 AM
  4. 1064 You have an error in your SQL syntax;
    By fried83 in forum Bug Reports
    Replies: 5
    Last Post: 15 Aug 2007, 11:51 PM
  5. 1064 You have an error in your SQL syntax
    By yd29999 in forum Installing on a Windows Server
    Replies: 8
    Last Post: 2 Mar 2007, 05:47 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