Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

What does this ERROR message mean? [b]Division by zero[/b]


aycaaydin

Recommended Posts

:( I tried everything I know to fix this problem but noting works .

I order something from my shop, then I log in, and when I press the check out button a message appears on top of the page:

 

Warning: Division by zero in /home/artworx/public_html/catalog/includes/classes/shipping.php on line 61

 

Warning: Division by zero in /home/artworx/public_html/catalog/includes/classes/shipping.php on line 62

 

I reaaly don't know what to do, and will start crying now !!!

 

Please help me...

Thanks

Link to comment
Share on other sites

The code for the lines you refer to are:

 

$shipping_num_boxes = ceil($shipping_weight/SHIPPING_MAX_WEIGHT);

$shipping_weight = $shipping_weight/$shipping_num_boxes;

 

You must have values of zero for

 

SHIPPING_MAX_WEIGHT and

$shipping_num_boxes

 

why and how mI don't know but you can't divide by zero, it's a math rule.

 

Try and check your shipping admin

 

Roger

facts invariably distort the truth

Link to comment
Share on other sites

thanks, you are right but now another problem occured. I will get crazy.

 

now the page looks ok and there is no error message. But when O click to continue, the pages returns to itself . I tried again and again but it is always to same. ı can not reach the 2nd step.

 

what do you think the problem can be? I checked everything at the admin area this time??

 

thanks

Link to comment
Share on other sites

ok. I am sending the address but I'm not sure if you can understand because it's translated to Turkish. but I hope you will !!

 

 

the problem exactly occures while trying to get to the 2nd. payment process step.

 

URL : http://www.artworx-design.com

try the only and the one product on the left please. :))

 

if neede I can also give you the admin address and the password. It is in English !!!

 

thanks thanks thanks !!!!!![/url]

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...