Empty Page in Default and Testing Theme, works in Stopdesign

I have been browsing around here for some time and couldn't find the same problem posted anywhere, so I'll give it a shot because I love Zenphoto and really hope that I'll get it to work on my server.

Initially, I could not see any thumbnails or full-size pictures, but set the mod_rewrite to false, and that seemed to do the trick - the thumbnails were there. When I try to open the album, however, I get an empty (not blank) page in the default theme. Same with the testing theme. Strangely enough, I get a functional gallery with Stopdesign. I could just accept it, but I do prefer the default Zenphoto theme, so if anyone knows what I could try, I'd be really grateful.

This is the gallery:
http://hellagood.pytalhost.com/zenphoto/

Direct link to one of the images:
http://hellagood.pytalhost.com/zenphoto/albums/the-killers/IMG_3786.JPG
(bad quality, just to show that it's actually on the server)

And according to the test.php output, my server has got this to say on "GD":

gd
GD Support enabled
GD Version bundled (2.0.28 compatible)
FreeType Support enabled
FreeType Linkage with freetype
FreeType Version 2.1.7
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled

Thanks in advance,
Julia

Comments

  • I just noticed something else: When I browse the pictures in Stopdesign, and then switch to the default theme (in a different Firefox tab), I am still able to see and browse them in that theme:

    http://hellagood.pytalhost.com/zenphoto/index.php?album=the-killers&image=IMG_3852.JPG

    Returning to the album index page still results in an empty page though...

    TIA,
    Julia
  • Julia,
    I am having the same problem with a slight twist. It was working last week for me. Here's the weird thing, it was working last week on the previous version of zp. I got an email asking why I took down my gallery. I hadn't of course. So I thought, well, maybe upgrading will help. I can't figre it out either, but it's exactly as you've said up above. Empty page, not blank. What version of PHP are you using?
  • Alright, I just figured it out!!!

    That theme doesn't like php 5 (other themes?). My host has both php 4.4 and 5 installed and I have a user defined handler that says all php files to be processed by php-5. I deleted that handler and it started working again. My php isn't that strong, so it will take me a while to figure out what's freaking out. If any php junkies out there can look into this, that'd be AWESOME!

    kjo
  • Ooh that might be it - my server has got PHP 5.2.0... not that there's much I could do with that, unfortunately. My PHP "skills" are basic at best, and the server doesn't have PHP 4.

    I noticed that opening the page in IE (Win) will display "<a href=" on the album page which I thought was odd, since I still get the completely empty album on Firefox (Mac+Win).
  • I have the same problem. And I just tried it in IE and I also get "<a href=" on every theme exept on the Stopdesign theme. There is everything working just fine!

    Yesterday everything was just working fine! But today just isn't my day!... hope that anyone has a solution.

    Wouter
  • I too am having this issue.

    I installed zenphoto on my server running IIS 6.0 with MySQL 5.0 and PHP 5.2.0 (gd2 enabled) and everything works great except for the album page. I can see the main page with a list of my albums and I can see the thumbnails, but when I click on them it simply shows a blank page (blank template page). If I manually type the link to a picture within an album it shows up fine and I can click on next and view all the pictures withing the album, but when I go back to the album's main page it is blank (and shows "<a href" in IE).

    I have been able to run zenphoto on this server in the past with no issues. Is this an issue with the new version on PHP?
  • Hmm, the evidence so far seems to support this... I installed ZP 1.0.3 on a free webserver (with annoying pop-ups, so sadly hosting my gallery there is not an option) running PHP 4, and it works, so it might indeed be the PHP version causing this, as discovered by kjo.

    Let's just hope this is resolvable somehow...
  • I fixed it for my system!

    You will need to make the following change to the php.ini file on your server:

    Find the line "zend.ze1_compatibility_mode = off" and change it to "zend.ze1_compatibility_mode = on" (without the quotes).

    This seemed to fix the issue for my configuration... Hope that helps!
  • Sounds good, but sadly I don't have permissions to make changes to the php.ini file on my server :(

    Is there any way to solve this within the ZP files?
  • trisweb Administrator
    I've taken a look at this and based on the output of the script, it's failing on the weirdest of functions...

    `<?php echo getGalleryIndexURL();?>`

    My guess is that execution fails there with an error, but y'all have the PHP setting to supress errors turned on (which is good for security but hard for debugging). I'll look into it more now, be back later.
  • trisweb Administrator
    Actually I've suppressed the error myself, go figure.

    One of you with the problem want to do a little hacking?

    Go to line 581 in classes.php, remove the '@' symbol in front of array_search, reload your album, and come back with the error message. I probably already know what it is though -- something about bad type for array_search...

    (Technical explanation)
    I tried to use an object as the needle and an array of objects as the haystack to find the index of the album. See, albums/images were formerly represented as instantiated objects in the internal data structures--not so anymore, since I made performance improvements, we now keep everything as strings in the album/image arrays, and throw around strings to access them -- all much faster (and more robust, obviously) than objects (these improvements are in SVN but not yet released). That was all to get the gallery page number the current album is in.
    (End technical explanation)

    Like I said in the tech. babble, the fix is already in the codebase and has been for some time, but I know that doesn't help much until I release something. Maybe I'll release what I have now for this and the performance improvements...

    Anyway, the temp fix, if you want your galleries to work is this:

    In the file [zenphoto basedir]/zen/classes.php, change line 338 from:
    ` var $index;`
    to
    ` var $index = 1;`

    This will unfortunately make the link back to your gallery always go to page 1, but it's better than a blank album! Let me know how it works.
  • Oh wow, thank you sooooo much, trisweb! Not just for the fix, but for writing Zenphoto in the first place :)
Sign In or Register to comment.