Random Pic Problem...

Vyse

Joined: 2002-10-10
Posts: 13
Posted: Wed, 2002-10-16 01:25

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?

 
joerg
joerg's picture

Joined: 2002-10-12
Posts: 77
Posted: Wed, 2002-10-16 17:02

Hi,

Do you have a block_random.cache file in your album directory? Does it have any content?

Joerg

 
Vyse

Joined: 2002-10-10
Posts: 13
Posted: Wed, 2002-10-16 18:47

I have that file but there's nothing in there. Is that the cause of the problem? What should I do with it?

 
joerg
joerg's picture

Joined: 2002-10-12
Posts: 77
Posted: Wed, 2002-10-16 20:45

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

 
Vyse

Joined: 2002-10-10
Posts: 13
Posted: Wed, 2002-10-16 22:00

I deleted the file(don't know how it got there in the first place) and everything is working fine now, thanks.