Warning: rand() expects parameter 2 to be long...
slowmail
Joined: 2002-09-13
Posts: 4 |
![]() |
Could anyone shed some light why I'm seeing this error? Warning: rand() expects parameter 2 to be long, string given in /home/user/lib/gallery-1.3.3/block-random.php on line 138 http://photos.mydomain.com/block-random.php showed a random image ONCE, and now it gives me that error. Advice anyone? No idea if it's revelant, but: subdomain photos resolves under /public_html/photos Everything else works well. *scratch head* |
|
darkknight
![]()
Joined: 2003-03-01
Posts: 40 |
![]() |
Thats exactly what i get as well... and i dont know why either... (im running standalone) |
|
10k
![]()
Joined: 2003-04-19
Posts: 1 |
![]() |
I get the exact same thing. Showed a picture once, then got that error. Does anyone have any info on this? I'm running it as a stand alone. I have messages boards, etc, but I'm not trying to embed anything. I just want a random photo on my homepage. Thanks :smile: |
|
hawkin
![]()
Joined: 2002-08-15
Posts: 45 |
![]() |
I get the same error. I will look into the random file and see if changing the rand() function will help.. |
|
hawkin
![]()
Joined: 2002-08-15
Posts: 45 |
![]() |
I think I fixed it. I put in this at line 141: in front of: That seems to solve the problem (makes sure the count variable is a float variable, witch is what php complains about) |
|
sotranow
Joined: 2003-04-02
Posts: 3 |
![]() |
:wink: |
|
RhythmAce
Joined: 2002-12-01
Posts: 4 |
![]() |
"The gift that keeps on giving" It fixed my problem too with gallery 1.4.1 running on phpnuke 6.9 |
|
kanaha
Joined: 2003-09-09
Posts: 5 |
![]() |
Thank you thank you thank you!! This is just the fix I needed! |
|