Hi,
Will follow the lead of everyone by complimenting you on a great piece of software!
However, when I upgraded to 0.9, i don't think the path detection stuff has worked properly on my server. My index.php now links to the galleries at http://tignes/ (for the Tignes photo album), whereas with 0.8 the link went to http://www.skinnyjimmy.com/skinnyphoto/tignes/
I am not that hot with .htaccess, but did change the rewrite base to /skinnyphoto (this is the directory which holds all the zenphoto files).
Anyone have a clue, before I drop back to 0.8 in the morning?
Ah, a bit of sleep gave me the clue - I ended up commenting out the define('WEBPATH' .... ) in the 'if' part of config php and manually defined it outside that section. All seems to work now!
I didn't have to define the 'SERVERPATH' though - is something going to be horribly wrong anywhere?
Hi Imbuez,
the part I edited was this:
`/ Do not edit below this line. /
/**/
$_zp_conf_vars = $conf;
if (basename($_SERVER['SCRIPT_FILENAME']) == "i.php" || basename($_SERVER['SCRIPT_FILENAME$
"admin.php") {
define('SERVERPATH', dirname(dirname($_SERVER['SCRIPT_FILENAME'])));
// define('WEBPATH', dirname(dirname($_SERVER['SCRIPT_NAME'])));
} else {
define('SERVERPATH', dirname($_SERVER['SCRIPT_FILENAME']));
// define('WEBPATH', dirname($_SERVER['SCRIPT_NAME']));
}
define('WEBPATH', 'http://www.skinnyjimmy.com/skinnyphoto');
define('SERVERCACHE', SERVERPATH . "/cache");
define('WEBCACHE', WEBPATH . "/cache");`
As you can see, i have just manually entered the path to my zenphoto directory as the webpath. I think the automatic discovery of the path isn't working? For me, anyway!
Thanks for the prompt response skinnyj. Unfortunately that's not working for me. Its seems to add an extra /zen/ into my path.
'http://www.imbuez.co.uk/gallery/zen/zen/setup.php'
When it should be 'http://www.imbuez.co.uk/gallery/zen/setup.php'
I'm clueless to know whats going on here.
Hi, I think I'm having the same problem. I also haven't been exactly sure what to put into .htaccess, for now I just have it as a /, which works better than some of the other alternatives that i've tried. I am going to try the config.php (although i am quite a novice at php).
I am getting the links like http://photoshop-creations/ (album)
or http://zen/admin.php
I also don't understand why it puts the zen folder into the link for admin, but doesn't add the albums folder into the link for the album...
The site I'm currently trying to get working is this.
[edit]OK...i redid my config.php to direct it to the address of the site, and the site is working now except for the upload function.
If I try to upload a photo it redirects me to this address;
http://scrapbook.akuehner.comhttp//scrapbook.akuehner.com/admin/?page=edit&album=photoshop-creations
so it basically puts my address in twice. It has the same address problem w/ posting comments.
The photo got uploaded, it shows the thumbnail in the gallery, but if i click the thumbnail it only shows a link to the image, and not the image itself.
It also says I have 7 images in a total of 1 album, I only have 1, I had 1 or 2 more that i deleted through ftp...not sure where the rest came from. Is there a way to prune the junk data?