Only admin accounts can see most images after server move

Honestly getting tired of constant issues with zenphoto these days ... it used to be so low maintenance!

Anyway - its probably something stupid on my part, but for some reason only admin accounts can see images. Depending on which normal account is logged in, they can see different albums... some can see one album, others can see 5 or 6 but with ? as the album thumbnail and then no images inside it.

It's a private gallery, and I have run it for 4 or 5 years now so I usually know what I am doing with permissions etc. All albums are published, all albums are fully functional with any admin account, all normal users have view gallery, view full images, post comments etc etc.

The server move went "otherwise" without a problem. I moved over the albums to the new server, slapped on a fresh upload of zenphoto and ran the upgrade all without errors.

Someone wanna give me a cluestick here?

Comments

  • acrylian Administrator, Developer
    So are the images published as well? Logged in admins with necessary rights could always see unpublished items. The default setting is unpublished for gallery items. So if you moved to a fresh install and did not follow the server moving instructions using the database tool they are now unpublished because copying them directly without that makes them "new".

    You say you run it for 4-5 years. So what version is it? Did you updgrade from a 4-5 year old version. Way back there was not even a proper rights management so things might have changed.
  • Let us be clear: if only admin accounts can see things then those things are NOT PUBLISHED no matter what you think. Both the image and the alubm must be published for no-admin users to see them.
  • seer Member
    Yes I upgraded to the latest version at the same time as the server move. I have moved servers probably every 12 months always upgrade each time.

    I still don't know what the root cause was but I have solved the symptoms with a DB query.

    Viewing though the albums tab of the admin panel, all the albums and subalbums seemed to be published. However when I dug into the database I found the that they were not all published! A quick query on the db to directly update everything to published and everything is golden again :)

    I can only assume some weird browser/cache bug was causing them to appear as published and thus the ensuing confusion!

    So I guess that there are two take aways from this:

    1. why did migration to new server / zen version lead to the vast majority of (previously published-state) albums becoming unpublished?

    2. If what the browser is showing you does not ring true, then its probably not true and you should always get your hands dirty in the DB to check the 'facts' :)

    Either way I am happy that the problem is solved, shortly before I post a new problem on RSS :)
  • acrylian Administrator, Developer
    Re: 1. Did you follow the moving instructions? If you just copied your images/albums via ftp to the new server without restoring the datasbase they are considered new. And default status for new items is unpublished.
  • If what the browser is showing you is not true you should probably get a better browser, one that does not insist on caching web pages even when the date information has changed.

    It is not at all clear why the publish state would not be consistent after the move. Defaults do apply universally. So more likely the move process did make some items seem "new" that you did not intend. You do know that the default for publishing is settable to whatever you desire?
  • Have you activated the static_cache_html plugin? If so, turn it off for now. While it's a good extension for a fully installed gallery (i.e. stable, finalized theme, etc), it sometimes offers surprises in the installation stages.
  • acrylian Administrator, Developer
    Well, actually if you are logged in as master admin or with wide rights it is disabled.
Sign In or Register to comment.