block-random.cache file is empty !

stever

Joined: 2003-12-28
Posts: 3
Posted: Sun, 2003-12-28 01:52

I have searched this forum and tried some fixes without sucess.
I have gallery 1.4.1 embedded in PN.726 and gallery seems to work fine.

My random block (Joerg_Holzapfel_latest_tar) gives me this error:
Warning: Invalid argument supplied for foreach() in /home/*mysite*/modules/gallery/pnblocks/gallery_random.php on line 485
No photo chosen.

After deleting the block-random.cache file, the script runs without error the first time, except no photo is chosen. The script has created a new empty block-random.cache file even though I have 2 albums with several images each in them.

On refreshing I get the above error.

Any help would be much appreciated!

 
stever

Joined: 2003-12-28
Posts: 3
Posted: Sun, 2003-12-28 02:17

Don't know if this gives anybody an idea but I just found out I get the same error with the Random-Block version from this site.

Warning: Invalid argument supplied for foreach() in /home/*mysite*/modules/gallery/block-random.php on line 166
No photo chosen.

after deleting empty block-random.cache file the script writes a new empty one

 
stever

Joined: 2003-12-28
Posts: 3
Posted: Sun, 2004-01-04 00:16

couldn't figure this out, deleted existing albums and created new ones.

error is gone. everything is working.