willross Posted December 26, 2004 Posted December 26, 2004 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 ··········
OceanRanch Posted December 26, 2004 Posted December 26, 2004 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
willross Posted December 26, 2004 Author Posted December 26, 2004 It happens when using the 'Add a Printable Catalog' contribution. http://www.oscommerce.com/community/contributions,815 I am currently hiding the error with <font> tags, but want to solve it. Thanks. · willross ··········
OceanRanch Posted December 26, 2004 Posted December 26, 2004 Check admin=>configuration->maximum values->search results Make sure its not zero. Also, see the following http://www.oscommerce.com/forums/index.php?showtopic=29444&st=40 by sbullo with same problem. HTH Tom
willross Posted December 27, 2004 Author Posted December 27, 2004 I am wondering if I could put: $this->number_of_rows_per_page = 10; in the page to override the 'split_page_results.php' page for this page only? · willross ··········
OceanRanch Posted December 27, 2004 Posted December 27, 2004 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
willross Posted December 27, 2004 Author Posted December 27, 2004 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 ··········
Dehaw Posted December 28, 2004 Posted December 28, 2004 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!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.