no login form, "password is required"

When I visit my site, I am getting a message saying "A password is required for the page you requested". There is no login form. If I access the admin console, I get an empty page. I tried this in Firefox and Chrome, I cleared the cookies, the behavior is identical.

I don't use my gallery very often, but it used to work. No idea what version I'm running; if that's relevant, let me know how to figure this out.

Is there a way to reset or reinstall zenphoto to fix the problem?
Thanks!

Comments

  • acrylian Administrator, Developer
    If you get an empty page you need to review your server PHP error log. If you don't use your gallery often and it is an very old install, a server update might have rendered it or a theme or plugins incompatible. Or file/folder permissions are incorrect. But that are just guesses without log infor and no other information.

    How install Zenphoto is decribed on our install/update page you find on the download page.

    Sidenote: At least in the EU you are generally liable if for example hacks impact visitors, so I strongley recommend to visit a site every now and then to see if everything is all right and update frequently (nothing Zenphoto specific).
  • jd Member
    I tried to upgrade to the latest version but the results are worse, now I'm just getting a blank page. However, the admin console does work. I've found this in the debug log, was wondering if might sound familiar:

    `
    USER ERROR: Invalid album instantiation: Gallery object does not exist. in /home/xxx/xxx.com/zenphoto/zp-core/class-album.php on line 1221
    trigger_error called from Album->_albumCheck (class-album.php [1221])
    from Album->__construct (class-album.php [1192])
    from UnpublishEmptyAlbums (unpublish_empty_albums.php [28])
    from call_user_func_array (unknown)
    from zp_apply_filter (functions-filter.php [149])
    from include (password.php [17])
    from include (index.php [130])
    from index.php [28]
    `
    Update: I just found a plugin called unpublish_empty_albums in my plugins directory. Removing it and now things work. Now I just have to figure out how to get back to my original theme and anything else I had previously...
  • acrylian Administrator, Developer
    Good you manged to sort it out. That is a common issue of older third party plugins not being maintained and not compatible anymore. Try to re-download it bu tIt is a direct download sadly so no idea if it got any updates meanwhile:
    http://www.zenphoto.org/news/unpublish_empty_albums/

    How much work you need to do on your theme depends on how old your Zenphoto version was.
  • jd Member
    I tried that link and it's dead. I used that plugin to hide empty albums -- is there some other way to do it? I'm using zpArdoise theme, if that matters.

    BTW, thanks for responding to my messages. It's great to get an answer, even if it's only a nudge in the right direction.
  • acrylian Administrator, Developer
    Thanks for the note about the dead link. Not sure how the plugin did it (have no copy), but via the object model (http://www.zenphoto.org/news/zenphotos-object-model-framework/) it would be possible to go through all albums recursivley and set those without any content to unpublished.

    Which is probably what the plugin did as well. Maybe contact me via http://www.zenphoto.org/pages/contact/ and I get back to you so you could a copy of the plugin. Could be an easy fix and then we could host it on our "unsupported" repository at least.
  • jd Member
    I have a copy of the plugin. It's 41 lines. Would it be appropriate to post it here, or start a new topic to see if anyone can help fix it? It looks like I had to tweak the code to get it to work originally (I added a comment to the code) but that's when I had more time to play with things.
  • acrylian Administrator, Developer
    If you contact me as suggested and send it, I can take a look. We then could host it in our "unsupported" plugins repository on Github so it does not get lost. We don't actively maintain or support plugins stored there but if someone points us to something and it is not that much work or provides an actual fix we incoporate it gladly.
Sign In or Register to comment.