Forums / Templates, Stylesheets, Page Layout / Search Results in Division by Zero Error

Search Results in Division by Zero Error

Locked

Views: 1,055

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
8 Jul 2007, 12:17 PM
#1
ironmac avatar

ironmac

New Zenner

Join Date:
Jun 2007
Posts:
60
Plugin Contributions:
0

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!

8 Jul 2007, 3:45 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

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!]
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!

8 Jul 2007, 4:44 PM
#3
ironmac avatar

ironmac

New Zenner

Join Date:
Jun 2007
Posts:
60
Plugin Contributions:
0

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! :clap:

8 Jul 2007, 4:45 PM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Search Results in Division by Zero Error

Sometimes I scare myself ... :eek:

Glad that this was able to work for you and thanks for posting back that is was the solution ... :smile:

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!

8 Jul 2007, 4:56 PM
#5
ironmac avatar

ironmac

New Zenner

Join Date:
Jun 2007
Posts:
60
Plugin Contributions:
0

Re: Search Results in Division by Zero Error

Ajeh:

Glad that this was able to work for you and thanks for posting back that is was the solution ... :smile:

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".