All Narfed Up photography and words by Bryan Villarin

Solution to garbled text password retrieval

Update: WordPress 1.5 is the latest version, so this problem should be fixed. Upgrade today.

I haven’t seen too much mention of this in the WordPress forums, but I’m hoping people don’t have to find out the hard way at the same time.

If you’re using WordPress 1.2.1, there’s a slight problem with the wp-login.php file. Try and get a new password emailed to yourself. It’ll come back in a 104 (105?) string of characters, encoded in Base64. That’s definitely not the password. You can decode that and login, though.

Developer Ryan Boren pointed out the solution, but I’ll restate it.

In wp-login.php, around line 65, look for:

function wp_mail($to, $subject, $message, $headers = '', $more = '') {

Right below it should be an empty line. Insert the following:

mb_language('English');

Save the file and upload. When you reset your password, it won’t send it to you in Base64…it’ll be in English again.

Thanks to Carthik, Ryan, and podz!


2 Comments

Thanks for the infomation. I plan up doing the upgrade sometime soon, and I wouldn’t have known about the issue if I had not visited your blog.

Your blog is great… Much infomation, plus the importent WP infomation. God knows I wouldn’t visit WP to get the same infomation.

As always you remain awesome

The world is a better place with you :-P

Thanks
- Anthony

Posted by Anthony on 13 November 2004 @ 7pm

Thanks Anth! I’m glad I can help you out. Let me know if you need any help upgrading to the latest stable version of WordPress. :)

Posted by Bryan on 13 November 2004 @ 8pm

Leave a Comment

Live Plays on Leno Gee-Mail Invites