Title: Password Reset/Fatal Error
Last modified: August 30, 2016

---

# Password Reset/Fatal Error

 *  Resolved [Matt Rock](https://wordpress.org/support/users/mattrock1/)
 * (@mattrock1)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/password-resetfatal-error/)
 * Hi,
 * Great plugin, though when using the forgot password link to reset, if a user 
   enters a weak password it triggers a Fatal Error prompt where the Reset Password
   button would be.
 * I’ve replicated in both Chrome and Firefox (haven’t done further testing).
 * Any help would be appreciated.
 * The error is copied below:
 * Fatal error: Call to a member function get_error_data() on a non-object in /www/
   wp-content/plugins/force-strong-passwords/slt-force-strong-passwords.php on line
   110
 * [https://wordpress.org/plugins/force-strong-passwords/](https://wordpress.org/plugins/force-strong-passwords/)

Viewing 9 replies - 1 through 9 (of 9 total)

 *  Plugin Author [Jason Cosper](https://wordpress.org/support/users/boogah/)
 * (@boogah)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/password-resetfatal-error/#post-6234676)
 * Hi Matt,
 * Sorry about the delay!
 * There should’ve been a fix in April that addressed this:
 * [https://github.com/boogah/Force-Strong-Passwords/pull/16](https://github.com/boogah/Force-Strong-Passwords/pull/16)
 * Can you make sure you’re on the latest release and let me know if you’re still
   running into issues?
 *  [Steve Lambert](https://wordpress.org/support/users/stevenmlambert/)
 * (@stevenmlambert)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/password-resetfatal-error/#post-6234681)
 * I’m seeing this error now on a Multi-site install. WordPress 4.3, Force Strong
   Passwords Version 1.6.1
 * I disabled it in the meantime… looking forward & thanks!
 *  Plugin Author [Jason Cosper](https://wordpress.org/support/users/boogah/)
 * (@boogah)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/password-resetfatal-error/#post-6234685)
 * I believe the latest release (1.6.2) addresses this. Could you please try and
   let me know how it goes?
 *  [Earthman Media](https://wordpress.org/support/users/earthman100/)
 * (@earthman100)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/password-resetfatal-error/#post-6234697)
 * > “when using the forgot password link to reset, if a user enters a weak password
   > it triggers a Fatal Error prompt where the Reset Password button would be.”
 * I’m receiving this same error in V. 1.6.4
 * WP 4.3.1 – all other plugins disabled, Twenty Fifteen theme
 * [https://gyazo.com/7ca8464dbb1265088e6f0daeaf444fc6](https://gyazo.com/7ca8464dbb1265088e6f0daeaf444fc6)
 * Please advise
 *  [Earthman Media](https://wordpress.org/support/users/earthman100/)
 * (@earthman100)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/password-resetfatal-error/#post-6234698)
 * Changing the slt-force-strong-passwords.php file as per the following diff, fixes
   this, in my case:
 *     ```
       117		- 	if ( ( false === $password ) || ( $errors->get_error_data("pass") ) ) {
       117	+ 	global $wp_error;
       118	+ 	if (is_wp_error($errors)) {
       119	+ 		if($errors->get_error_data("pass")){
       120	+ 			return $errors;
       121	+ 		}
       122	+ 	} elseif (is_wp_error($wp_error)) {
       123	+ 		if($wp_error->get_error_data("pass")){
       124	+ 			$errors = $wp_error;
       125	+ 			return $wp_error;
       126	+ 		}
       127	+ 	} elseif ( false === $password ) {
       118	128	  		return $errors;
       ```
   
 *     ```
       162		- 	if ( ! $password_ok ) {
       177	+ 	if ( ! $password_ok && is_wp_error($errors)) {
       ```
   
 *  [Earthman Media](https://wordpress.org/support/users/earthman100/)
 * (@earthman100)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/password-resetfatal-error/#post-6234699)
 * Posted a Pull request here:
 * [https://github.com/boogah/Force-Strong-Passwords/pull/28](https://github.com/boogah/Force-Strong-Passwords/pull/28)
 * Please review
 *  [K. Adam White](https://wordpress.org/support/users/kadamwhite/)
 * (@kadamwhite)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/password-resetfatal-error/#post-6234707)
 * +1 to the PR linked in the last comment. This is definitely not “resolved” for
   me, as I’m seeing the issue on multiple sites running the latest version of the
   plugin.
 *  [willb](https://wordpress.org/support/users/asecondwill/)
 * (@asecondwill)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/password-resetfatal-error/#post-6234710)
 * +1. plugin is broken
 *  Plugin Author [Jason Cosper](https://wordpress.org/support/users/boogah/)
 * (@boogah)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/password-resetfatal-error/#post-6234713)
 * Version 1.6.5 — which implements the PR linked above — has been released and 
   should fix your issues. Please let me know if that’s not the case!

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Password Reset/Fatal Error’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/force-strong-passwords_646c75.svg)
 * [Force Strong Passwords](https://wordpress.org/plugins/force-strong-passwords/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/force-strong-passwords/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/force-strong-passwords/)
 * [Active Topics](https://wordpress.org/support/plugin/force-strong-passwords/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/force-strong-passwords/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/force-strong-passwords/reviews/)

## Tags

 * [fatal error](https://wordpress.org/support/topic-tag/fatal-error/)
 * [password reset](https://wordpress.org/support/topic-tag/password-reset/)

 * 9 replies
 * 6 participants
 * Last reply from: [Jason Cosper](https://wordpress.org/support/users/boogah/)
 * Last activity: [10 years, 1 month ago](https://wordpress.org/support/topic/password-resetfatal-error/#post-6234713)
 * Status: resolved