yodatriker Posted October 24, 2007 Posted October 24, 2007 i have a problem and have tried the solutions mentioned here in the tips section I have fixed part of the problem I have edited both files the one in admin and the one in the catalogue but there is still a small problem I can now see the new products but the the listing is still in minus figures and i get the error Warning: Division by zero in /home/thegrssc/public_html/includes/classes/split_page_results.php on line 59 at the top of the page it can be viewed Here any help would be greatly appreciated Mark
Guest Posted October 24, 2007 Posted October 24, 2007 i have a problem and have tried the solutions mentioned here in the tips section I have fixed part of the problem I have edited both files the one in admin and the one in the cataloguebut there is still a small problem I can now see the new products but the the listing is still in minus figures and i get the error Warning: Division by zero in /home/thegrssc/public_html/includes/classes/split_page_results.php on line 59 at the top of the page it can be viewed Here any help would be greatly appreciated Mark It looks like you might have one of your admin settings to 0. Check out the admin side for Max_rows and see if it's set to 0. If it is, set it to 1 or higher.
yodatriker Posted October 24, 2007 Author Posted October 24, 2007 It looks like you might have one of your admin settings to 0. Check out the admin side for Max_rows and see if it's set to 0. If it is, set it to 1 or higher. it is set to 1
germ Posted October 24, 2007 Posted October 24, 2007 split_page_results.php get's the value used as a passed variable from products_new.php Check your admin settings for New Products Listing (I think) on your Maximum Values page. Be sure it's not ZERO. If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
yodatriker Posted October 25, 2007 Author Posted October 25, 2007 split_page_results.php get's the value used as a passed variable from products_new.php Check your admin settings for New Products Listing (I think) on your Maximum Values page. Be sure it's not ZERO. Thats is brilliant, it has sorted my problem I cant thank you enough, it is much appreciated, its my first ever use of oscommerce and I hope to stumble through and hopefully learn enough to help someone else out here eventually Mark
mthierfelder Posted December 10, 2007 Posted December 10, 2007 Thats is brilliant, it has sorted my problemI cant thank you enough, it is much appreciated, its my first ever use of oscommerce and I hope to stumble through and hopefully learn enough to help someone else out here eventually Mark Perfect! That did the trick, so greatful for this forum you got me out of a jam. Installed Modules: Dynamenu, InfoBox Admin, Master Products v.1.2, Header Tags Controller, Multiple Products Manager, Quick Edit in Admin, Secure Admin, Ultimate SEO URL's, EZ Secure Order, Easy Populate v.2.76d MS2, AuthorizeNet_AIM, ChangeFinal Breadcrumb Title, FedEx Labels, Fedex Direct 2.06, How Did you Hear 1.5, Login a la Amazon, UPS XML 1.2.4, USPS Labels, USPS Methods API MS2
bw92116 Posted January 26, 2008 Posted January 26, 2008 Another possible solution to some of these problems is to check your values in the "Maximum Values" area of the Admin - Configuration panel. I was getting a "divide by zero" error on the account_history page, and I checked the Configurations settings, and the Order History was set to 0. I changed it to 10, and that got rid of that error. So if you are experiencing any of these errors, particularly a "divide by zero" error, try going to Admin > Configuration > Maximum values, and see if the value associated with the trouble you are having is set to 0. Try setting it to something else and see if that clears up the problem.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.