Forum Replies Created
-
AuthorPosts
-
August 30, 2019 at 2:21 am in reply to: Client has installed plugin and locked everyone out of dashboard. Help!! #18836
holmpage
ParticipantI was having the same issue after installing the plugin and using my admin credentials to create a new member. There should be a BIG warning NOT to do that.
Here’s what I tried on my way to solving the problem.
Disabled the plugin by renaming it via PHP.
Removed the lines added by the plugin in .htaccess.
Deleted all the rows in the plugin’s tables via phpMyAdmin.
Disabled Wordfence and my caching plugin.
Dropped the 4 tables created by the plugin.
In the posts table, removed the 4 posts – for pages created by the plugin.
Searched the options table for anything “swpm” and deleted.Still no change. I couldn’t get into the dashboard.
Then I disabled WooCommerce via FTP so as to disable the customer login page, and went to /wp-admin. Now I was in the backend but I was just a “subscriber”, not admin.
So then I searched for how to add an admin user in phpMyAdmin, and found a tutorial at wpbeginner.com. I didn’t actually create a new user, but used the info to go to the usermeta table and compare my listing to another website db that was not affected. On the _capabilities line, under my username, I found {s:9:”subscriber”;b:1;} rather than {s:13:”administrator”;b:1;} so I changed that.
Now I’m in the Dashboard as an admin! Doing a happy dance.
Re-activated woocommerce. Deleted simple-membership and will install again as I do want it. But I will create a new user for myself and not use my admin email.
-
AuthorPosts