Hi @sshahadatgsm,
Do you have an idea, what the issue might be? In the meantime, I’ve tried renaming the .htaccess file and logging in, and looked through the wp-config, -login, and the themes functions.php files, but nothing seems to be out of the ordinary, and it still doesn’t work.
Best regards,
Paul
Hi,
I have a very similar problem, but the solution didn’t work for me.
The website I manage has a few admin users, but while all of them can still log in normally, once they are, none of them can access the dashboard. I had a look in the SQL database and all of them still have administrator privileges.
I have tried creating a new admin user through PhpMyAdmin, I tried the above code in the functions.php, tried deactivating all the plugins by renaming in the plugins folder but nothing seems to work. It creates a new admin user every time, but the new users still have the same issue as the ones that existed before.
I have run out of ideas to try to resolve the issue, so any suggestions would be greatly appreciated.
Thank you,
Paul