{"id":32725,"date":"2013-03-14T19:29:15","date_gmt":"2013-03-14T13:59:15","guid":{"rendered":"https:\/\/www.quickonlinetips.com\/archives\/?p=32725"},"modified":"2021-01-07T19:29:45","modified_gmt":"2021-01-07T13:59:45","slug":"how-to-use-emergency-wordpress-password-reset-script","status":"publish","type":"post","link":"https:\/\/www.quickonlinetips.com\/archives\/2013\/03\/how-to-use-emergency-wordpress-password-reset-script\/","title":{"rendered":"Emergency WordPress Password Reset Script Can Fix WordPress Login Errors"},"content":{"rendered":"<p>Have your ever used the Emergency Password Reset Script to resolve <strong>WordPress login errors<\/strong>? Today I had a shock as I could not login to one of our smaller WordPress blogs, and the password stopped working! The <strong>Forgot password link<\/strong> which was supposed to send the password to the account email, failed to do so as no email was\u00a0received\u00a0 Although the username was same, the password despite repeated tries did not work.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-32727\" src=\"https:\/\/www.quickonlinetips.com\/archives\/wp-content\/uploads\/forgot-wp-password.png\" alt=\"forgot wordpres password\" width=\"335\" height=\"358\" border=\"1\" srcset=\"https:\/\/www.quickonlinetips.com\/archives\/wp-content\/uploads\/forgot-wp-password.png 335w, https:\/\/www.quickonlinetips.com\/archives\/wp-content\/uploads\/forgot-wp-password-280x300.png 280w\" sizes=\"(max-width: 335px) 100vw, 335px\" \/><\/p>\n<p>There seemed to be no way to login, as the username and password did not match and the forgot password email never reached. Fearing the worst and a <a href=\"https:\/\/www.quickonlinetips.com\/archives\/2010\/07\/qot-hacked\/\">hacking event<\/a>, I was reminded of the <strong>Emergency WordPress Password Reset Script<\/strong> which I have used once earlier, and would like to share my experience of how it works.<\/p>\n<p>There are other ways using the MySQL Command Line, PHPMyAdmin which you can try first if you have access to these tools on your hosting server.<\/p>\n<h2>Emergency Password Reset Script<\/h2>\n<p>Here is the <a href=\"https:\/\/codex.wordpress.org\/User:MichaelH\/Orphaned_Plugins_needing_Adoption\/Emergency\" target=\"_blank\" rel=\"noopener noreferrer\">emergency script code<\/a>\u00a0 on the official WordPress site. Simply copy the code and paste in a simple text editor like Notepad. Save the file as<strong> emergency.php<\/strong>.<\/p>\n<p>Then upload this file via FTP to the root of your WordPress installation (This assumes you still have FTP access to your server, and you can use any FTP client like Filezilla). So if your WordPress is installed under domain.com, you now need to visit <em>domain.com\/emergency.php<\/em><\/p>\n<p>Here is what form screen you are greeted with.<br \/>\n<img decoding=\"async\" class=\"alignnone size-full wp-image-32728\" src=\"https:\/\/www.quickonlinetips.com\/archives\/wp-content\/uploads\/wp-emergency-script.png\" alt=\"wordpress emergency script\" width=\"430\" height=\"545\" border=\"1\" srcset=\"https:\/\/www.quickonlinetips.com\/archives\/wp-content\/uploads\/wp-emergency-script.png 430w, https:\/\/www.quickonlinetips.com\/archives\/wp-content\/uploads\/wp-emergency-script-236x300.png 236w\" sizes=\"(max-width: 430px) 100vw, 430px\" \/><\/p>\n<p>Simple enter your same username (this assumes you remember the username) and the new password. Since you have to type the\u00a0password\u00a0only once, remember it well (and do not forget the CAPS LOCK key is off). Once you update options, you are greeted with the following message &#8211;<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-32729\" src=\"https:\/\/www.quickonlinetips.com\/archives\/wp-content\/uploads\/password-changed.png\" alt=\"password changed\" width=\"395\" height=\"86\" border=\"1\" srcset=\"https:\/\/www.quickonlinetips.com\/archives\/wp-content\/uploads\/password-changed.png 395w, https:\/\/www.quickonlinetips.com\/archives\/wp-content\/uploads\/password-changed-300x65.png 300w\" sizes=\"(max-width: 395px) 100vw, 395px\" \/><\/p>\n<p>Well the new password again never reached!<\/p>\n<p>But you can now login at <em>domain.com\/wp-admin<\/em> and type your username and new password. You should now be able to login.<\/p>\n<p><strong><em>Why did WordPress login error happen?<\/em><\/strong> We did not change the password but it stopped working. Don&#8217;t know why.<\/p>\n<p><strong><em>Why did WordPress password recovery email never reach?<\/em><\/strong> When we checked into <em>Users&gt; Profile<\/em>, there was the email of an ex-admin user!! (he was getting \u00a0our password reset emails!) This was a very important lesson learnt and fortunately we were able to <del>recover the password<\/del> reset the password.<\/p>\n<p><span style=\"color: #ff0000;\"><strong>WARNING:<\/strong><\/span> It is very important that you now <strong>delete emergency.php<\/strong> file on your server right away. Anyone else can simply type your URL and reset password of your WordPress blog.<\/p>\n<p><span style=\"color: #ff0000;\"><strong>Note:<\/strong><\/span> the script message is very clear that it may not work for you and you should use it AT YOUR OWN RISK as a last resort. We and the script makers take no risk and liability for something going wrong on your site by using this script.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Have your ever used the Emergency Password Reset Script to resolve WordPress login errors? Today I had a shock as&#8230;<\/p>\n","protected":false},"author":4,"featured_media":32727,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","footnotes":""},"categories":[6,7],"tags":[49,17],"class_list":["post-32725","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blogging","category-security","tag-tutorials","tag-wordpress"],"_links":{"self":[{"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/posts\/32725","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/comments?post=32725"}],"version-history":[{"count":0,"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/posts\/32725\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/media\/32727"}],"wp:attachment":[{"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/media?parent=32725"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/categories?post=32725"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/tags?post=32725"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}