Welcome to Geeklog, Anonymous Thursday, March 28 2024 @ 03:48 pm 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
 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?
 Quote

Status: offline

squatty

Forum User
Full Member
Registered: 01/21/02
Posts: 269
Opps...here.

---
Danny @ squatty.com


In a world without walls and fences, who needs Windows and Gates?
 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.
 Quote

All times are EDT. The time is now 03:48 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