The random pic on my site doesn't show up, instead I get this error:
<!-- 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>Warning: Invalid argument supplied for foreach() in /home/***/public_html/modules/Media/pnblocks/gallery_random.php on line 326
No photo chosen. </TD></TR></TABLE><!-- BBCode End -->
Anyone know how to fix this error?
Posts: 77
Hi,
Do you have a block_random.cache file in your album directory? Does it have any content?
Joerg
Posts: 13
I have that file but there's nothing in there. Is that the cause of the problem? What should I do with it?
Posts: 77
Hi,
when the file is empty you get that error message. What happens, if you delete the file? Do you get a new one after the random block is run? Is it empty again?
Do you have restricted access to your albums?
Joerg
Posts: 13
I deleted the file(don't know how it got there in the first place) and everything is working fine now, thanks.