Welcome to Geeklog, Anonymous Monday, April 29 2024 @ 11:14 am EDT
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
5
6
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.
3
4
Quote
All times are EDT. The time is now 11:14 am.
- 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