Welcome to Geeklog, Anonymous Wednesday, November 27 2024 @ 07:34 pm EST
Geeklog Forums
Geeklog Gallery RandomPhoto v1.1
Status: offline
emeagherjr
Forum User
Newbie
Registered: 06/08/03
Posts: 2
I just installed GeeklogGalleryRandomPhoto v1.1. I followed the instructions and things work great the 1st time I hit the page where the Random Photo is but after that I get this error: "ERROR: requested index [] out of bounds [22]" in the content pane. I also see this error in my apache error_log: "PHP Warning: rand() expects parameter 2 to be long, string given in /bigdrive/http/vhosts/meagherfamily.org/block-random.php on line 70
PHP Fatal error: Call to a member function on a non-object in /bigdrive/http/vhosts/meagherfamily.org/gallery/classes/Album.php on line 642".
Interestingly, if I delete the block-random.cache file, it works once and then fails with the same errors as above.
Can anyone help with this?
Thanks,
Ed
12
14
Quote
Status: offline
squatty
Forum User
Full Member
Registered: 01/21/02
Posts: 269
You can find some helpful tips <a href="http://www.squatty.com/article.php?story=20020905051818332" target=_new>here</a>.---Danny @ squatty.com
In a world without walls and fences, who needs Windows and Gates?
In a world without walls and fences, who needs Windows and Gates?
11
10
Quote
Status: offline
emeagherjr
Forum User
Newbie
Registered: 06/08/03
Posts: 2
The problem was covered in link you sent me albeit a little obscurely: It seems like in order for this block to work, you need to set block-random.cache to be in your public html directory because it gets included here: include_once($_CONF['path_html'] . "/block-random.php"); (which is ~two lines after the location of block-random.cache is defined). $_CONF['path_html"] seems to refer to wherever the public_html dir is.
8
8
Quote
All times are EST. The time is now 07:34 pm.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content