Having trouble password protecting an album
|
dj_segfault
Joined: 2009-11-04
Posts: 6 |
Posted: Wed, 2009-11-04 07:41
|
|
My objective is to password protect an album such that anyone (including non-logged-in guests) can access it, but only with a password. When I edit the album, in the "Password Protection" section, it says "This item is already password protected.". However, if I go to another browser with no auth (not logged in, no password entered), I can see the items and am not asked for a password. On the "Edit permissions" page, Everyone can do pretty much everything, including view all versions, but it is my assumption that even with that, one would have to enter the password to access the album. Am I misunderstanding how that all works? I don't think so, because I have another album which has a password that's working correctly, and it has the same permissions for Everybody. What can I try? Thanks in advance.
|
|
| Login or register to post comments |

Posts: 11014
I don't know how many albums you have that are password protected, but I'd try uninstalling and reinstalling the password protect module. Not just deactivate, reactivate, but uninstall. It will make any album password protected, not password protected anymore though, so you'd need to change those again.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 6
I have quite a few. If I had some reason to believe that doing all that would work, I might go through with it, but I would hate to do all that and have it not work. Thanks for the suggestion, though.
Posts: 6
I just tried to set the password again, and noticed this: It says
and stays there. Clearly something is failing near the end of the process. How can I find out what?
Posts: 11014
Ah, now we're getting to the meat of it. This is one major problem with how G2 is put together. Setting all these special permissions on stuff is extremely resource intensive and it can also create quite a performance hit on just the every day use of G2 as well.
How many items (albums and photos together) are under the album you are trying to password protect? I'm betting you're hitting a resource limit on the server. Possibly script execution timeout.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 6
It's about 360 pictures and movies broken up into 6 sub-albums. I tried doing each sub-album separately, and that worked, but then it keeps asking for the password for each sub-album. Non-ideal. But it does mean you're probably on to something.
I also noticed sometimes when I try to set a password on the main album containing the other 6 albums, it says "Changes saved successfully" (followed by the form fields) almost immediately. When it does that, it does not set the password.
I tried clearing the password on the 6 sub-albums then setting it on the parent again, but that didn't work either.
If I wanted to just make this happen, is there a database query I can execute?
Is there a way of finding out what resource is running out?
Or why it returns immediately without doing anything?
Posts: 6
If I delete the entire parent album, create a new one, password protect it, then import the child albums and images, will all the imported albums and images be subject to that password?
Would that take less resources, and therefore more likely work?
Thanks.
Posts: 11014
Most likely, but I have no clue what that would be and that could get really complex.
Instead of deleting the album, you could make a new one and then password protect that, then move the other items into it. I think the albums and passwords would be subject to the password then. It would be worth a test.
As for finding out what resources are being eaten up. I would try a few things to see if they make a difference.
--Upgrade to 2.3 (security and performance enhancements have been done since 2.2.4 which is quite old)
--Uninstall any unused or not needed plugins. I really doubt you need all of these for example and I've highlighted some potential plugins to remove:
And seeing all of those installed makes me believe this was a "one-click-install" type install when you first installed it and there are probably a ton of other plugins that are installed that you don't use.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 6
That sounds like even more work, since (AFAIK) I would have to move all 350 images one at a time from one to the other. I could do a few just as a test, but since it would take hours to use that technique, finding out whether it would work or not is academic at best.
I'm away on vacation right now (wife asleep in the other room) and don't trust the wifi enough here to do server upgrades through it. When I get back tomorrow I will upgrade to the new version (looks easy enough) and disable unneeded plugins. I guess I was "overzealous" selecting them because I didn't know there was a downside to doing so.
I really appreciate your help. Thanks.