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
Posts: 75
Funny, I just got this too... yah.
Check out here
http://gallery.menalto.com/modules.php?op=modload&name=phpBB_14&file=index&action=viewtopic&topic=3215&2
Tis the fix captain
Posts: 573
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).
Posts: 4
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