Results 1 to 8 of 8
  1. #1
    Join Date
    Jan 2010
    Posts
    96
    Plugin Contributions
    0

    red flag New Products has SQL error message

    On my website when you click on "New Products" I get this message

    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 11
    in:
    its goes on with more info but is this an easy fix somewhere?

  2. #2
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,263
    Plugin Contributions
    3

    Default Re: New Products has SQL error message

    We actually need the "more info"... how else can we see where the error lies?
    20 years a Zencart User

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

    Default Re: New Products has SQL error message

    Sounds like a Maximum Value setting set to 0 but that is just a guess as there isn't enough information, as schoolboy has pointed out ...
    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
    Jan 2010
    Posts
    96
    Plugin Contributions
    0

    Default Re: New Products has SQL error message

    Quote Originally Posted by Ajeh View Post
    Sounds like a Maximum Value setting set to 0 but that is just a guess as there isn't enough information, as schoolboy has pointed out ...

    You were right thank you
    I had it set to 0 so i switched it to 7 days

  5. #5
    Join Date
    Jan 2010
    Posts
    96
    Plugin Contributions
    0

    Default Re: New Products has SQL error message

    ok I did the switch but that didnt work
    Still getting 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 '-0, 0' at line 11
    in:
    [SELECT p.products_id, p.products_type, pd.products_name, p.products_image, p.products_price, p.products_tax_class_id, p.products_date_added, m.manufacturers_name, p.products_model, p.products_quantity, p.products_weight, p.product_is_call, p.product_is_always_free_shipping, p.products_qty_box_status, p.master_categories_id FROM zen_products p LEFT JOIN zen_manufacturers m ON (p.manufacturers_id = m.manufacturers_id), zen_products_description pd WHERE p.products_status = 1 AND p.products_id = pd.products_id AND pd.language_id = 1 and p.products_date_added >=20100615 order by p.products_date_added DESC, pd.products_name limit -0, 0]

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

    Default Re: New Products has SQL error message

    Check the other Maximum Values for anything related to New ... a search on NEW will help you find them ...
    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!

  7. #7
    Join Date
    Jan 2010
    Posts
    96
    Plugin Contributions
    0

    Default Re: New Products has SQL error message

    it worked thank you so much
    I had to edit the Maximum values "New Products Page - Number per Pge" it was set to zero

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

    Default Re: New Products has SQL error message

    Thanks for the update that fixing the Maximum Values on the New Products resolved the error on division by zero ...
    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!

 

 

Similar Threads

  1. v151 Youtube video to products gives error message when uploading sql....
    By huntleybill in forum All Other Contributions/Addons
    Replies: 3
    Last Post: 15 Jul 2014, 10:35 PM
  2. Replies: 6
    Last Post: 1 Oct 2011, 03:16 PM
  3. [Done v1.3.9a] New Products... results in SQL Error
    By llemberg in forum Bug Reports
    Replies: 6
    Last Post: 5 Dec 2009, 05:43 PM
  4. New Products SQL Error
    By bettysue in forum General Questions
    Replies: 10
    Last Post: 16 Oct 2009, 04:04 PM
  5. home > new products get SQL error
    By keylesslocks in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 20 Oct 2008, 09:57 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