Can’t log into WordPress? Try these tips

If you are having trouble logging in to your WordPress backend, here are some possible solutions:

Enable Cookies

Make sure that your browser has cookies enabled.

  1. Clear your browser cookies.
  2. Clear your browser cache.

Visit Clearing Cache and Cookies.

Disable Plugins

Some WordPress Plugins may interfere with the login. Try to disable all of your Plugins so they will not be recognized by WordPress.

You can rename the plugins folder to something else temporarily like /wp-content/old/ and they will not be recognized. Rename the folder back to /wp-content/plugins/ once the base WordPress installation is done.

Deactivate Theme

  • Rename the active theme folder in your cPanel. Once renamed, WordPress will revert to using the basic theme.
  • Once you log in again, change to a different theme.

New Login File

The wp-login.php file may have been uploaded incorrectly.

  • Delete the wp-login.php file from your server and upload a new copy.
  • Edit wp-login.php:
    • In the case retrievepassword section, found in this comment:
// redefining user_login ensures we return the right case in the email
$user_login = $user_data["user_login"];
$user_login = $user_data->user_login;

Edit Users Table

Access your site’s phpMyAdmin :

  • Open the WordPress database.
  • Click on the users table in the left menu.
  • Click on the EDIT button next to the admin user.
  • Delete whatever is in the password field.
  • Enter your new password.
  • From the Function drop-down list, choose MD5.
  • Save the info into the database.
  • Log in to WordPress using “admin” and the password you entered.

Password Problems

For information on problems logging in due to a lost password, see Resetting Your Password.

Site URL Redirecting

In certain cases your WordPress address URI may have been reset.

  • Check the siteurl value in the wp-options table of your database.
  • If it is, change siteurl to the correct value.
  • Open wp-login.php and comment or delete the following lines:
// If someone has moved it let's try to detect it
// if ( dirname('http://' . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']) != get_settings('siteurl') )
// update_option('siteurl', dirname('http://' . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']) );


In your wp-config.php try changing from:

define( 'SUBDOMAIN_INSTALL', true);


define( 'SUBDOMAIN_INSTALL', false);

Check your Firewall

Some firewalls block you from logging in to WordPress. Disable your firewall and try to log in again.

Social Shares

Related Articles

Leave a Comment

Your email address will not be published. Required fields are marked *