My suggestion to use .php then use the include php code and it works itself
gdesanto
Joined: 2002-10-04
Posts: 8
Posted: Fri, 2002-11-15 21:31
I converted the call to a PHP include and I still got in No Photo Chosen.
Greg
beckett
Joined: 2002-08-16
Posts: 3474
Posted: Sun, 2002-11-17 04:54
Suppose you're calling the include from" /path/to/website/index.php
But the block-random.php lives in /path/to/website/gallery
Then you'll need to set the $GALLERY_BASEDIR variable to the latter for it to work correctly.
i.e. $GALLERY_BASEDIR = "/path/to/website/gallery/"; /* WITH TRAILING SLASH!! */ include("gallery/block-random.php");
Otherwise, the block-random code expects to find init.php in the main directory, not in the gallery directory.
-Beckett (beck@beckettmw.com)
cosmicdynamo
Joined: 2002-11-14
Posts: 17
Posted: Fri, 2002-11-29 20:47
I started to have the same problem:
Warning: Invalid argument supplied for foreach() in /home/spaceta/public_html/vg/modules/gallery/pnblocks/gallery_random.php on line 332
No photo chosen.
Is this the same problem as above?
Where do I include the
include("gallery/block-random.php"); as stated above?
Thanks
Pierre
joerg
Joined: 2002-10-12
Posts: 77
Posted: Sat, 2002-11-30 08:11
Quote:
I started to have the same problem:
Warning: Invalid argument supplied for foreach() in /home/spaceta/public_html/vg/modules/gallery/pnblocks/gallery_random.php on line 332
No photo chosen.
Hello Pierre,
seems that you use my code. That is a little bit different compared to Bharat's original code. I hope you use PostNuke as CMS! Because it is especially for this CMS! If you do so try to delete the block-random.cache file which exists in the album directory. Maybe that helps for the moment.
Joerg
jr1001
Joined: 2003-05-04
Posts: 13
Posted: Tue, 2003-12-16 18:45
I too get "No photo chosen" but it is intermittent - like on every 3rd or 4rth refresh. Anyway to eliminate that? I use joergs lates source code with Gallery 1.4.1
Posts: 172
My suggestion to use .php then use the include php code and it works itself
Posts: 8
I converted the call to a PHP include and I still got in No Photo Chosen.
Greg
Posts: 3474
Suppose you're calling the include from"
/path/to/website/index.php
But the block-random.php lives in
/path/to/website/gallery
Then you'll need to set the $GALLERY_BASEDIR variable to the latter for it to work correctly.
i.e.
$GALLERY_BASEDIR = "/path/to/website/gallery/"; /* WITH TRAILING SLASH!! */
include("gallery/block-random.php");
Otherwise, the block-random code expects to find init.php in the main directory, not in the gallery directory.
-Beckett (beck@beckettmw.com)
Posts: 17
I started to have the same problem:
Warning: Invalid argument supplied for foreach() in /home/spaceta/public_html/vg/modules/gallery/pnblocks/gallery_random.php on line 332
No photo chosen.
Is this the same problem as above?
Where do I include the
include("gallery/block-random.php"); as stated above?
Thanks
Pierre
Posts: 77
Hello Pierre,
seems that you use my code. That is a little bit different compared to Bharat's original code. I hope you use PostNuke as CMS! Because it is especially for this CMS! If you do so try to delete the block-random.cache file which exists in the album directory. Maybe that helps for the moment.
Joerg
Posts: 13
I too get "No photo chosen" but it is intermittent - like on every 3rd or 4rth refresh. Anyway to eliminate that? I use joergs lates source code with Gallery 1.4.1