Category Archives

Sunday, July 6th, 2008

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

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.

Search GeorgeAppiah.com
 
Travel Business