Whether you have been locked out of your WordPress dashboard? Or the login page does not open at all? Here are 6 ways to solve the problem can not log into your WordPress admin.
There are many reasons that may prevent can’t login to WordPress dashboard. For example, database connection errors, server internal error, and others
Imagine trying to access the WordPress dashboard, but every time you enter your login credentials page will be refreshed. How can you fix this problem?
In this article, we try to explain what happens when you can’t login to WordPress admin and how to fix it.
How to Fix Can’t Login to WordPress Admin:
Delete cache and cookies
One of the easiest ways to fix this problem is to delete the cache and cookies. A cookie is a small piece of data that is sent from a website and stored on the user’s computer with a browser.
You can disable this option from your browser settings. But do not forget to enter the WordPress page requires cookies. As you may already know each login page using your browser’s cache.
using a WordPress cache as well. So, sometimes with clear cache and cookies and restart your browser, you can gain access to your WordPress dashboard.
Here’s how to delete cookies and cache in chrome:
- Click on the three dots in the right corner of the screen.
- Click on History (and then History)
- In the new window click on Clear browsing data
- Choose both cache and cookies
- Set Time range to All Time
- Click on Clear Data
Change admin password via phpMyAdmin
Due to security purposes, users tend to change their passwords a lot, and they may forget their last password.
If you forget your password and can’t login to WordPress admin, from the login page click on “Forgot your password”.
WordPress will send you an email where you can change your password. But what if you do not have access to your email?
Fortunately, there are ways to solve this problem. You can change your password via phpMyAdmin in your cPanel. To do this, follow these steps:
- Open cPanel
- In the database, section looking for “phpMyAdmin”
- Once the page is open in the top bar click on “Databases” so that you can see every database available
- Select your website database
- Look for _users in WordPress sites this table is called wp_users
- Once you found it, click on edit
- n user_pass enter your password in “value” section
- Make sure you change “Function” to “MD5”
- Once you’re done, click Go to save changes
Now open your WordPress log in page and enter your new credential.
Disable WordPress plugins via FTP
If you can’t login to WordPress admin consider that sometimes the plugin can interfere with your login page. This usually happens when your plugins are not synchronized with each other.
To fix this problem, you must disable all of your plugins. But how can you do that when you can not access your WordPress dashboard?
To do this you need to use your FTP account and disable the plugin through the host. Looking for your WordPress files and go to the / plugins wp-content. now change the name of the plugin folder to something else.
You can rename it to anything, for example, plugins_old. thus plugins will be disabled. Now try to get into your WordPress dashboard. If this fixes the problem then it means that one of the plugins you are interfering with your login page.
Disable WordPress theme via FTP
Just like plugins, themes can also interfere with your login page. Typically, this occurs when the theme is not compatible with some versions of WordPress.
To fix this problem you need to disable your theme. To do this, use FTP to enter your root directory.
Head to the wp-content / themes and by simply changing the name of “theme”. You can disable your theme enabled. Thus, WordPress will not be able to find the folder and will automatically activate the default theme. Once you’re done, try to log into the WordPress dashboard.
Additionally, if you’re using the default theme, you need to follow the steps mentioned above. After gaining access to make the dashboard you sure you update your theme. Sometimes even the default theme can disrupt the login page.
Re-upload wp login.php
If wp login.php moved or deleted, you will not be able to access your dashboard at all. To fix this problem you need to re-upload the file. Before making changes recommended that you backup your WordPress.
- Head over to your hosting and find the folder you have installed your WordPress and look for wp-login.php
- Download WordPress’ latest version and look for wp-login.php
- Upload the new file in your WordPress directory
- Open wp login.php and look for redefining user_login
- Right after the PHP code, copy and paste the code below:
// Delete this line
$user_login = $user_data["user_login"];
// Replace it with this line
$user_login = $user_data->user_login;
Save changes and try to log in to your WordPress dashboard.
Generate a new .htaccess file
Sometimes one line in .htaccess files can break your WordPress log in page. If the file is corrupted it can cause many problems such as “login page refresh error”.
To fix this problem you need to go to the root of your hosting. First, make a backup of the .htaccess file.
Then delete the .htaccess from your host / directory. Once you have deleted a file you try to sign into your WordPress dashboard.
If you succeed, you’ll need to create a new .htaccess file. To do so, head to your dashboard, go to settings> permalinks and click save.
You May Also Like This: