Invalid argument supplied for foreach()

Paal
Paal's picture

Joined: 2002-09-02
Posts: 11
Posted: Thu, 2002-09-05 15:42

Warning: Invalid argument supplied for foreach() in /home/paloczp/naturateam.hu/html/modules/Gallery/block-random.php on line 165
No photo chosen.

This line:
foreach ($cache as $name => $count) {
.
.
.

Step1:
block-random.php from:
http://gallery.menalto.com/local/downloads/randomblock/block-random.php.gz

OK!

Step2:
I include block-random line index.php in:
$safe_to_include =
array(
"block-random.php",
"add_comment.php",

OK!

Step3:
random pictures block (php):
include("http://naturateam.webpeca.hu/html/modules.php?op=modload&name=Gallery&file=index&include=block-random.php");

OK!

What is the problem?

Site URL:
http://naturateam.webpeca.hu/html/index.php

System:
Debian Linux 3.0
PHP Version 4.2.1
Postnuke-0.7.2.1-Phoenix
Mysql-3.23.50
Gallery-1.3.1
Apache-1.3.24

Tnx, Paul
Ps.: sorry my bad english... :sad:

 
brew

Joined: 2002-09-18
Posts: 14
Posted: Wed, 2002-09-18 21:31

I went to your web site and see that you got the random image block to work.

Will you tell me how you got it working?

I have this same problem!

Thank you!

Brew

 
aLeXx

Joined: 2002-09-22
Posts: 3
Posted: Sun, 2002-09-22 21:51

well.. I have the same problem...
someone have the answer????

thank you

Alex