ERROR !!!! HELP MEEEEEE

jokker
jokker's picture

Joined: 2002-10-02
Posts: 9
Posted: Fri, 2002-10-04 08:31

I got the following ERROR MESSAGE inside the random block...

Quote:
ERROR: requested index [10] out of bounds [4]
Fatal error: Call to a member function on a non-object in /home/lowridin/www/modules/gallery/classes/Album.php on line 570

Can someone hrlp me???????
WTF is THAT???

 
jokker
jokker's picture

Joined: 2002-10-02
Posts: 9
Posted: Fri, 2002-10-04 23:02

Come on...
Nobody ever got this error message?!?!

 
koejkje

Joined: 2002-10-11
Posts: 1
Posted: Fri, 2002-10-11 22:28

I get this exact message.

 
joerg
joerg's picture

Joined: 2002-10-12
Posts: 77
Posted: Sat, 2002-10-12 16:00

Hi Folks,

try to download my modified Random-Block. It works fine with Postnuke. You can find it <!-- BBCode Start --><A HREF="http://www.holzapfel-online.de/modules.php?op=modload&amp;name=Downloads&amp;file=index&amp;req=getit&amp;lid=6" TARGET="_blank">here</A><!-- BBCode End -->.

If you have some problems with this code. Please contact me!

Joerg

 
pomeroyt
pomeroyt's picture

Joined: 2002-10-14
Posts: 18
Posted: Tue, 2002-10-29 04:54

I'm still having the same problem with your new code ...

 
MARDER

Joined: 2002-10-24
Posts: 1
Posted: Tue, 2002-10-29 20:51

Hi!

We have got the same problem with the random block. We are using Postnuke 0.7.2.1 and after deleting some pictures from our galleries the error appears.

Is there any file which must be cleared or something? I think deleting of images is normal and the block should actualize automatically.

Hope somebody can help us?!

Thx :grin:

 
joerg
joerg's picture

Joined: 2002-10-12
Posts: 77
Posted: Thu, 2002-10-31 15:50

Hi,

please try the following:

Delete the file "block-random.cache" in the album directory and try again.

This file is normaly created once a day. If you delete some pictures it can be useful to delete the file too.

A second alternative is to lower the value of CACHE_EXPIRED in the source code. This will result in creating the file more often. The value is normaly set to 86400 seconds which means one day. You can set the value in the following code line:

<!-- BBCode Start --><TABLE BORDER=0 ALIGN=CENTER WIDTH=85%><TR><TD><font class="pn-sub">Code:</font><HR></TD></TR><TR><TD><FONT class="pn-sub"><PRE>define(CACHE_EXPIRED,86400); </TD></TR></TABLE><!-- BBCode End -->

This line could be found in the original script from Bharat and in my modification for PostNuke.

Please tell me if this solves the problem!

Bye
Joerg

 
meljgrey

Joined: 2002-11-20
Posts: 12
Posted: Wed, 2002-12-04 00:38

FYI: Changing the cache setting to 0 was the only way I could get around this error.

 
BenSeb

Joined: 2002-11-04
Posts: 11
Posted: Sat, 2002-12-07 18:20

i get this too

if it helps, the contents of block-random.cache is as follows:

/65

it seems as though this part of the code is not working:
<!-- BBCode Start --><TABLE BORDER=0 ALIGN=CENTER WIDTH=85%><TR><TD><font class="pn-sub">Code:</font><HR></TD></TR><TR><TD><FONT class="pn-sub"><PRE> foreach ($cache as $key => $val) {
fwrite($fd, "$key/$val
");
}</TD></TR></TABLE><!-- BBCode End -->