Open Brouno opened 12 years ago
Hi,
For your website to work on a Free server, i'd suggest using relative path instead :
$config->photos_dir = "../photos"; $config->ps_generated = "../temp";
(for instance).
Hope it helps... :)
Thanks for the suggestion, but ...
I get the same error with relative path :-(
You can see it here : http://brunogallerie.free.fr/PhotoShow User/pwd : azerty/azerty
I have the same problem... Has anyone found a solution?
I think that the problem is the version of php under version 5.0
I have the version 5.2.17...
That's not a good solution, but I just added "error_reporting(0);" in the "Judge.php" file. Now there is no error message and the photo gallery work pefectly!
Hello, same error here in class Judge.php, I think the problem comes from the repetition of "/".
Echo on $rightsdir (line 180 of Judge.php) says : "/mnt/.../photos_generated/Thumbs//tests"
with "photos_generated" as my directory configured in $config->ps_generated and "tests" my album name.
Reido > thx for the workaround :-)
Et en un peu plus propre :
if(!empty($rightsfiles)){ foreach($rightsfiles as $rf){ ... } }
Thanks for the fix Reido.
Thanks for the fix BoboTiG. I didn't want to use "error_reporting(0);" as that just hides the error, but your commit seems to have fixed the issue for now.
Hi guys, I just downloadede photoshow and had to correct judge.php by myself. The saillmone comment fixes the issue. Thanks for the job !
I get a foreach error in Judge.php. Error is : Warning: Invalid argument supplied for foreach() in /mnt/136/sda/2/8//photoshow/src/classes/Judge.php on line 183
I'm unable to see how ... The website is a mutual one, on a french provider : free.fr
I made the test on a simple one with one dir and few pics.
Folders are : /photoshow /photos /temp
Config.php is :
$config->photos_dir = "/mnt/136/sda/2/8//photos";
$config->ps_generated = "/mnt/136/sda/2/8//temp";
An idea ?
Thank you. Brouno