Problems with random-block after changing ISP's -Please Hel

scooter

Joined: 2002-09-16
Posts: 10
Posted: Mon, 2002-09-16 16:19

I get the following error:

Warning: rand() expects parameter 2 to be long, string given in /home/victorf/public_html/modules/gallery/block-random.php on line 138
ERROR: requested index [] out of bounds [11]
Fatal error: Call to a member function on a non-object in /home/victorf/public_html/modules/gallery/classes/Album.php on line 570

If I delete the block-random.cache file then I will get a photo in the block. But, as soon as a refresh is done, the photo goes away and the above error comes up.

I just transferred the gallery and all my software/database from one ISP to another. Everything else seems to work. The gallery seems to work. Just the block-random has problems.

HELP! Thanks
Tom

 
Tobias

Joined: 2002-10-01
Posts: 1
Posted: Tue, 2002-10-01 06:45

Hi,

Quote:
Warning: rand() expects parameter 2 to be long, string given in /home/victorf/public_html/modules/gallery/block-random.php on line 138
ERROR: requested index [] out of bounds [11]
Fatal error: Call to a member function on a non-object in /home/victorf/public_html/modules/gallery/classes/Album.php on line 570

If I delete the block-random.cache file then I will get a photo in the block. But, as soon as a refresh is done, the photo goes away and the above error comes up.

I got the same errors! Have you found what causes the error?!

Tobias

 
zapzap

Joined: 2002-10-01
Posts: 3
Posted: Tue, 2002-10-01 11:39

same error
any answer

 
SamBeckett
SamBeckett's picture

Joined: 2002-09-29
Posts: 146
Posted: Wed, 2002-10-02 18:44

this has been answered many times, keep reading.