Problem with viewing galleries

Help, I have a problem with a previously solid installation of Zenphoto (1.03). I can view my main gallery page (http://www.japikse.com/photography/) but I cannot view any albums. However, I can view all of the administrative pages (http://www.japikse.com/photography/zen/) This previously happened once and went away on its own. This time the problem does not appear to be self resolving. I tried switching themes and still had the same problem. This account is on dreamhost and I am using php 5.1.2 without mod_security (just removed per some google inspired idea). I would be grateful if someone could help me figure out how to fix this problem. I know python but know nothing about php. Thanks!
Rusty

Comments

  • trisweb Administrator
    The blank gallery problem.... hmm... it's come up before and someone found out how to fix it. It was this: http://www.zenphoto.org/support/topic.php?id=904&replies=9 But I don't think that's the problem...

    This is where your HTML ends:
    `


    Home »

    <a class="nobold" href="`

    Which is very weird. It seems like the printGalleryLink function is killing the whole script. I'm checking it out now.
  • trisweb Administrator
    OK, if you're willing to try some stuff, we're going to make some changes to `functions-db.php` to see if we can't track this down.

    1. On lines 17 and 23, remove the '`@`' symbols in front of the two `mysql_...` functions.

    2. Change line 37 to:
    `$result = mysql_query($sql);`
    removing the `or die(...)` part.

    Then come back and let me know what that did...
  • Thanks for the info. I made the changes to functions-db.php and ai also verified that everything was ok per the other thread. I am seemingly still at the same place - any ideas?
    Cheers,
    Rusty
  • trisweb Administrator
    So you are... very very very strange... seems like it's exit()ing prematurely, but I don't know why. If you know kinda what you're doing, go through the code and delete every reference to `die()` or `exit()` and see which one of those is the problem...

    (Or if you want, I'd love to do that for you and give you a custom version to test...)
  • Thanks,
    If it is not too hard, I would like to go for the custom version. Right now I am in Bolivia, so ssh editing sessions can be a little slow. I will be out tomorrow, but should have time on Thursday afternoon.
    Cheers,
    Rusty
  • trisweb Administrator
    First I'm going to have you upgrade to the new version that'll come out tomorrow. We'll see if that does it. Then I'll start on the custom debugging code...
  • Thanks! Everything is working great again. Also, I never took the opportunity earlier, but thanks for great software (even if it's not in python!).
    Rusty
  • trisweb Administrator
    Ha! I wish it could be in Python!

    The bottom line is that it's most useful to the most number of people if written in the most popular language with the most widespread server support. It's a sad truth, but PHP is it, and PHP4 at that. So I try to do PHP4 as elegant as humanly possible... it's not alright I guess... :-)
  • trisweb Administrator
    Oooh, and 1.0.8.1 fixed your problem? Excellent :-) Hopefully it doesn't come back. Let me know if it does...
Sign In or Register to comment.