Initiate WordPress Recovery Mode | Fix Errors

If you need to regain access to your site. WordPress has a new feature called recovery mode. An email will be sent to the administrator email address in time.

But if you discover the error before and want to fix it immediately. You can start recovery mode by adding


The email link is just a simple link with the above code added to the end of it.

If you end up at wp-login.php page and site won’t load try changing the URL to /wp-admin/

If you do have ftp access to your website. You may need to force showing files

Re name plugin directory to 1plugins. That will force WordPress to deactivate all plugins and then hopefully you can login.If not check your .htaccess file located at the root level of your website, usually same folder as wp-admin and wp-includes. With the file open then delete everything in it. Get a copy of the default .htaccess file.

Then switch 1plugins back to plugins and you can enable your plugins again. And try to figure out which one caused the issue.

It could also be that a virus or malware has infected your website, check out my comment on inmotion hosting on ways to deal with an infected website click here to see. We also have sets of CompTIA Questions which are researched, designed and formatted by Pinguis Web

To Change Your Password follow the steps below

To change your password in current versions:

  1. In the Administration Screen, menu, go to Users > All Users.
  2. Click on your username in the list to edit it.
  3. In the Edit User screen, scroll down to the New Password section and click the Generate Password button.
  4. If you want to change the automatically generated password, you can overwrite it by typing a new password in the box provided.
  5. The strength indicator will show you how complex (strong) your password is.
  6. Click the Update User button.

Your new password becomes active immediately.

If the above solutions listed don’t work, then try the Emergency Password Reset Script. Please note that it’s not a plugin, it’s a PHP script. You will have to have FTP access.

How to use the Emergency Password Reset Script

  1. The Emergency Password Reset Script requires that you know the administrator’s username.
  2. It updates the administrator password and sends an email to the administrator’s email address.
  3. Even if you don’t receive the email straight away, the password will still be changed.
  4. You do not need to be logged in to use it.
  5. Place the script in the root of your WordPress installation. Do not upload it to your WordPress Plugins directory.
  6. Always for security reasons, remember to delete the script when you are done.

The emergency password reset script below

require ‘./wp-blog-header.php’;
function meh() {
global $wpdb;
if ( isset( $_POST[‘update’] ) ) {
$user_login = ( empty( $_POST[‘e-name’] ) ? : sanitize_user( $_POST[‘e-name’] ) );
$user_pass = ( empty( $_POST[ ‘e-pass’ ] ) ? : $_POST[‘e-pass’] );
$answer = ( empty( $user_login ) ? ‘<div id=”message” class=”updated fade”><p><strong>The user name field is empty.</strong></p></div>’ : );
$answer .= ( empty( $user_pass ) ? ‘<div id=”message” class=”updated fade”><p><strong>The password field is empty.</strong></p></div>’ : );
if ( $user_login != $wpdb->get_var( “SELECT user_login FROM $wpdb->users WHERE ID = ‘1’ LIMIT 1” ) ) {
$answer .=“<div id=’message’ class=’updated fade’><p><strong>That is not the correct administrator username.</strong></p></div>”;
if ( empty( $answer ) ) {
$wpdb->query( “UPDATE $wpdb->users SET user_pass = MD5(‘$user_pass’), user_activation_key = ” WHERE user_login = ‘$user_login'” );
$plaintext_pass = $user_pass;
$message = __( ‘Someone, hopefully you, has reset the Administrator password for your WordPress blog. Details follow:’ ). “rn”;
$message .= sprintf( __( ‘Username: %s’ ), $user_login ) . “rn”;
$message .= sprintf( __( ‘Password: %s’ ), $plaintext_pass ) . “rn”;
@wp_mail( get_option( ‘admin_email’ ), sprintf( __( ‘[%s] Your WordPress administrator password has been changed!’ ), get_option( ‘blogname’ ) ), $message );
$answer=“<div id=’message’ class=’updated fade’><p><strong>Your password has been successfully changed</strong></p><p><strong>An e-mail with this information has been dispatched to the WordPress blog administrator</strong></p><p><strong>You should now delete this file off your server. DO NOT LEAVE IT UP FOR SOMEONE ELSE TO FIND!</strong></p></div>”;
return empty( $answer ) ? false : $answer;
$answer = meh();
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “>
<html xmlns=”>
<title>WordPress Emergency PassWord Reset</title>
<meta http-equiv=”Content-Typecontent=”<?php bloginfo( ‘html_type’ ); ?>; charset=<?php bloginfo( ‘charset’ ); ?>” />
<link rel=”stylesheethref=”<?php bloginfo( ‘wpurl’ ); ?>/wp-admin/wp-admin.css?version=<?php bloginfo( ‘version’ ); ?>type=”text/css” />
<div class=”wrap>
<form method=”postaction=””>
<h2>WordPress Emergency PassWord Reset</h2>
<p><strong>Your use of this script is at your sole risk. All code is provided “as -is”, without any warranty, whether express or implied, of its accuracy, completeness. Further, I shall not be liable for any damages you may sustain by using this script, whether direct, indirect, special, incidental or consequential.</strong></p>
<p>This script is intended to be used as <strong>a last resort</strong> by WordPress administrators that are unable to access the database.
Usage of this script requires that you know the Administrator’s user name for the WordPress install. (For most installs, that is going to be “admin” without the quotes.)</p>
echo $answer;
<p class=”submit><input type=”submitname=”updatevalue=”Update Options” /></p>
<fieldset class=”options>
<legend>WordPress Administrator</legend>
<label><?php _e( ‘Enter Username:’ ) ?><br />
<input type=”textname=”e-nameid=”e-nameclass=”inputvalue=”<?php echo attribute_escape( stripslashes( $_POST[‘e-name’] ) ); ?>size=”20tabindex=”10” /></label>
<fieldset class=”options>
<label><?php _e( ‘Enter New Password:’ ) ?><br />
<input type=”textname=”e-passid=”e-passclass=”inputvalue=”<?php echo attribute_escape( stripslashes( $_POST[‘e-pass’] ) ); ?>size=”25tabindex=”20” /></label>
<p class=”submit><input type=”submitname=”updatevalue=”Update Options” /></p>
<?php exit; ?>

If any of the above steps are not for you, call me on 0877547098

by Design and Marketing