Zenphoto Error: the requested object was not found. Please go back and try again

I through "http://www.aaa.com/index.html" to visit my web,and in my index.html file,there is a link to index.php of zp,

the httpd.conf of apache has the code:
<IfModule dir_module>
DirectoryIndex index.htm index.html index.php
</IfModule>

I think that means if I enter "http://www.aaa.com" it will display the index.html,but in fact ,thers is something wrong,it conduces an error:
"Zenphoto Error: the requested object was not found. Please go back and try again"

what's wrong?

Comments

  • I have a similar problem:

    I have my html files for my website in the root directory including index.html

    I have also installed ZenPhoto in root so there is index.php.

    If I enter the URL to the site, it gives me "ZenPhoto Error: the requested object was not found. Please go back and try again".

    I've removed the catch-all statement in the .htaccess file - that makes the gallery pages not work. I've tried adding a declaration to load the index.html file - that doesnt work. I'm at my wits end here :(
  • The error `Zenphoto Error: the requested object was not found. Please go back and try again` is caused by referenceing a page that does not exist. You can see exactly what was being requested by looking at the HTML source code. There is an HTML comment at the bottom which will show the album/image that zenphoto thought was requested.

    Very often this problem is caused by mod_rewrite not working. I suggest you disable mod_rewrite in the gallery admin tab and see what happens.
  • acrylian Administrator, Developer
    viavianci: I guess you confuse your server with having both a index.hml and an index.php file. Most servers have a order of processing "index" files. The easiest workaround would be to to install zenphoto in a folder I think.
  • Hey guys,

    I had the same problem and dug a little deeper, result: some basic things go wrong.

    But first the solution, this additional line in the apache .htaccess redirects correctly

    `RewriteRule ^([A-Za-z0-9-_]+)/([A-Za-z0-9.-_]+).php index.php?album=$1&image=$2 [L,QSA]`

    Place it right before the '#### Rewrite rule addtion for search'-line and it might help in your case too. Or maybe it does not :-).

    For the developers: it seems that the default theme and the .htaccess-file (or better the redirection rules) do not work together properly. Either somebody needs to change the paths generated by the theme (rewrite checks for 'page' but nothing with 'page' is even generated) or the .htaccess file needs to be updated.

    I am not so deep into this, so I can not test the whole application but will help further if more detail is needed or provided.

    Have fun,

    Henning

    P.S.: btw: I used http://www.regextester.com/ for testing, instant results, looks good.
    P.P.S.: I am pretty much running the default install, no tweaks or changes.
  • thanks hquadrat,but your way don't work in my computer.

    then I know how to solve it.

    in the file ".htaccess",add this code "RewriteRule index\.html$ index.html [L,QSA]
    " before "RewriteRule index\.php$ index.php [L,QSA]"

    OK,
Sign In or Register to comment.