Recovery troubleshooting guide
WordPress password reset not working?
Work from the least invasive check to the most powerful. A broken email, an old reset link, the wrong database table, or an authentication plugin can each look like the same password problem.
Check delivery and the account’s actual email address before changing a password manually.
Request a fresh reset link and use the newest complete URL in the same browser session.
Verify the account, target site, password format, and any plugin or SSO login flow.
Match the symptom to the next check
This guide is about making the normal reset work. If you just need to get in by any authorized route, the overview of every reset method lists the alternatives in order of safety.
| Symptom | Likely area | Best next action |
|---|---|---|
No reset email | Mail delivery or wrong account email | Confirm the user email and inspect the site’s mail delivery setup. |
Invalid link | Old, incomplete, or superseded link | Request one new reset and open the newest full URL. |
Password rejected | Wrong account, wrong site, or authentication override | Confirm the user and test the site’s actual login path. |
Manual reset fails | Wrong _users table or incompatible value | Check the prefix and use WordPress or WP-CLI to create the hash. |
When the email never arrives: test wp_mail()
WordPress sends the reset link with wp_mail(), which by default hands the message to PHP's mail() function and reports success the moment PHP accepts it — whether or not anything is ever delivered. Many hosts disable or rate-limit mail(), and receiving providers increasingly reject unauthenticated mail from web servers. Test it directly from the shell:
wp eval 'var_dump( wp_mail( "you@example.com", "WP mail test", "OK" ) );'
bool(false) means WordPress could not hand the message off at all — PHP mail is disabled or misconfigured. bool(true) with nothing in the inbox or spam folder means the message left WordPress and was dropped further along, usually for missing SPF, DKIM or DMARC alignment. Either way, the durable fix is the same: send through an authenticated SMTP or transactional email service, configured with an SMTP plugin or your host's mail integration, rather than retrying the reset.
Two details explain most "invalid link" reports. A reset link is valid for 24 hours by default — the password_reset_expiration filter can shorten that — and the key behind it is stored, hashed, in the account's user_activation_key column. Each new request overwrites that key, so only the most recent email works; clicking an older one in the same inbox always fails.
Follow this recovery sequence
- 01Confirm the login URL and account identity.
Make sure you are on the intended site—not staging, a subsite, or an old domain—and verify the account by login or email.
- 02Try one fresh email reset.
Use “Lost your password?” once, then check mail delivery and junk folders. Open the newest reset link in full; do not reuse copied fragments from an older request. If email never arrives site-wide, not just for this account, the underlying cause is usually that the host blocks PHP's mail() function — configuring a real SMTP connection (via a dedicated mail plugin or the host's transactional email service) fixes it far more reliably than retrying.
- 03Use WP-CLI when shell access is authorized.
Run the interactive password reset flow so WordPress handles hashing. See the WP-CLI recovery guide for the command and safeguards.
- 04Only then inspect the database path.
Locate the correct users table, identify the authorized account, and use the phpMyAdmin guide for a deliberate fallback.
- 05Investigate authentication customizations.
Security plugins, membership systems, single sign-on, LDAP, and multisite role rules can change the normal login flow. Review their logs and configuration rather than overwriting more password values. If the reset works but wp-admin is still unreachable right after a host move, the locked-out-after-moving-hosts guide covers the causes that have nothing to do with the password.
Why a database reset can appear to succeed but still fail
Saving a value in phpMyAdmin only proves that a database row changed. It does not prove that it was the right WordPress installation, the right users table, the right account, or a password format the site will accept. Current Core-generated hashes begin $wp$2y$; a plain $2y$ value is not equivalent.
If any link in that chain is unknown, stop and confirm it. The users-table guide helps with the first two checks, and the hash-format guide explains the third.
Once access is restored
- Set a fresh password through the normal WordPress profile screen and store it in a password manager.
- Fix the underlying recovery weakness: mail delivery, an incorrect account email, or missing two-factor recovery codes.
- Review the account's application passwords; they keep working after a password reset and should be revoked if you do not recognize them.
- Remove temporary hashes, exports, screenshots, and support notes containing sensitive values.
- Document the correct site, login path, and recovery owner without documenting the password itself.
Quick answers
How long is a WordPress reset link valid?
By default, 24 hours from the moment it's requested. Requesting a new link invalidates the previous one, which is why reusing an old emailed link — even one that looks unused — often fails silently.
Can I reset a password without email working at all?
Yes, with authorized access to the server or database: WP-CLI's wp user update --prompt=user_pass is the cleanest route, with the phpMyAdmin procedure as a fallback when shell access isn't available. Neither depends on outgoing mail.
The reset email arrives but the link says it's invalid — why?
Usually because it's not the newest link (a later request silently superseded it) or because part of the URL was truncated by an email client. Request one fresh link and open it in full rather than a forwarded or copied fragment.
Primary reference: WordPress password and login recovery guidance.