Topics

User Functions

Events

There are no upcoming events

What's New

Stories

No new stories

Comments last 2 weeks

No new comments

Trackbacks last 2 weeks

No new trackback comments

Links last 2 weeks

No recent new links

NEW FILES last 14 days

No new files

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
 06/09/03 09:32AM (Read 2386 times)  
+----
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

 
Profile Email Website
 Quote
squatty
 06/09/03 09:55AM  
+++++
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?
 
Profile Email Website
 Quote
squatty
 06/09/03 09:56AM  
+++++
Full Member

Status: offline


Registered: 01/21/02
Posts: 269
Opps...here.

---
Danny @ squatty.com


In a world without walls and fences, who needs Windows and Gates?
 
Profile Email Website
 Quote
emeagherjr
 06/09/03 05:34PM  
+----
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.

 
Profile Email Website
 Quote
Content generated in: 3.64 seconds
New Topic Post Reply

Normal Topic Normal Topic
Sticky Topic Sticky Topic
Locked Topic Locked Topic
New Post New Post
Sticky Topic W/ New Post Sticky Topic W/ New Post
Locked Topic W/ New Post Locked Topic W/ New Post
View Anonymous Posts 
Able to post 
Filtered HTML Allowed 
Censored Content