WordPress.org

Ready to get started?Download WordPress

Forums

Urgent 1.2.1 Password Emailed in Base64 (21 posts)

  1. Frenchie91
    Member
    Posted 9 years ago #

    I'm having exactly the same problem. Have lost login availability after moving the blog structure up one directory to root (following instructions found in thse pages). The "Retrieve password" function even sends me 2 emails with different password strings. Uploading the 1.2 wp-login file does nothing for me. The emails states UTF-8 encoding although my blog is set to ISO-8859-1. No idea if this can cause trouble. Have tried changing the password and then creating a new user directly in PHPMyAdmin but to no avail.

  2. Anonymous
    Unregistered
    Posted 9 years ago #

    This is weird !
    I found a base64 encoder/decoder here > http://makcoder.sourceforge.net/demo/base64.php
    The content of the first email is username/a password which isn't mine/my url.
    The second email, once decodes, says this "Password Lost and Changed for user: admin".
    When I type "admin" and the correct password into the wp-login.php form, it just gets wiped out and nothing happens except I get this in the address bar :
    http://www.cfdt-accor.org/wp-login.php?redirect_to=%2Fwp-admin%2F

  3. Frenchie91
    Member
    Posted 9 years ago #

    Well I'm too ignorant in such things to know what that was all about but apparently the system was changing the MD5 hash in the password field of the wp-users table. Only way out I could think of was a dumpout of all tables except wp-users, a reinstall and a dump in. Working fine now.

  4. DianeV
    Member
    Posted 9 years ago #

    Frenchie91, could you explain that again?
    You dumped all of the tables (except wp-users), reinstalled 1.2.1 and it's fine? Had your blog had any posts already? And the tables would be the .frm, .MYD and .MYI files?

  5. Frenchie91
    Member
    Posted 9 years ago #

    Yep, I used PHPMyAdmin to export all the tables from the database except WP_users in an SQL backup file. I destroyed the database. Reinstalled 1.2.1. with install.php. Deleted all the empty tables except the new WP_users with the new password and then dumped back in my backup file to recreate my tables containing all the data. All my posts, links and categories have come back and it's working fine with a brand new password.
    Don't know if we stumbled on a bug, but the whole thing was running wild and the MD5 hash was changing itself.
    By the way, I decoded your base64 stuff and it said the same as mine : Diane, a password and your URL.
    Hope you've managed to sort it without such radical mesures.

  6. DianeV
    Member
    Posted 9 years ago #

    Thanks, Frenchie91! No, I haven't sorted it out, except to replace what may be the most important 1.2.1 file with the 1.2 one for now. I'll be looking into doing what you've done, though it will be difficult if not impossible for my clients on shared hosting.
    I was a little concerned that the WP folks did not give any input or acknowledgment of this issue, given that I've mentioned this issue in about six different threads here. Are they not around?

  7. Ryan Boren
    WordPress Dev
    Posted 9 years ago #

    Check out this thread.

  8. DianeV
    Member
    Posted 9 years ago #

    Thanks, rboren (and thanks Frenchie91 for letting me know).
    I'll be trying this out later tonight, and hopefully will get through it. Much appreciation!

  9. Frenchie91
    Member
    Posted 9 years ago #

    Trouble is the extra code generates a parse error: unexpected T_ECHO on line 72. Line 72 being "else" situated just after the extra code.

  10. DianeV
    Member
    Posted 9 years ago #

    Hm. Anything more on this?

  11. Wow, no updates on this? After line 65:
    function wp_mail($to, $subject, $message, $headers = '', $more = '') {
    I just wanted to state that inserting only this line of code:
    mb_language('English');
    ...allowed me to reset my password and a readable temporary one sent to me. Thanks rboren, carthik, and podz! :)

  12. dozer
    Member
    Posted 9 years ago #

    Having the same problem. What file is it that is referenced about that needs to be changed? Can anyone out there break it down for a newbie on exactly how to fix this?? Appreciate it in advance.

  13. Insert the above code into /wp-login.php.

  14. dozer
    Member
    Posted 9 years ago #

    Ok this worked. What I did, following the advice from btvillarin was edit the wp-login.php file and insert the mb_language('English'); line as the first line in the function function wp-mail.
    One thing I will note is that the line numbers referenced didn't match the line numbers in my wp-login.php file.
    After applying the fix the password is send in english, not base 64.

  15. davidjackson
    Member
    Posted 9 years ago #

    Ok, here's one approach that worked for me:
    1. Login onto DB using phpMySQLadmin
    2. Selct Db
    3 . Browse wp_user table
    4. Edit user record; for the password field select "MD5 " from "function" drop down box. And type in new password
    5. Save record and exit.
    HTH,
    David

  16. David: Some people don't have access to phpMyAdmin. For example, I'm helping out a couple friends because they want to use WP for teaching. They announce stuff through it, in addition to the class, in case they forget. Plus, DianeV said the following:

    Simply using phpmyadmin is not a solution because some of our clients' blogs are on shared hosting accounts that do not have phpmyadmin.

  17. dozer
    Member
    Posted 9 years ago #

    diane requested a code snapshot.. here it is.
    function wp_mail($to, $subject, $message, $headers = '', $more = '') {
    mb_language('English');
    if ( function_exists('mb_send_mail') )
    return mb_send_mail($to, $subject, $message, $headers, $more);
    else
    return mail($to, $subject, $message, $headers, $more);
    }

    The added line is the mb_language.....

  18. DianeV
    Member
    Posted 9 years ago #

    Excellent!

  19. Korgmeister
    Member
    Posted 9 years ago #

    David, I just tried your solution. It didn't work.

  20. Try reseting your password manually: http://www.tamba2.org.uk/wordpress/phpmyadmin/

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.