Results 1 to 5 of 5
  1. #1
    Join Date
    Jun 2007
    Posts
    60
    Plugin Contributions
    0

    Default Search Results in Division by Zero Error

    Whenever one does a search they get:

    Warning: Division by zero in /home/egysing/public_html/includes/modules/pages/advanced_search_result/header_php.php on line 353

    Warning: Division by zero in /home/egysing/public_html/includes/modules/pages/advanced_search_result/header_php.php on line 354

    I checked my Maximum values in my store's configuration and there was one that was set to zero but I changed that to a two. Still getting the error. Is there somewhere else I should be looking for this cause? Thanks!

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

    Default Re: Search Results in Division by Zero Error

    What are your currency settings?

    Do you have your default currency set to a value of 1?

    Have you an URL to your site where we can see 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
    Jun 2007
    Posts
    60
    Plugin Contributions
    0

    Default Re: Search Results in Division by Zero Error

    Ajeh, thanks for the very quick response!!!

    You pegged it! I had the default currency set to 0.00 because I wasn't sure about the exchange rate, if any. On pg. 99 of the manual, it says that I can leave it blank but if you did that you will get the exact same error.

    So, I gave it a value of 1.00 and it works out great. Thanks again for narrowing it down!

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

    Default Re: Search Results in Division by Zero Error

    Sometimes I scare myself ...

    Glad that this was able to work for you and thanks for posting back that is was the solution ...
    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
    Jun 2007
    Posts
    60
    Plugin Contributions
    0

    Default Re: Search Results in Division by Zero Error

    Quote Originally Posted by Ajeh View Post
    Glad that this was able to work for you and thanks for posting back that is was the solution ...

    You're welcome! I hate reading threads that seem to end up with no solution when the original poster had actually fixed the problem. It's a lot simpler for everyone else later on to see what the actual solution was if they do a "search".

 

 

Similar Threads

  1. Division by Zero error
    By sinecurea in forum General Questions
    Replies: 4
    Last Post: 11 Sep 2007, 05:23 PM
  2. help, please! - split-page-results error division by zero
    By vibehappy in forum Customization from the Admin
    Replies: 10
    Last Post: 17 Jul 2007, 11:17 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