Results 1 to 4 of 4
  1. #1
    Join Date
    Dec 2006
    Location
    Summer:Ontaio, Winter:Texas
    Posts
    211
    Plugin Contributions
    0

    Default Warning: Division by zero ..split_page_results.php on line 76

    Warning: Division by zero in /var/www/aaa/xxx.com/docs/yyy/includes/classes/split_page_results.php on line 76

    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 10
    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 FROM Clive_products p LEFT JOIN Clive_manufacturers m ON (p.manufacturers_id = m.manufacturers_id), Clive_products_description pd WHERE p.products_status = 1 AND p.products_id = pd.products_id AND pd.language_id = 1 order by p.products_date_added DESC, pd.products_name limit -0, 0]

    I get the above error on a test site (test.pridepak.com/Clive) when you click the link for new products. The only change made in config/new listing is that I put "0" for weight. i have not work on it for a while, so there are no "new" products, but that should not give me an error like this, right?

    Server info:

    Server OS: Linux x2web04.myhosting.com 2.6.18-3-686 #1 SMP Mon Dec 4 16:41:14 UTC 2006 i686
    PHP Version: 5.1.6 (Zend: 2.1.0)
    Apache 2.0 Handler
    Zen Cart 1.3.7
    Database Patch Level: 1.3.7

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

    Default Re: Warning: Division by zero ..split_page_results.php on line 76

    Check your Maximum Values ... sounds like you set some to 0 ...
    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!]
    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
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Warning: Division by zero ..split_page_results.php on line 76

    Most likely it is this setting:
    New Products Listing- Number Per Page
    Number of new products' listings per page
    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!]
    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
    Dec 2006
    Location
    Summer:Ontaio, Winter:Texas
    Posts
    211
    Plugin Contributions
    0

    Default Re: Warning: Division by zero ..split_page_results.php on line 76

    Quote Originally Posted by Ajeh View Post
    Most likely it is this setting:
    Yes, thank you! I had Number per page 0 and Limit New to 0

 

 

Similar Threads

  1. v154 PHP Warning: Division by zero header_php_review.php
    By cyberfolli in forum General Questions
    Replies: 5
    Last Post: 15 Oct 2015, 02:53 PM
  2. v151 PHP Warning: Division by zero in public_html/store/includes/classes/c
    By lilly06 in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 2
    Last Post: 27 Sep 2013, 06:29 PM
  3. Warning: Division by zero in attributes_controller.php
    By Snicklefritz in forum Setting Up Categories, Products, Attributes
    Replies: 14
    Last Post: 12 May 2010, 04:19 PM
  4. Warning: Division by zero in /includes/classes/shipping.php on line 94
    By keycraze in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 21 Sep 2008, 09:40 PM
  5. division by zero warning on line 57 when setting up shipping rates
    By amacole in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 20 Feb 2008, 03:44 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