Object not found

I created a new theme in a offline environment (xampp)and everything worked wonders, I then installed zenphoto online and activated my custom theme, all is well, I created loads of galleries and uploaded images, it all works perfectly, except for when I click on the thumbnail of an image in a gallery and then i get the error "Object not found"

I am pretty sure it has to do with a path or something but I have no idea where to change it, or why it worked in xampp and then not online...

Comments

  • acrylian Administrator, Developer
    Missing htaccess file maybe. You really should look into your error logs.
  • Such errors are often because of case differences. On line usually means a unix server whose file system is case sensitive. Off line usually means MAC or Windows. Neither of those file systems care about the case of the file name.
  • awesome, I was thinking it might be something to that effect.

    Any suggestions on how I might go about fixing this issue?
  • acrylian Administrator, Developer
    The easiest is always to use lowercase characters in file/folder names. If you use the backend upload and have the seo plugin enabled Zenphoto should do all this for you.
  • I do use the backend and the plugin "seo_zenphoto" was enabled... Is there another one? Or am I missing something, cause the problem still persists.
  • acrylian Administrator, Developer
    No, that's it actually. Are the images with the same names lower/upper case in the albums itself (via FTP)?
  • The images are numbered "p1000646.jpg" in sequence and they are named the same in the the folders and in the backend. I connected via ftp and went into the individual albums and they are all named the same...

    this is a very very strange problem..
  • acrylian Administrator, Developer
    Since you mention the path as an issue. What is the url of one of these failing ones? Does the non modrewrite url work?
  • The instillation path is:

    http://www.ekuja-hunting-namibia.com/zenphoto

    I have then got 6 albums with images in each. The path to the albums are:

    http://www.ekuja-hunting-namibia.com/zenphoto/2007/

    And the failing image path is :

    http://www.ekuja-hunting-namibia.com/zenphoto/2007/p1000675.jpg

    Feel free to go take a look at it, the site is old and was build years ago, they just asked me to ad a gallery to it.
  • acrylian Administrator, Developer
    Well, a a link like http://www.ekuja-hunting-namibia.com/zenphoto/2007/p1000675.jpg cannot work. It is missing the rewrite suffix, normally .php or .html per default. Check the option for that (Options > General).

    http://www.ekuja-hunting-namibia.com/zenphoto/index.php?album=2007&image=p1000675.jpg does work so Zenphoto without modrewrite is working correctly.
  • Excellent we are getting closer. I went into options and checked and mod rewrite was selected.

    So I deselected it all and now its working just fine, but with horrible url's.. If I check mod rewrite and put in a mod rewrite suffix (.php) it all still doesn't work..

    But as far as I am concerned this is a victory. I will keep the mod rewrite off for now, sure this will hurt my search engine results but at least its functional now.
  • acrylian Administrator, Developer
    Try .html instead of .php as many current Apache installs have modsecurity enabled which does not like .php. The suffix can be also something like -view or /view. It is required because otherrwise it is not clear this is an image page and not a direct image call.
  • Just a note that the rewrite suffix is totally NOT required. In fact it may even be configured to be missing, leaving links like you show.

    But of course, if your server is not supporting mod_rewrite or you do not have the correct `.htaccess` file you cannot use such nice looking urls.
  • acrylian Administrator, Developer
    Ok, my fault, I indeed didn't know it can be kept empty. Always used the defaults of .php or .html myself.

    I would recommend to use it as you otherwise more or less pretend that hte url is an image while it is a page. Might be that server security triggers on that as well.
Sign In or Register to comment.