kittidid Posted September 7, 2005 Share Posted September 7, 2005 I installed the ReviewsAvg mod and now my reviews page is not working when I click on the arrow in the heading in the left column. When I click on the partial review text link I get the reviews perfectly. It is just when I click on the arrow link in the heading is when I get the error. View page below, please. Reviews when heading arrow clicked and no reviews Any help out there? Kitti Link to comment Share on other sites More sharing options...
Guest Posted September 7, 2005 Share Posted September 7, 2005 Couple of things about the reviews and search I remember that could help: http://www.oscommerce.com/community/bugs,1605 http://www.oscommerce.com/forums/index.php?showtopic=166722 Link to comment Share on other sites More sharing options...
kittidid Posted September 9, 2005 Author Share Posted September 9, 2005 Couple of things about the reviews and search I remember that could help: http://www.oscommerce.com/community/bugs,1605 http://www.oscommerce.com/forums/index.php?showtopic=166722 <{POST_SNAPBACK}> Tried the two and it did not work. It is still the same error. Any suggestions? Kitti Link to comment Share on other sites More sharing options...
mushindo Posted September 9, 2005 Share Posted September 9, 2005 I ran across this error recently too. The fixes didnt seem to help me either. What did work though was creating a quick product review and it seemed to be fine then. I don't normally promote bogus reviews, but if it fixes the problem, go for it. Try it out and let me know how it works. Sincerely, Bruce 19 contributions submitted Link to comment Share on other sites More sharing options...
mushindo Posted September 9, 2005 Share Posted September 9, 2005 Well so much for that idea. I just tried adding a review into your site and it came back with same error messages :). I am out of ideas on this one. Sincerely, Bruce 19 contributions submitted Link to comment Share on other sites More sharing options...
Guest Posted September 9, 2005 Share Posted September 9, 2005 Well here is another thing. In your admin panel make sure the number of max reviews is not 0 admin->configuration->Maximum values->New Reviews Link to comment Share on other sites More sharing options...
Guest Posted September 10, 2005 Share Posted September 10, 2005 Well here is another thing. In your admin panel make sure the number of max reviews is not 0 admin->configuration->Maximum values->New Reviews <{POST_SNAPBACK}> This is the most likely cause - the result set is empty. You should have the following condition on your reviews page (the display code is within this): if ($reviews_split->number_of_rows > 0) { <your code> } This will prevent the division by zero error. Matti Link to comment Share on other sites More sharing options...
kittidid Posted September 11, 2005 Author Share Posted September 11, 2005 This is the most likely cause - the result set is empty. You should have the following condition on your reviews page (the display code is within this): if ($reviews_split->number_of_rows > 0) { <your code> } This will prevent the division by zero error. Matti <{POST_SNAPBACK}> Matti, That code already exists in catalog/reviews.php. as for changes the max reviews in the admin panel: admin->configuration->Maximum values->New Reviews I do not see this anywhere in the admin panel. I am using Osc 2.2-MS2. I suppose I should have the new reviews max option, should I? Thanks for everyones help so far. The reviews is still not working properly. Any more suggestions? Sure could use the help. I have tried so many options and none have worked. Kitti Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.