path rolls back to /zp-core from /zenphoto/zp-core after clicking save in admin

Hello,

I installed ZenPhoto to http://mydomain.com/zenphoto/. Everything so far seems working fine except that
1) the path rolls back to http://mydomin.com/zp-core/..... from http://mydomin.com/zenphoto/zp-core/..... any time when I click "save" on my admin control panel to save some setting, which generates "Zenphoto Error: the requested object was not found. Please go back and try again";
2) my gallery page shown is completely text-based whatever theme I choose.

Could anyone give me some clue?

Thanks a lot!

Comments

  • Connie Member
    there is a mistake in your configuration and the reason sits in your .htaccess-file:

    if you use mod_rewrite, you should take care of this entry in .htaccess:

    `

    RewriteEngine On`

    ` #### !!! Change this to the web path (eg: http://www.yourwebsite.com/photos --> /photos) !!!

    RewriteBase /zenphoto`

    check if there is something wrong here

    if your images are not shown, did you upload them via FTP or via the script?
    If you uploaded them using the script, contact your hoster, as the script and the browser are running as different users with different permissions...
  • Thanks for your reply! I haven't uploaded any photos yet. This is exactly what's in my .htaccess file:
    <IfModule mod_rewrite.c>
    RewriteEngine On

    #### !!! Change this to the web path (eg: http://www.yourwebsite.com/photos --> /photos) !!!
    RewriteBase /zenphoto

    I have no idea about rewrite modules. Could you give me some clue?

    Thanks a lot!
  • Your best bet it to upload the .htaccess file that comes with zenphoto and run setup.php so that it will properly modify it.
  • That's what I have done. But the problem stays. Thanks!
  • Hi firsttimezenphoto-

    First of all: even though your other post says you're using Gallery 2, I'd try this out and switch back to ZenPhoto. It's so much friendlier to use!

    I encountered your same problem when I set zenphoto up on my Dreamhost server recently. I had .htaccess uploaded, ran setup.php (everything checked out "green" there), was using mod_rewrite, had the RewriteBase set correctly, and still encountered your symptoms. Basically, I was in your same exact position: ZenPhoto just kept sending me to /zp-core instead of /photos/zp-core.

    The solution for me: Edit your zp-core/zp-config.php file. Down at the very bottom are two commented out lines that are marked for "ONLY IF YOU'RE HAVING PROBLEMS". Well, I was :) I uncommented the first line and set it for my path, and all now works well:

    // Uncomment the following two lines ONLY IF YOU'RE HAVING PROBLEMS,
    // like "file not found" or "not readable" errors.
    // These allow you to override Zenphoto's detection of the correct paths
    // on your server, which might work better on some setups.
    ////////////////////////////////////////////////////////////////////////////////

    define('WEBPATH', '/photos');
    // define('SERVERPATH', '/full/server/path/to/zenphoto');

    I hope that helps!
  • I do not have an .htaccess file in my Zen Photo download. What am I missing?
  • acrylian Administrator, Developer
    The file is invisible on Macs for example since it begins with a point. If you are using a mac here are several tools to make invisible files visible: http://www.macupdate.com/search.php?keywords=invisbile+files&starget=google
Sign In or Register to comment.