No wp-admin access anymore
-
XAMPP Windows 7, PHP 7.2, WordPress version: 5.0.3 (Classic Editor Plugin activated)
I’m developing a plugin for a WordPress website. All worked fine till yesterday. I made some experiments with redirect on user login depending on the user’s role. All worked as expected. Hours later I discovered, that after login each user has been redirected to the front page even my admin. And when I entered the backend URL (wp-admin) I got this: Sorry, you are not allowed to access this page. Even as logged in administrator. I googled a while and discovered many suggestions, what to do in this case. I cleared the browser cache and deleted the cookies, I removed all plugins from the plugins folder and all themes up to one basic theme (twentyseventeen). Nothing changed the scene. I created manually direct in the database a new admin user and could log in but still no access to the backend even for this new administrator.
I looked at the .htaccess, but it was OK. And there is no .htaccess in the wp-admin directory. I completely replaced the wp-admin and wp-inludes folder with originally folders from a WordPress Installation of the same version.Yes I have a backup from the day before yesterday. And from the files and the database I can restore many of the changes I made yesterday. The already restored backup is working fine.
But I’m scared, that this could happen any time to the production installation, when the plugin is done, as long I don’t know what happend and why. Was it my mistake, and what was the fault? Can WordPress meltdown in this way any time? Yes I’m scared as long I don’t know what happend and how I can repair it.
Any ideas?
- The topic ‘No wp-admin access anymore’ is closed to new replies.