Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #477025

    Help!

    I cannot log in my WP site http://www.burton-imagery.com/wp-login.php.
    Username is burtonimagery

    History: (but I don’t expect help with my forms email issue in this ticket):The contact forms on my website aren’t arriving in my inbox once confirmed sent (using yahoo, gmail, or (Email address hidden if logged out) as recipient), so one suggestion on support forums was to reset my login password to see if ANY emails are being sent from WP. The ‘forgot your password’ link on the login page doesn’t work (page not found error), so I tried to reset it from the my Admin -> User panel today in the hope it would send an email so I could test emailing (it didn’t).

    Problem:I’ve since tried the new and old password and neither work, and I guess I tried too many times as I got an error ‘418unused which I know my host sent as a security measure. Clearing my history has got rid of the 418 error and displays the log in screen again.

    Possible solution but I need assistance: I have read I can reset my password through FTP, I have connected to this but can’t see the functions.php file, can you please tell me where is it located in the enfold folder and how do I upload the modified file (I’m beginner user)?
    1. Login to your site via FTP and download your active theme’s functions.php file.
    2. Edit the file and add this code to it, right at the beginning, after the first <?php:
    wp_set_password( ‘password’, 1 );
    Put in your own new password for the main admin user. The “1” is the user ID number in the wp_users table.
    3. Upload the modified file back to your site.
    4. After you then are able to login, make sure to go back and remove that code. It will reset your password on every page load until you do.

    https://codex.wordpress.org/Resetting_Your_Password

    Thanks in desperation!!
    Rebecca

    #477066

    OK so I looked closer and found the functions.php folder, I downloaded it in filezilla and opened it in notepad, I can see the <?php at the very top of the document. I have put wp_set_password( ‘password’, 1 ); text in.

    Question:. It says to put my own password, do i keep ‘ ‘ i,e if I were to password to TEST do I type
    wp_set_password( ‘TEST’, 1 ); OR wp_set_password(TEST, 1 );

    Before I save this and upload it (I think I do this by just copying the file back over to burton-imagery same folder location) I have decided to be safe and back up my files through filezilla (folders wp-admin, wp-content enfold/upgrades/uploads, and wp-includes) and my database (using an option in my host dreamhost which backs up the database as ‘.tar.gz’ files and sends me a link to save locally). I have never backed up before so googled how and I hope I have got everything!

    #477071

    Sorry I just noticed, that within /burton-imagery.com/wp-content/themes/enfold/enfold folder, there is a functions-enfold.php and a functions/php.

    Question: which functions.php do I put the code in?

    Thanks

    #477076

    Hey!

    You should add it to functions.php file. Please try “Through phpMyAdmin” way. It is an easier solution in my opinion.

    Regards,
    Yigit

    #477079

    do I keep the ‘ ‘ either side of the new password?

    And how to I access “Through phpMyAdmin”

    I don’t know what I’m doing, relying on instructions :) tnx

    #477084

    sorry, my tired brain is overloaded :) I see you refer to the instructions in the link I provided

    Really, you think that’s easier? the php does seem pretty easy as I know my way around filezilla now…. which one is less risky to mess up by a complete novice??

    tnx for your quick help

    #477086

    Hey!

    You can contact your service provider and they can provide you with logins :)
    Please also see – https://www.youtube.com/watch?v=tD1UNVwe82c

    Edit: You can simply follow the instructions in the video i posted above and do not mess up anything. I doubt functions.php way will work but phpMyAdmin worked for me each time :)

    Cheers!
    Yigit

    • This reply was modified 9 years, 4 months ago by Yigit.
    #477131

    cheers, love a good video. It was the same as the instructions but good reassurance , and I’m back IN!!!!!!! Phew!

    #477134

    Hi!

    Great! Glad you are back in Rebecca! Let us know if you have any other questions or issues :)

    Cheers!
    Yigit

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘option to reset WP password in themes functions.php folder???’ is closed to new replies.