Site maintenance: Sun 15 Nov, from 20:00 UTC, about 4–6 hours. Details

This cutover relies on some testing that is still incomplete so may be cancelled at short notice

Forums / All Other Contributions/Addons / Division by zero in functions_general.php using Easy Populate Advanced

Division by zero in functions_general.php using Easy Populate Advanced

Locked

Started by smoke133 on 20 May 2008, 5:53 PM · Views: 1,235

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
20 May 2008, 5:53 PM
#1
smoke133 avatar

smoke133

Zen Follower

Join Date:
Jul 2007
Location:
Roseville, Michigan
Posts:
188
Plugin Contributions:
0

Division by zero in functions_general.php using Easy Populate Advanced

I have zencart 1.3.8a loaded and I was using the "Debug Error Logging Utility" and I have been using "Easy Populate Advanced 3.0.3". I keep getting this error code in my cache folder that says "PHP Warning: Division by zero in ../includes/functions/functions_general.php on line 1339". Why am I getting this code?:dontgetit

https://www.jhelectronics.com
Using Zencart 1.3.9h

20 May 2008, 6:10 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Division by zero in functions_general.php using Easy Populate Advanced

Does this happen only when using EasyPopulate?

What other addons do you have installed?
What specific activity causes the error to be logged?

Technically, whatever's causing that error is trying to call the fmod_round() function, but is passing a 0 in the second value, causing the division by zero error.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

20 May 2008, 6:22 PM
#3
smoke133 avatar

smoke133

Zen Follower

Join Date:
Jul 2007
Location:
Roseville, Michigan
Posts:
188
Plugin Contributions:
0

Re: Division by zero in functions_general.php using Easy Populate Advanced

Yes, it only happens in Easy Populate Advanced.

https://www.jhelectronics.com
Using Zencart 1.3.9h

20 May 2008, 8:36 PM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Division by zero in functions_general.php using Easy Populate Advanced

smoke133:

Yes, it only happens in Easy Populate Advanced.

I've moved this thread to the Contributions area, as it's not a bug-report about Zen Cart itself.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.