Sorry, that key does not appear to be valid – WordPress error

If you get this error when requesting a new password it looks like you won’t be the only one. I wasn’t!
So I upgraded to WordPress 2.5.1 and then deleted my cache which lost my password that I didn’t write down. So usual simple thing request a new one…only this time the system didn’t work. The email arrived with the message:

To reset your password visit the following address, otherwise just ignore this email and nothing will happen.

I clicked the link and got the Sorry, that key does not appear to be valid message.

Thankfully there is a solution that I found on doing a search using Google. It’s in the WordPress forums and asks you to: Download the ZIP file with those two changed files here:
http://trac.wordpress.org/changeset/7837?format=zip&new=7837
Unzip it using WinZIP or something, then upload those two changed files to your site.
There is one change to make to the code

Just above that code it gives in wp-login.php is a line that read like this:
if ( empty($key) ) {

Try changing it to this:
if ( empty($key) || preg_match('/[^a-z0-9]/i',$key) != 0) {

Check out the full thread here

Leave a Reply

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