Random Gallery: Warning: Invalid argument supplied for fore

KiwiSi
KiwiSi's picture

Joined: 2003-01-09
Posts: 4
Posted: Sat, 2003-01-18 22:38

Hi,

I recently installed Gallery v1.3.3 with the latest version of Random Gallery. This block works for about a day or so and then I start to get this message: "Warning: Invalid argument supplied for foreach() in /home/website/www/modules/Gallery/pnblocks/gallery_random.php on line 333 No photo chosen"

I have looked through the Forums though cannot seem to find a resolution to the problem. I have tried deleting the "block-random.cache" file in the Gallery Albums directory in the past and this has up to now worked - for only about a day. Now deleting this file no longer seems to work. I suspect that maybe deleting this file in this case may be a red herring.

Any assistance or pointers in resolving this problem much appreciated.

Thanks,

Si

 
headhunter

Joined: 2003-01-13
Posts: 75
Posted: Sun, 2003-01-19 06:04
 
dmolavi
dmolavi's picture

Joined: 2002-12-05
Posts: 573
Posted: Sun, 2003-01-19 13:12

if i get the time, i will be writing up a windows/*nix install script for the random block that will hopefully address most of the issues seen here. the script will also include my fix that is linked in the above post re: changing of PHP global variables from $HTTP_XXXX_VARS to just $XXXX (it will do a search and replace in all the gallery code for the variables).

 
KiwiSi
KiwiSi's picture

Joined: 2003-01-09
Posts: 4
Posted: Sun, 2003-01-19 15:22

Thanks for all your help - I've applied the changes and so far so good. I'll just have ot wait a day or two now.

Much Appreciated,

Si