Invalid Arguement Error

Lawman-TRG

Joined: 2003-09-02
Posts: 7
Posted: Wed, 2003-11-19 13:23

:cry:

I keep getting the following error when trying to install the Random Block into PostNuke.

Warning: Invalid argument supplied for foreach() in /homepages/18/d83382953/htdocs/lmc/html/modules/gallery/pnblocks/gallery_random.php on line 478

The block displays but shows no images and the above error is shown ABOVE the block and pushes all of the web content to the right.

I have tried the latest version of the block (created 06/09/2003) and I am using 1.4-pl2. I have followed the instructions and placed the block in a pnblocks folder within the main Gallery folder.

I already have one website running Gallery and the Random Block with no problems.

Can anyone help?

Many thanks,

Rich

 
Chito

Joined: 2003-11-29
Posts: 4
Posted: Sat, 2003-11-29 00:21

I have exactly the same problem. Does anyone have a fix for this?

Thanks in advance...

 
Chito

Joined: 2003-11-29
Posts: 4
Posted: Mon, 2003-12-01 18:42

BTW I'm using :

PostNuke version: 0.7.2.6-Phoenix
Gallery v1.4-pl2
and have tried all versions of the Random Block to no avail.

Thanks to anyone for any forthcoming help.

 
Reptile

Joined: 2003-10-15
Posts: 2
Posted: Mon, 2003-12-01 20:36

Did you make sure to change the path of your gallery in the random block php file? I know it sounds simple but I sometimes forget to modify the file when upgrading.

-Rep

 
Chito

Joined: 2003-11-29
Posts: 4
Posted: Tue, 2003-12-09 17:24

Yes I did. Still have the same problem.

Lawman-TRG, have you got this fixed on your site? Nobody seems to care about this :(

 
Warren
Warren's picture

Joined: 2002-07-24
Posts: 794
Posted: Tue, 2003-12-09 17:46

Try deleting your block-random.cache file in your albums/ directory. Refreshing your page will re-generate the file.

 
Chito

Joined: 2003-11-29
Posts: 4
Posted: Thu, 2003-12-11 23:02

thanks... that worked!

 
Warren
Warren's picture

Joined: 2002-07-24
Posts: 794
Posted: Thu, 2003-12-11 23:09

Thanks for your reply. Happy to hear it worked! 8)