So...the main admin of an elgg site I put together deleted their account. I can still get access to the site, but it appears that there are now many issues with various plugins, etc.
What's the best way to restore the site to how it was with an Admin account, or do I need to go into the database and do this?
Any pointers would be very welcome as it has come a bit of a shock to the previous admin!
Thanks.
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- Kevin Jardine@kevin
Kevin Jardine - 0 likes
- Rho@rhoT
Rho - 0 likes
- Cash@costelloc
Cash - 0 likes
- Rho@rhoT
Rho - 0 likes
- DhrupDeScoop@Dhrup2000
DhrupDeScoop - 0 likes
- Cash@costelloc
Cash - 0 likes
- Register user
- Write a plugin that gets the user using username or guid or whatever
- Set the admin metadata to true
- Rho@rhoT
Rho - 0 likes
You must log in to post replies.Restore from a backup.
Deleting the main admin account deletes everything that admin owned, which for the initial admin is a lot.
oh dear, I thought as much. Thanks for the response.
r
If you are running 1.7.1, you can open up the database - users table - and change the admin field of one of your users. Then it should just be a matter of activating plugins again.
Cheers Cash, how about if they are running 1.6.x and then upgrade to 1.7.1 and then change the admin field in the database?
@Rho
$user->admin = true;
I wouldn't recommend upgrading to 1.7.1 while you have this problem. Better to correct ir first. Elgg 1.6 used metadata (rather than a user attribute) to indicate that a user is admin. Your best option is to write a plugin that does something like Dhruva is suggesting:
Thanks guys, much appreciated. I'll start looking into your suggestions this afternoon.