Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Warning: Division by zero


willross

Recommended Posts

Posted

This is the error I get:

 

Warning: Division by zero in /home/shopping/public_html/shop/includes/classes/split_page_results.php on line 59

 

Any way to edit this?

· willross

··········

Posted

This function is used in a lot of page displays, what were you doing at the time?

 

Normally, this will occur when you have a setting of 0 in one of the admin->configuration minimum/maximum settings.

 

Tom

Posted

I guess you could use $PHP_SELF and check for the contribution name that you are using.

 

Or just set it to 10 and live with it in other displays. However this all seems like hacks, there must be a bug somewhere. But if it works for you just go for it.

 

Good Luck

Tom

Posted

You are right. I will hide the php error for now, but look for the bug. This is a decent contribution. I am also trying to de-bug a couple of pdf generaors too.

· willross

··········

Posted

Hi,

 

I just had the same problem with m y guestbook. What i did is dropped the database tables and reinstalled the tables again and it all worked fine.

 

Try reinstalling the database tables, it worked for me!

Archived

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

×
×
  • Create New...