You’ll need access to your FTP/SFTP account. It is also a good idea to create a backup of your website before making any changes just in case. Your hosting panel should have an option to create a backup of all the files and databases.
The first thing you need to do is to disable all your plugins. A plugin conflict or issue can be causing this. When you login to your FTP account, you’ll need to navigate to “wp-content” folder. Inside this folder you will see “plugins” folder. Simply rename “plugins” folder to something else, like “plugins2”. Now, try and see if you can navigate to your WordPress admin via wp-login.php or wp-admin. If you’re able to login, then one of the plugins is causing this issue.
If you still get the same error. The next step is to disable your theme. Inside “wp-content” folder, you will see “themes” folder. Click on it. Inside it, you will see either your theme folder or you might see several different folders for other inactive themes. You need to figure out which folder is your active theme and then rename it, like we did with plugins folder. This will deactivate your theme. After this, try to login again. This should work now.
Start with those 2 steps to regain access to your admin. Let us know what worked.
^V
]]>