Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Division by zero error


Recommended Posts

If someone wants to view previous orders, they get this error message:



Warning: Division by zero in /users1/b/bitebuster.com-77375/public_html/catalog/includes/classes/split_page_results.php on line 59


This is line 59 of the page it is referencing:


$this->number_of_pages = ceil($this->number_of_rows / $this->number_of_rows_per_page);



I haven't gotten any help with figuring it out, and I would hate to do it, but can I somehow comment out the section that shows the history of your orders? I only get this error when someone looks at their order history.




Link to comment
Share on other sites

Don't throw out the baby with the bathwater - it's a simple fix.


Just set your MAX_DISPLAY_ORDER_HISTORY value in Admin to something like "10" - it's probably blank or 0 at the moment.


I think in the stock installation it's the last option on the "maximum values" section

Link to comment
Share on other sites


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

  • Create New...