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

Posted

:( 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

Posted

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

Posted

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

Posted

If your site is on a webserver ratherv than you local machine, post the URL so we can see what you can see :)

 

roger

facts invariably distort the truth

Posted

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]

Archived

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

×
×
  • Create New...