Locked out – no access to wp-admin after editing wp-config.php
-
After editing some lines in wp-config.php, my admin user was locked out and I cannot access wp-admin because I have no permisions.
The story
I have commented out the following lines:define('DB_CHARSET', 'utf8'); define('DB_COLLATE', '');
and then reverted the changes because they were not successful in what I was trying (to insert special characters in a post – which is not important right now).
It could have happened my wp-config.php was saved with another encoding rather than utf-8 and I have now changed it after saving the file. I do not know since I do not have a backup and I edited the file using the online file manager.
After the changes, admin was locked out of wp-admin. I can log in but have no permissions to do anything.
What I have tried to fix it
I have disabled all plugins – no success
I have disabled the current theme – no success
I have created a new admin user via PhpMyAdmin according to this guide – no success
I have made sure file permissions are okay according to this – no successThere is nothing new in error-log that could help me.
- The topic ‘Locked out – no access to wp-admin after editing wp-config.php’ is closed to new replies.