I had to mass change usernames on my Drupal installation, after which all the users have empty albums, though old albums are still there. What is the best way to give them access to their old albums?
I have this in Changelog.txt file:
Version 2.0 - Released 3/25/06
- Gallery 2.1 support. NOT BACKWARDS COMPATIBLE WITH GALLERY2 2.0.X
But I am not sure of the version of the module. I do not want to upgrade to later versions because of possible problems. I have lots' of users on my site with albums and I have fully functional Gallery2 except this problem with changing usernames.
Can anyone give share with advice, please. Thank you beforehand!
Comments
Comment #1
profix898 commented1. You are still running Gallery 2.0.x instead of the most recent stable version Gallery 2.2.x? The gallery module 5.x-2.x series is not designed to work with that Gallery version in the first place (it was never tested and might cause some weird side effects) and you should really consider updating your Gallery 2 installation for security reasons as well.
2. How did you mass rename users? I mean the latest gallery module takes care of changes in G2 when a Drupal user is being updated. Did you do the rename manually on the db level or at a time when G2 was unplugged? It helped if you could provide some details about your mass rename. Changing a username in G2 usually does not break item/album permissions, so I guess something went wrong with synchronization or something ... (Also note that 5.x-1.x series and earlier did not handle username changes properly.)
Comment #2
yngens commentedThank you profix898,
1. Can you please tell how could I identify my gallery.module and Gallery2 versions for sure? Because, as I told above Changelog.txt of the module file gives this controversial information:
I am confused if I have 2.0 or 2.1 version of the module.
2. I mass renamed usernames in Drupal installation, not in Gallery2. And yes this problem is about synchronization - after changing usernames in Drupal installation Drupal user accounts refuse to synchronize with the existing Gallery2 accounts, but instead new accounts are created.
If you say, that latest versions take good care of this problem, then I probably need to go ahead and update Gallery and the module. I am just afraid that something could go wrong, because I had lots' of headaches with this tandem of software in the past. And for long time I had smoothly working synchronization. But now I guess it is time to move forward.
But to say frankly besides I am afraid something could go wrong, I am also confused what would be right order (sequence) of steps in update process. Should I first update Gallery2 and them the module? Or it doesn't matter?
Comment #3
lvthunder commentedYou can see the G2 version by going under Site Admin and click the Maintenance tab. I think Drupal will tell you the version in the modules page where you install and uninstall modules.