Sunday, July 6th, 2008 at 15:50

How To Fix WordPress 2.5.1 “Invalid Activation Key” Bug (Occurs When Resetting Password)

I’ve been battling with a Spin Of Death problem on my MacBook anytime I start Firefox 3, and today, as a last resort, I completely removed Firefox including my user profile.

Problem was, I didn’t remember any of my passwords stored in Password Manager. And when I tried resetting my password on one website running WordPress 2.5.1, I was greeted with a friendly “Invalid Activation Key” message whenever I clicked on the confirmation mail.

No matter how many times I tried, I always had the “invalid activation key” problem.

Digging around the WordPress support forums, I discovered this is a known bug in WordPress 2.5.1, and has already been fixed in Ticket #6842.

If you’ve also encountered this “invalid key” problem while trying to reset your WordPress 2.5.1 password, here is how to (hopefully) fix it:

First, Apply The Patch

Head over to Ryan McCue’s Blog, grab his patched files (zipped file containing two files: wp-login.php and wp-includes/pluggable.php), and upload them to your WordPress installation directory, overwriting the existing files.

Alternatively… and this is only for the really adventurous… you can upgrade to WordPress 2.6 Beta 2 to enjoy all those cool new feature. Sure, this is beta and it’s not ready yet, but I’ve been running both the first and second betas with no issues at all. Yet.

Hopefully you should be able to generate a password after applying the patch. But if you still get the “invalid key” message…

Clear The Activation Key From “wp-users” Table

For some users, just applying the above ptch will fix this problem. But for others (myself included), this patch appears not to help at all.

But this patch actually works… except it appears that if the “wp_users” table already contains an activation key, it is not cleared before a new one is generated after installing the patch; thus, the patch appears to not work.

This seems to be the case even after upgrading to WordPress 2.6 Beta 2.

So what you gonna’ do? After installing the patch, you need to manually dig into the WordPress database and remove any activation key from the wp_users table and try the password reset again. You can do this by using your database management tool such as phpMyAdmin.

This worked for me, and I hope it works for you too. As always, just let me know if you need help with this… I’d be grad to help you.

Fixing WordPress 2.5.1 Invalid Activation key Bug

8 Responses to “How To Fix WordPress 2.5.1 “Invalid Activation Key” Bug (Occurs When Resetting Password)”

  1. Brianna on July 14th, 2008

    I just wanted to say thank you, thank you, thank you! My client’s blog had this issue and I couldn’t have fixed it without you!

    Thanks!

  2. George Appiah on July 14th, 2008

    Glad you found my website useful. Always at your service.

  3. Raphael C. Dourado on July 15th, 2008

    Thank you! ;)

  4. playpetop on August 3rd, 2008

    Thanks !

  5. Chiliberto on August 7th, 2008

    Thanks! I just found out about this, the hard way!

    Tip: If you have a lot of users like I do, you can enter this in phpMyAdmin’s SQL Query box to clear them all out at once:

    UPDATE `wp_users` SET user_activation_key = ”

  6. amapYdorimped on October 21st, 2008

    Hi,
    I am, Steven
    great posts on here
    check out my site:

    http://HOWCf60P.spaces.live.com/

  7. WordPress “Invalid Activation Key” Problem | David Bisset: Web Designer, Coder, Wordpress Guru on November 4th, 2008

    [...] How To Fix WordPress 2.5.1 “Invalid Activation Key” Bug (Occurs When Resetting Password) [...]

  8. satrio on November 19th, 2008

    i’ve been trying to update my 2.5.1 wordpress to a 2.6.7 but in the process, i accidentally delete my wordpress. its okay if i lost all of my previous posts but i’d like to get my blog back. how should i fix this problem?

Got something to say?




XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>


 



Who Is George Appiah?

a picture named George AppiahI knew you'd ask! George Appiah is a traveling technology consultant helping individuals, small businesses and non-profits leverage technology to hack poverty out of the world. Not enough for you? Find out more

Signup For George Appiah's Weekly Newsletter

Looking for more? Sign up for my free weekly newsletter packed with even more practical guides and great tips to help you hack your way through everyday challenges and live a more meaningful life.

If you enjoy the free practical guides available on this site, I bet you're going to enjoy the free newsletter as well. And it's so easy to signup! Just...


Enter Your Email Address
Enter Your First Name

NOTE: I *hate* spam as much as you do... perhaps even more. I promise to keep your email address confidential and I will NEVER share it with anyone. And you can easily unsubscribe at any time.

What I'm Currently Reading:
 
Webmasters Masters Course