Results 1 to 5 of 5
  1. #1
    Join Date
    May 2009
    Posts
    413
    Plugin Contributions
    0

    red flag Admin>Tools>Admin Settings = '1064 You have an error in your SQL syntax;'

    Hi,

    When I go to 'Admin>Tools>Admin Settings' I get the following 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 '-0, 0' at line 1
    in:
    [select admin_id, admin_name, admin_email, admin_pass, admin_level from admin order by admin_name limit -0, 0]
    If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.


    I'm using ZC v1.3.9f - PHP v5.3.1 - MySQL v5.0.91-community

    Anyone have any ideas what could cause this error message?

    Thanks.

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

    Default Re: Admin>Tools>Admin Settings = '1064 You have an error in your SQL syntax;'

    Check the Configuration ... Maximum Values ... and see what the setting is for:
    Search Results Per Page

    The default is 20 ...

    If set to 0, you will get errors like this ...
    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!

  3. #3
    Join Date
    May 2009
    Posts
    413
    Plugin Contributions
    0

    Default Re: Admin>Tools>Admin Settings = '1064 You have an error in your SQL syntax;'

    Thanks Linda,

    Yep that did it

    I changed that setting a few days ago as I wanted to show all the search results on a single page, also I want to show all the products in a category (i.e Product Listing) on the same page as well. What would be the correct setting to achieve this, without causing such errors?

    Thanks

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

    Default Re: Admin>Tools>Admin Settings = '1064 You have an error in your SQL syntax;'

    A really big number ...
    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!

  5. #5
    Join Date
    May 2009
    Posts
    413
    Plugin Contributions
    0

    Default Re: Admin>Tools>Admin Settings = '1064 You have an error in your SQL syntax;'

    Quote Originally Posted by Ajeh View Post
    A really big number ...
    Haha lol, got ya

    Thanks Linda

 

 

Similar Threads

  1. v139h 1064 You have an error in your SQL syntax;
    By alwaysanirudh in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 11 Oct 2012, 04:13 PM
  2. 1064 You have an error in your SQL syntax;
    By larryr99 in forum General Questions
    Replies: 1
    Last Post: 14 Apr 2011, 07:11 AM
  3. Coupon Admin - 1064 You have an error in your SQL syntax
    By tobindonal in forum General Questions
    Replies: 2
    Last Post: 2 Nov 2010, 12:28 AM
  4. Replies: 2
    Last Post: 13 Sep 2009, 04:33 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