Welcome to Geeklog Friday, May 24 2013 @ 05:39 AM EDT
|
||||||||
![]() |
Forum Index > Support > General Geeklog Support |
New Topic
|
Post Reply
|
Geeklog Gallery RandomPhoto v1.1 |
|||
| emeagherjr |
|
||||||
![]() ![]() ![]() ![]() ![]() Newbie Status: offline ![]() 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 |
||||||
|
|||||||
| squatty |
|
||||||
![]() ![]() ![]() ![]() ![]() Full Member ![]() Status: offline ![]() 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? |
||||||
|
|||||||
| squatty |
|
||||||
![]() ![]() ![]() ![]() ![]() Full Member ![]() Status: offline ![]() Registered: 01/21/02 Posts: 269 |
In a world without walls and fences, who needs Windows and Gates? |
||||||
|
|||||||
| emeagherjr |
|
||||||
![]() ![]() ![]() ![]() ![]() Newbie Status: offline ![]() 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.
|
||||||
|
|||||||
| Content generated in: 3.64 seconds |
|
|
|