full image display from external folder fails

when clicking on an image located in an external folder zen is failing. If the image is set to download it works, unprotected is failing.

Zenphoto version 1.4.3.1 [10590] (Official build)

cfg

$conf['album_folder'] = '/share/Qmultimedia/Photos';
$conf['album_folder_class'] = 'external';

url

download

http://www.ho66es.org/zenphoto/zp-core/full-image.php?a=2012/2012-08-04+now+you+dont&i=IMG_4519.JPG&q=75&wmk=!&dsp=Download

unprotected

http://www.ho66es.org/share/Qmultimedia/Photos/2012/2012-08-04 now you dont/IMG_4519.JPG

gives me

Not Found

The requested URL /share/Qmultimedia/Photos/2012/2012-08-04 now you dont/IMG_4519.JPG was not found on this server.

Apache Server at www.ho66es.org Port 80

any ideas? it did work before, this is with default theme.

Comments

  • You cannot make a link to an external album--the whole point of external is that the album is not within the WEBPATH, so it cannot be accessed by the browser.

    Perhaps we should make it an error to attempt to do this.
  • hmmm I am not trying to link to it, just showing what the links are for the intermediate image.

    In the past if i clicked on a thumbnail in a gallery I went to a page with the intermediate image and some other details were displayed, if I then clicked on that image it displayed the image full size in browser. Now it fails, however if I switch the image to download instead of unprotected it works and the full image is downloaded? the links above are from right clicking on the intermediate image and saving ling to see if that helped you identify the issue.

    If I am still unclear please say and I will try to explain better
  • I guess I do not understand. Unless you issue a function call to print the link it will not show up, so will not be a problem. If you do try to generate a link to the unprotected version of an external album image the linkwill fail for the reason given.

    No way it will work if the album is really external--the browser cannot follow the link. Of course if you "lied" about it being external it might work, but then why did you not mark it is within the web path?

    If the album really is external and you want a link to it you have to set the view to protected view so that the protected view image handler is called to display it.
  • hmm ok I 'think' we are talking at cross purposes.

    Setup

    web root is /share/Qweb
    zenphoto is /share/Qweb/zenphoto
    images are in /share/Qmultimedia/Photos

    this makes the images external in my understanding and as above the two lines in my cfg read

    $conf['album_folder'] = '/share/Qmultimedia/Photos';
    $conf['album_folder_class'] = 'external';

    if you browse to http://www.ho66es.org/zenphoto
    click on 2012
    click on 2012-08-04 now you dont
    click on 1st thumbnail you get
    http://www.ho66es.org/zenphoto/2012/2012-08-04 now you dont/IMG_4518.JPG.php

    if you click on this image you get the image downloading from the external path ? at least I do here.

    before when I had it set to unprotected in options it displayed the full image in the browser window. I am not sure if something has changed in zenphoto, my browser or my server thats caused this?

    Hope this explains it a bit better
  • I do not know why you would have been successful at getting the browser to load the unprotected full image in the past. The link should have been to "http://www.ho66es.org/share/Qmultimedia/Photos/2012/2012-08-04 now you dont/IMG_4519.JPG" as you show in your earlier post. Since that does not point to the image the browser should give a not found. This is simply how it works.

    I will repeat. You CANNOT create a useable link to an image in an external album. If you want to link to the images do not make the album external. Use a symlink or some other means to set it up.
  • ok I have no idea why it worked in the past in this case. I will leave it set so that clicking the image downloads the file. Thankfully

    http://www.ho66es.org/zenphoto/zp-core/full-image.php?a=2012/2012-08-04+now+you+dont&i=IMG_4519.JPG&q=75&wmk=!&dsp=Download

    seems to work fine for image in the external folder
Sign In or Register to comment.