Hi all,
I have installed zenphoto on linux (debian) with PHP Version 4.3.10-16 (
http://www.generalmagic.org/phpinfo.php) and I am having a similar problem than many where the webpath is wrong in many instances as you can see on:
http://www.generalmagic.org/zenphoto/index.phpI have tried several things with no success:
* define('WEBPATH','/zenphoto');
* define('WEBPATH','
http://www.generalmagic.org/zenphoto');
and finally settled on:
if (basename($_SERVER['SCRIPT_FILENAME']) == "i.php" || basename($_SERVER['SCRIPT_FILENAME']) == "admin.php") {
define('WEBPATH', dirname(dirname($_SERVER['SCRIPT_NAME'])));
} else {
define('WEBPATH', dirname($_SERVER['SCRIPT_NAME']));
}
which seems to work best at least for the CSS stuff. But as you can see in the source of the album page all the album related links are wrong such as /zenphoto/bettah/image/thumb/ferik.png but also
http://www.generalmagic.org/zenphoto/bettah/So it seems album links are very wrong. I tried with mod_rewrite on and off (with a restart everytime I modify anything in functions.php or config.php) but it lead to the same result.
Also, clicking on the top link (My Photo Gallery) leads to this, which seems odd:
http://www.generalmagic.org/zenphoto/page/1Any idea ?
Erik
Comments
I had similar problems and went through all the hassle of messing with the php in the scripts, when on another install my same web server I decided to call it "gallery" instead of "zenphoto" or anything with the word zen in it at all, and voila, for some reason it worked like a charm, easy as pie.
When I browsing the bug archive, I came accross this bug, hope this helps.