Big Picture Not Showing Up

My album works fine, but when I get to the image.php page and click on the image for the bigger picture, the photo does not show up. I did notice that the paths were incorrect. Within the URL the /albums/ is not displaying.

For example:

Here is a broken url:
http://nezik.com/boudyphotos/zenphoto/niagra_falls/2007_0714ConferencePhotos20086.JPG

It should be:
http://nezik.com/boudyphotos/zenphoto/albums/niagra_falls/2007_0714ConferencePhotos20086.JPG

I tried to go to the image.php page, but I could not edit it because the url is pulled from <?php echo getFullImageURL();?>

Is there a way I can fix this?

Thank You

Comments

  • acrylian Administrator, Developer
    The link works fine for me and it's the correct one by the way. There should be no "albums" inbetween.
  • The error you are getting (the requested object was not found. ) would indicate that the file zenphoto/zp-core/full-image.php was not found. Please check to see if it is on your server.
  • @acrylian,

    I'm sorry, I was referring to when you click the picture on that page. You get this link: http://nezik.com/boudyphotos/zenphoto/niagra_falls/index.php?album=niagra_falls&image=2007_0714ConferencePhotos20086.JPG

    @sbillard,

    I don't think full-image.php would be under the zp-core folder. I have the newest default template that came with 1.1.5. So this should be pulling from image.php within zenphoto > themes > default
  • Well, full-image.php is the script that serves up the bigger picture image when you click on the image. It is part of the zenphoto install and belongs in the zp-core.php folder. So, again, please see if that file is in the zp-core folder.
  • Thanks sbillard,

    Yes, full-image.php is within the zp-core directory.
  • OK. Then the problem is something else. Have you tried turning mod_rewrite off? Perhaps it is a mod_rewrite issue.
  • When I turned off mod_rewrite I was not able to get the "bigger" picture. For example, when I'm on the page where the image displays with the comment box, the page just refresh it I were to click on the image. (See link: boudyphotos.com) Go to any one of the galleries and then try to click on the picture to get the big picture.
  • Please delete the following lines in the file zp-core/full-image.php"
    `/* Prevent hotlinking to the full image from other servers. */

    $server = $_SERVER['SERVER_NAME'];

    $test = strpos($_SERVER['HTTP_REFERER'], $server);

    if ( $test == FALSE ) { /* It seems they are directly requesting the full image. */

    $image = 'index.php?album='.$_zp_current_album->name . '&image=' . $_zp_current_image->name;

    header("Location: {$image}");

    exit();

    }`

    and try to access the bigger picture. If this works, we will need to know about the server setup. These lines, as the comment says, are testing to see if someone is trying to link your image from a place different from zenphoto.
  • Yes this did work. What do you need to know about my server setup?
  • Actually, I need jsummers to notice this thread and figure out what to do. He is the implementor of the code you just deleted.
  • Ok. Well thank you for your help. I'm full steam ahead with 1.1.5
  • What web browser are you using to view your gallery? The code mentioned relies on the user agent (web browser) sending the HTTP_REFERER header. If the client either A) does not send the header, or B) the header is from a web domain _other_ than the gallery's, the user is forwarded to the "small" image.
  • Also, I am not having any problems accessing the full image on your site. Do you still have the anti-hotlinking code in place? Or has it been removed?

    The odd thing is that sbillard, using IE7, is having the same problem on your server, but not on his own. So I am wondering about your server configuration. Are you using IIS or Apache? Is the server behind a firewall or proxy?
Sign In or Register to comment.