Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Reviews Error


kittidid

Recommended Posts

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

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

 

Tried the two and it did not work. It is still the same error. Any suggestions?

 

Kitti

Link to comment
Share on other sites

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

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

 

 

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

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

 

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

Archived

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

×
×
  • Create New...