Warning: rand() expects parameter 2 to be long

BillMinton

Joined: 2002-08-22
Posts: 19
Posted: Mon, 2002-09-23 22:47

My ISP did an upgrade, and now I get this. I'm running MyPHPNUke if that helps. I've check out <!-- BBCode Start --><A HREF="http://marc.theaimsgroup.com/?l=gallery-users&amp;m=101968646001708&amp;w=2" TARGET="_blank">this page</A><!-- BBCode End --> after doing a search in the archives, but that didn't fix my error.

The entire error message is:

Warning: rand() expects parameter 2 to be long, string given in /home/virtual/site150/fst/var/www/html/galleries/block-random.php on line 138
ERROR: requested index [] out of bounds [12]
Fatal error: Call to a member function on a non-object in /home/virtual/site150/fst/var/www/html/galleries/classes/Album.php on line 570

My site is at <!-- BBCode Start --><A HREF="http://www.themintonfamily.com" TARGET="_blank">www.TheMintonFamily.com</A><!-- BBCode End -->

Any ideas?

Thanks!

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Tue, 2002-09-24 02:37

This is from the random block. Try using a different version of the random block (there are several in the User Guide now). Failing that, take a look in the -devel mailing list archives; somebody posted a workaround for this a while back.