![]() |
Less than one product produces error in recommends.php
An error occurs on the page customer/main/product.tpl when a customer visits a subcategory with only one product.
In this instance the following error appears: Code:
Warning: rand(): Invalid range: 0..-1 in /home/virtual/site210/fst/var/www/html/shop/customer/recommends.php on line 59 Any idea how to fix this ? |
You could try changing the setting in admin that says "choose recomended products by random"
|
Hmm.... when I do that it then doesn't show *any* random products for any of the products on the entire website.
This of course is not the desired effect :( Thank you for your incredibly prompt response by the way... |
Help !
I forgot this is still a problem and I'm trying to launch the site next week :? Also, this does not have to do with only one product existing because I tried changing the number of products displayed in recommends list to one and I still receive an error. Warning: rand(): Invalid range: 0..-1 in /home/virtual/site210/fst/var/www/html/shop/customer/recommends.php on line 59 Warning: rand(): Invalid range: 0..-1 in /home/virtual/site210/fst/var/www/html/shop/customer/recommends.php on line 62 Warning: rand(): Invalid range: 0..-1 in /home/virtual/site210/fst/var/www/html/shop/customer/recommends.php on line 62 Warning: rand(): Invalid range: 0..-1 in /home/virtual/site210/fst/var/www/html/shop/customer/recommends.php on line 62 Warning: rand(): Invalid range: 0..-1 in /home/virtual/site210/fst/var/www/html/shop/customer/recommends.php on line 62 |
Okay - after further searching it looks like the problem only happens on subcategories.
Still a problem though :( |
All times are GMT -8. The time now is 01:45 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.