Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Warning: Division by zero in /includes/classes/shipping.php on line 94

Warning: Division by zero in /includes/classes/shipping.php on line 94

Locked

Views: 3,483

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
21 Sep 2008, 6:23 PM
#1
keycraze avatar

keycraze

New Zenner

Join Date:
May 2007
Posts:
10
Plugin Contributions:
0

Warning: Division by zero in /includes/classes/shipping.php on line 94

on my website when customer tries to check out, two errors comes:

Warning: Division by zero in /includes/classes/shipping.php on line 94

Warning: Division by zero in /includes/classes/shipping.php on line 95

this is what is in my file on 94 and 95

93 if ($shipping_weight > SHIPPING_MAX_WEIGHT) { // Split into many boxes
94 $shipping_num_boxes = 0; ceil($shipping_weight/SHIPPING_MAX_WEIGHT);
95 $shipping_weight = 0; $shipping_weight/$shipping_num_boxes;
96 }

Please let me know what i'm doing wrong?

Thanks

21 Sep 2008, 7:11 PM
#2
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,611
Plugin Contributions:
0

Re: Warning: Division by zero in /includes/classes/shipping.php on line 94

What do you have for the settings in Admin> Configuration> Shipping and Packaging?

21 Sep 2008, 7:14 PM
#3
keycraze avatar

keycraze

New Zenner

Join Date:
May 2007
Posts:
10
Plugin Contributions:
0

Re: Warning: Division by zero in /includes/classes/shipping.php on line 94

http://gholiakhurd.com/shipping i have added the snap shot of the picture

21 Sep 2008, 7:15 PM
#4
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,611
Plugin Contributions:
0

Re: Warning: Division by zero in /includes/classes/shipping.php on line 94

If your Maximum weight is 0 - you can not ship anything larger than that ...

21 Sep 2008, 7:17 PM
#5
keycraze avatar

keycraze

New Zenner

Join Date:
May 2007
Posts:
10
Plugin Contributions:
0

Re: Warning: Division by zero in /includes/classes/shipping.php on line 94

what should i put then?

21 Sep 2008, 7:19 PM
#6
keycraze avatar

keycraze

New Zenner

Join Date:
May 2007
Posts:
10
Plugin Contributions:
0

Re: Warning: Division by zero in /includes/classes/shipping.php on line 94

i updated to 1. and it works great now.

i also have another problem:

I have a floating glass cart on my website and customers are complaining that when they add items to the cart and then go help customers or they go to lunch time and when they come back after 1 hour, cart goes empty. please help. i need my session to be like like 1 day or something.

21 Sep 2008, 7:45 PM
#7
keycraze avatar

keycraze

New Zenner

Join Date:
May 2007
Posts:
10
Plugin Contributions:
0

Re: Warning: Division by zero in /includes/classes/shipping.php on line 94

i am still getting that same message:

Step 1 of 3 - Delivery Information : Zen Cart!, The Art of E-commerceWarning: Division by zero in /html/includes/classes/shipping.php on line 94

Warning: Division by zero in /html/includes/classes/shipping.php on line 95

Here is what i have in my Admin:

When i try to go to page 2 of 3, i get this messag:

Warning: Division by zero in /html/includes/classes/shipping.php on line 94

Warning: Division by zero in /html/includes/classes/shipping.php on line 95

Warning: Cannot modify header information - headers already sent by (output started at /html/includes/classes/shipping.php:94) in /html/includes/functions/functions_general.php on line **44

Here is what i got in my Amin:

http://gholiakhurd.com/shipping1

**[IMG]http://www.zen-cart.com/forum/images/icon_info.gif[/IMG]

21 Sep 2008, 8:40 PM
#8
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,611
Plugin Contributions:
0

Re: Warning: Division by zero in /includes/classes/shipping.php on line 94

Your maximum shipping weight needs to be a much larger number - it is usually something like 50 to 75 pounds - Check with your shipping company to find out what the largest single box they will accept is.

Your other issue with timing out is off topic for this thread.