{"id":25203,"date":"2026-11-08T03:06:54","date_gmt":"2026-11-07T23:06:54","guid":{"rendered":"https:\/\/www.hostking.host\/blog\/wordpress-login-not-working-cant-log-in\/"},"modified":"2026-11-08T03:06:54","modified_gmt":"2026-11-07T23:06:54","slug":"wordpress-login-not-working-cant-log-in","status":"publish","type":"post","link":"https:\/\/www.hostking.host\/blog\/wordpress-login-not-working-cant-log-in\/","title":{"rendered":"WordPress Login Not Working? How to Fix \u201cCan\u2019t Log In\u201d Errors"},"content":{"rendered":"<p>If you cannot log in to WordPress, start by noting exactly what happens when you try. An error under the password box, a message saying you have tried too many times, a reset email that never arrives, or a blank screen after you log in each point to a different fix. Work through the steps below in order, starting with the easiest. Most people can get back in using the first or second option.<\/p>\n<h2>Step 1: Identify what is blocking you<\/h2>\n<p>Before you change anything, find the symptom that matches your situation.<\/p>\n<table>\n<thead>\n<tr>\n<th>What you see<\/th>\n<th>Likely cause<\/th>\n<th>Go to<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>An error such as \u201cincorrect password\u201d or \u201cunknown username\u201d<\/td>\n<td>Wrong password or username<\/td>\n<td>Step 2<\/td>\n<\/tr>\n<tr>\n<td>The reset email never arrives<\/td>\n<td>Wrong email address, spam filtering or email delivery problem<\/td>\n<td>Step 2<\/td>\n<\/tr>\n<tr>\n<td>\u201cToo many attempts\u201d or a lockout message<\/td>\n<td>A security plugin or a rule set by your host<\/td>\n<td>Step 4<\/td>\n<\/tr>\n<tr>\n<td>The login page is blank or missing<\/td>\n<td>A plugin conflict or a custom login address<\/td>\n<td>Step 5<\/td>\n<\/tr>\n<tr>\n<td>A blank white screen after you log in<\/td>\n<td>A plugin or theme error (often called the \u201cwhite screen of death\u201d)<\/td>\n<td>Step 6<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>Step 2: Reset your password by email<\/h2>\n<p>The <strong>\u201cLost your password?\u201d<\/strong> link is the first thing to try. It sends a reset link to the email address saved on your user account.<\/p>\n<h3>How to request a reset<\/h3>\n<ol>\n<li>Go to <code>yourdomain.com\/wp-login.php?action=lostpassword<\/code>. Replace <em>yourdomain.com<\/em> with your own domain name.<\/li>\n<li>Enter your username or the email address you use for WordPress.<\/li>\n<li>Click the button to send the link.<\/li>\n<li>Open the email and click the reset link. Choose a new password and save it.<\/li>\n<\/ol>\n<p>If you use WordPress.com rather than a site you host yourself, the address is <code>wordpress.com\/wp-login.php?action=lostpassword<\/code>. If two-step verification is turned on, you may be sent a code by text message or email instead of a plain reset link.<\/p>\n<h3>If the email does not arrive<\/h3>\n<ul>\n<li><strong>Check your spam and junk folders.<\/strong> Search for the sender name or the word \u201cpassword\u201d.<\/li>\n<li><strong>Wait about 15 minutes.<\/strong> Email can be slow, and sending a second request too soon may cause confusion.<\/li>\n<li><strong>Check the saved email address.<\/strong> If the address on your user profile is an old one you no longer read, the email goes nowhere. Only advanced users, or your host&#8217;s support team, should check this in the database (see Step 3).<\/li>\n<li><strong>Check your mail server.<\/strong> If you run email on the same domain, a fault there can stop reset emails. Our guide to <a href=\"https:\/\/www.hostking.host\/blog\/email-delivery-failure-6-common-causes-how-to-fix-them\/\">email delivery failure and its common causes<\/a> covers the usual problems.<\/li>\n<\/ul>\n<h3>If you are already logged in to another account<\/h3>\n<p>If you still have access as another administrator, you can change the password from inside the dashboard. Go to <strong>Users<\/strong>, then <strong>Your Profile<\/strong>, generate a new password and click <strong>Update Profile<\/strong>. This only helps if someone else on the site can log in.<\/p>\n<h2>Step 3: Reset the password from the command line or database<\/h2>\n<p>If the email route fails, you can set a new password directly. These methods are more technical. If you are not comfortable with them, ask your host&#8217;s support team to do it for you. Keep a backup before you change anything.<\/p>\n<h3>Option A: WP-CLI (requires SSH access)<\/h3>\n<p>WP-CLI is a command-line tool for WordPress. It needs SSH access, which some hosts provide through their control panel. It is the safer option because WordPress sets the password itself.<\/p>\n<ol>\n<li>Log in to your site over SSH and move to your WordPress folder.<\/li>\n<li>Find your username with: <code>wp user list<\/code><\/li>\n<li>Set a new password with: <code>wp user update username --user_pass='new-password'<\/code><\/li>\n<\/ol>\n<p>Replace <em>username<\/em> and <em>new-password<\/em> with your own details. Official WordPress documentation covers resetting passwords this way.<\/p>\n<h3>Option B: phpMyAdmin (advanced users)<\/h3>\n<p>phpMyAdmin is a web tool for managing the database that stores your site&#8217;s content and user accounts. Many hosting control panels include it.<\/p>\n<ol>\n<li>Open phpMyAdmin from your hosting control panel.<\/li>\n<li>Select the WordPress database. If you are not sure which one it is, check the <code>DB_NAME<\/code> line in the <code>wp-config.php<\/code> file.<\/li>\n<li>Open the <code>wp_users<\/code> table. Your table prefix may be different from <code>wp_<\/code>.<\/li>\n<li>Find your user row and click <strong>Edit<\/strong>.<\/li>\n<li>In the <code>user_pass<\/code> field, choose the MD5 function from the dropdown and enter your new password.<\/li>\n<li>Click <strong>Go<\/strong> to save.<\/li>\n<\/ol>\n<p>After you log in, change the password again from your profile page. Setting a password through the database can cause problems with how WordPress stores passwords, so the profile page is the better long-term place to set it.<\/p>\n<h2>Step 4: Fix a lockout from a security plugin or host rule<\/h2>\n<p>A \u201ctoo many attempts\u201d message usually means a security plugin or a rule on your server has blocked your address. This protects the site from password-guessing attacks, but it can also lock out the real owner after a few mistyped passwords.<\/p>\n<h3>Check for a security plugin<\/h3>\n<p>If you can still reach the site&#8217;s files, look in the <code>wp-content\/plugins<\/code> folder for security plugins that limit login attempts. To switch one off without the dashboard, rename its folder, for example from <code>wordfence<\/code> to <code>wordfence-old<\/code>. WordPress then deactivates it. Rename it back once you are in.<\/p>\n<h3>Check for a server-level block<\/h3>\n<p>Some hosts block IP addresses after repeated failed logins. If renaming the plugin does not help, contact your host&#8217;s support team and ask whether your address has been blocked. Give them the time you were locked out, not your password.<\/p>\n<h3>Stop it happening again<\/h3>\n<ul>\n<li>Use a strong, unique password and store it in a password manager.<\/li>\n<li>Set a sensible limit on login attempts, so a few typing errors do not lock you out for hours.<\/li>\n<li>Add two-step verification where your plugin supports it.<\/li>\n<li>Read our guide to <a href=\"https:\/\/www.hostking.host\/blog\/how-to-create-strong-passwords-for-your-small-business\/\">creating strong passwords for your small business<\/a>.<\/li>\n<\/ul>\n<h2>Step 5: Fix a missing or blank login page<\/h2>\n<p>If <code>\/wp-admin<\/code> or <code>\/wp-login.php<\/code> shows a blank page, a 404 error or a page that is not your login form, a plugin is often changing the login address. Many security plugins let you set a custom login URL. If you forget it, you cannot reach the form.<\/p>\n<ol>\n<li>Rename the security plugin&#8217;s folder in <code>wp-content\/plugins<\/code>, as in Step 4.<\/li>\n<li>Try <code>yourdomain.com\/wp-login.php<\/code> again.<\/li>\n<li>If the form loads, log in and check the plugin&#8217;s settings for the custom login address.<\/li>\n<\/ol>\n<h2>Step 6: Fix the white screen after you log in<\/h2>\n<p>A blank white screen after a correct login usually means a plugin or theme has crashed. WordPress cannot show the dashboard, so it shows nothing. The fix is to turn off the most recent change.<\/p>\n<h3>Check for Recovery Mode<\/h3>\n<p>Newer versions of WordPress may send you an email with a link to Recovery Mode when a plugin or theme causes a fatal error. Check your admin email inbox, including spam, for that message. Recovery Mode lets you log in and turn off the problem plugin. Behaviour can vary between versions, so check the current WordPress documentation if the steps differ.<\/p>\n<h3>Turn off plugins using FTP or your file manager<\/h3>\n<ol>\n<li>Connect to your site with an FTP client or your host&#8217;s file manager.<\/li>\n<li>Go to <code>wp-content<\/code>.<\/li>\n<li>Rename the <code>plugins<\/code> folder to <code>plugins-old<\/code>. This turns off all plugins at once.<\/li>\n<li>Try logging in. If the dashboard loads, rename the folder back to <code>plugins<\/code>.<\/li>\n<li>Go to <strong>Plugins<\/strong> and turn plugins back on one at a time, checking the site after each one, until the white screen returns.<\/li>\n<\/ol>\n<h3>Switch to a default theme<\/h3>\n<p>If the white screen appears on the front of your site as well as in the dashboard, the theme may be the cause. In the <code>wp-content\/themes<\/code> folder, rename your active theme&#8217;s folder. WordPress then falls back to a default theme. You can then reinstall or update the theme.<\/p>\n<p>Also check the PHP error log in your control panel. It often names the file and plugin that failed. Our guide on <a href=\"https:\/\/www.hostking.host\/blog\/recover-wordpress-admin-login-without-plugin\/\">recovering WordPress admin access without a plugin<\/a> covers more ways back in.<\/p>\n<h2>Step 7: Protect yourself before the next problem<\/h2>\n<ul>\n<li><strong>Keep a current backup.<\/strong> Your host or a backup plugin can save a copy of your files and database. Store at least one copy somewhere other than your site.<\/li>\n<li><strong>Keep two administrator accounts.<\/strong> Use a second account for emergencies, with a different email address.<\/li>\n<li><strong>Check your admin email address.<\/strong> Make sure you can read it, because password resets and Recovery Mode messages go there.<\/li>\n<li><strong>Update with care.<\/strong> Test plugin and theme updates on a copy of the site first if you can. A staging site is a copy of your website used for testing. Read more about <a href=\"https:\/\/www.hostking.host\/blog\/the-importance-of-a-wordpress-staging-site\/\">why a WordPress staging site helps<\/a>.<\/li>\n<li><strong>Limit plugins.<\/strong> Fewer plugins means fewer chances for a conflict. See <a href=\"https:\/\/www.hostking.host\/blog\/keep-wordpress-websites-secure-with-fewer-plugins\/\">how fewer plugins help keep WordPress secure<\/a>.<\/li>\n<\/ul>\n<h2>Next steps<\/h2>\n<ol>\n<li>Note which symptom matches your situation in the table above.<\/li>\n<li>Try the \u201cLost your password?\u201d link and check spam for the reset email.<\/li>\n<li>If that fails, ask your host&#8217;s support team for help with a password reset or a lockout, and give them the exact error message you see.<\/li>\n<li>Once you are back in, create a backup, change your password and check your admin email address.<\/li>\n<\/ol>\n<h2>FAQ<\/h2>\n<h3>Why does my WordPress reset email not arrive?<\/h3>\n<p>The most common reasons are that the email went to spam, the address saved on your account is out of date, or your mail system is not delivering messages. Check spam first, then wait about 15 minutes before requesting another link.<\/p>\n<h3>How do I log in if I am locked out by a security plugin?<\/h3>\n<p>Rename the plugin&#8217;s folder in the <code>wp-content\/plugins<\/code> folder using FTP or your host&#8217;s file manager. This turns the plugin off, so you can log in. Rename the folder back afterwards and adjust the lockout settings.<\/p>\n<h3>Is it safe to reset my password in phpMyAdmin?<\/h3>\n<p>It can be done, but it is an advanced step. Take a backup first, use the correct database and table, and change the password again from your profile page after you log in. If you are unsure, ask your host&#8217;s support team.<\/p>\n<h3>What should I do if my site shows a white screen after login?<\/h3>\n<p>Check your email for a Recovery Mode link, then turn off plugins by renaming the <code>plugins<\/code> folder. If the problem goes away, turn plugins back on one at a time to find the cause.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you cannot log in to WordPress, the fix depends on what happens when you try. This guide walks through password resets, security plugin lockouts, phpMyAdmin and the white screen after login.<\/p>\n","protected":false},"author":3,"featured_media":25202,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"hk_meta_description":"Can't log in to WordPress? Learn how to reset your password by email, fix lockouts from security plugins, reset via phpMyAdmin and fix a white screen after logi","hk_noindex":false,"footnotes":""},"categories":[119],"tags":[395,203,201,173,394],"class_list":["post-25203","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-wordpress","tag-lockout","tag-password-reset","tag-phpmyadmin","tag-troubleshooting","tag-wordpress-login","entry"],"hk_builder":"","_links":{"self":[{"href":"https:\/\/www.hostking.host\/blog\/wp-json\/wp\/v2\/posts\/25203","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostking.host\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostking.host\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostking.host\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostking.host\/blog\/wp-json\/wp\/v2\/comments?post=25203"}],"version-history":[{"count":0,"href":"https:\/\/www.hostking.host\/blog\/wp-json\/wp\/v2\/posts\/25203\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.hostking.host\/blog\/wp-json\/wp\/v2\/media\/25202"}],"wp:attachment":[{"href":"https:\/\/www.hostking.host\/blog\/wp-json\/wp\/v2\/media?parent=25203"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostking.host\/blog\/wp-json\/wp\/v2\/categories?post=25203"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostking.host\/blog\/wp-json\/wp\/v2\/tags?post=25203"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}