links to album not working

I have installed zenphoto 1.0.3 and can get into the admin area where I was able to create a new album and upload a few test photos.

When I view the main page I see the album with it's thumbnail but when I click on that album I get a 404 error. I know WHY, I just don't know how to fix it.

http://www.pyrofenix.com/gallery/
clicking on the album sends me to "/gallery/albumname" instead of "/gallery/album/albumname". How do I correct zenphoto to include the album folder?

Thanks!

Comments

  • Hello, I have the same probleme.
    The good way is :
    toto.com/zenphoto/albums/album-1/
    and the link is
    toto.com/zenphoto/album-1/

    How is possible to change this ?

    Thank you
  • This happened to me. What I did to fix it was to open the .htacess file and make sure the line next to "RewriteBase" is correct. It wasn't.

    Don't put in a trailing slash.

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

    RewriteBase /gallery

    So the line in the file should be:

    RewriteBase /gallery

    This is for people using a folder named "gallery" if you are using a different folder name, change the rewrite path to reflect that.
  • trisweb Administrator
    Jeff and pyrofenix - A lot of people make the mistake that the directories in the folder are how the URL's should look, but that's not even the case. Everything in the URL is translated by mod_rewrite if your server supports it, and they don't have anything to do with the folders except for the names. They're actually arguments to the script. :-)

    So carasmo is exactly right, you just have to be sure your .htaccess is configured correctly.
  • OK, Thank You,

    All is OK,

    The problem was this one, with my FTP I could't see .htacces,
    I change it and I can edit exactly like you explain Carasmo.

    Thank You
    Jeff
  • Mac OS 10 can't see .htacess (all files with a period in front are invisible), so what I do is upload it to the server and then download back and rename it at the same time to htacess.txt

    You can see things with your terminal set up or by the way I did it (there's another way, but I can't remember how to turn on invisibles, I can search for them, but can't make them appear yet. There's too much stuff to learn and not enough time.
  • Yup, I realized my mistake yesterday evening. it's working now. Thanks for the help carasmo!
  • trisweb Administrator
    I might change the .htaccess in the archive to a plain htaccess (no dot). It's an extra install step to rename it, but that can go in the instructions.

    An alternative is automatic creation in the install, which I will definitely move toward in the future. Eventually I want to have zp-config.php contain only database info, the rest in a real options interface.
  • Hello there, Im a newbie here and it seems Im having a similar problem.
    I created this gallery: http://www.lamparasdegres.com/wp-content/zenphoto/
    I uploaded the files and they're on the ftp. But when I want to see the pics, I dont even see the thumbnails or the pictures neither.

    This error appears: The page cannot be found.

    What Am I missing?

    Thanks in advance!
    Cy
  • @cynthiamiur
    Have you gone through the checklist here to see if you've configured everything okay?
  • Hi Gamedudex, thanks for the reply. I'm following the checklist but Im stucked in the point 4 (Change your rewrite-base in your .htaccess file to your root zenphoto path) since I dont understand how to change it.

    What should I modify exactly and for what?
  • @cynthiamuir-

    In your .htaccess file (should be included with the zenphoto distributon you downloaded - although it may be considered a "hidden" file), look for these lines:

    `# htaccess file for zenphoto

    # NOTE: Change the RewriteBase below to the absolute path to your zenphoto directory.



    RewriteEngine On

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

    RewriteBase /zenphoto`

    The last two lines in this file is what you are looking for. You need to change this to your root path for zenphoto. Now generally, by default, most people install into /zenphoto from their webserver. This can be anything you want, as long as it's consistent, so other examples could be: /zp, /gallery

    I would suggest for starters using the /zenphoto default, and later on you can get fancier if you want after you get the hang of it....

    One big note is that if you aren't using mod_rewrite for pretty URLs (see zp_config file for this code:)
    `// If you have Apache mod_rewrite, put true here, and you'll get nice cruft-free URLs.

    // MAKE SURE TO EDIT THE .htaccess FILE with your path information.

    $conf['mod_rewrite'] = false;`
    make sure as a good rule of thumb that you configure it anyway and upload it.

    Let us know if you have additional questions, and we'll be glad to help.
  • Thanks Thinkdreams, I already fixed the problem: IIS does not support .htaccess or mod_rewrite.

    I changed it to false and now it works =)

    Thanks a lot for your help
  • I have the same problem. I have placed zenphoto at www.knisely.org/zenphoto
    My .htaccess file is :
    <IfModule mod_rewrite.c>
    RewriteEngine On

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

    I have mod_rewrite enabled in Apache2.

    I have chmod 777 albums and cache:
    drwxrwxrwx 2 root root 4096 2007-03-01 21:47 admin
    drwxrwxrwx 3 root root 4096 2007-04-01 13:32 albums
    drwxrwxrwx 2 root root 4096 2007-04-01 13:25 cache
    -rwxrwxrwx 1 root root 1111 2007-04-02 20:34 .htaccess
    -rwxrwxrwx 1 root root 617 2006-11-09 04:28 index.php
    -rwxrwxrwx 1 root root 964 2006-05-29 21:55 INSTALL
    -rwxrwxrwx 1 root root 15127 2006-01-11 02:37 LICENSE
    drwxrwxrwx 9 root root 4096 2007-03-01 21:47 themes
    -rwxrwxrwx 1 root root 1740 2007-02-06 04:13 TODO
    drwxrwxrwx 4 root root 4096 2007-04-01 20:02 zen

    I have left owner/group as root/root, is that perhaps causing the issue?

    I can create an album, but when I click the link for the album I get a "The requested URL /zenphoto/march2007/ was not found on this server" error.

    I know this ground has been covered but I just don't see what I am missing and was hoping for a second set of eyes.

    Thanks,
  • trisweb Administrator
    Well tshawn, mod_rewrite isn't working...

    Check to see that you allow .htaccess overrides (AllowOverride directive) in your Apache config. If you don't, it won't pick up the mod_rewrite settings for zenphoto.

    Do you have any other apps installed that use mod_rewrite?
  • Thank you. I got it sorted out. I had an entry from <gasp> some other photo gallery software. I got rid of that and corrected the <directory> and now I get to the album!

    That is the good news. The bad news is that I get an error "GD Library is not installed". I have not researched that issue yet, but I am making progress.

    Thanks for your help!
  • OK!! I got it, I should not have even posted that last bit. I found my answer and on my server did "apt-get install php5-gd", restarted apache and now all seems to be in order!

    Thanks!
  • The user and all related content has been deleted.
Sign In or Register to comment.