Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Upgrade from 2.3: Lost all user roles
co_smo
New
Hey,
I updated from 2.3 to 2.5 and everything seems to work fine. The only thing that happened was, that all user roles were gone. What I did was to make guests "guests" again, members "members" and so on. Is that correct?
Furthermore, I had to give all existing members their "member" role again. As there are only twenty or so of them that was no big deal.
Two questions I have now:
- Is that just a little glitch or do I have to search for an underlying problem?
- As admin, when I try to view "Settings > Forum Data > Import" or "Moderation > Content > Version" I get the message that I am not allowed to do that (as admin). Could you help me with that?
Any feedback is highly appreciated. Thanks for you time guys and a big thanks to the developers.
0
Comments
I just realized, registering as a new user does not work.
Duplicate entry '3881-8' for key 'PRIMARY'|Gdn_Database|Query|insert GDN_UserRole (
UserID,
RoleID) values (:UserID, :RoleID)
This is the error message. When logged in as admin, the user gets listed though.
I would do a clean install of Vanilla and import the role table. If you do not have many custom roles that would be the best start.
**If you have a backup of your database*, simply try this one:
Thank you very much, I tried that in myPhpAdmin, but it did not help.
I would do a clean install. Can you tell me (for beginners) what I should do to save my forum entries? I do have a backup of the 2.3 database and Vanilla install.
Should I clean install 2.5 and then import the old data somehow?
Thanks a lot!
@co_smo
I think the idea is to do a separate, clean install of 2.5, then simply copy over the role table from that fresh install to your live DB. (Having made a backup of your live DB, obviously!)
That's what I have done in the past to resolve role table issues.
Thank you, understood. I made a separate clean install, exported the GND_Role table and inserted it into the live one. No change. The SQL query result is this: