Title: PHP error in lost_password.php
Last modified: July 28, 2018

---

# PHP error in lost_password.php

 *  [scsedel](https://wordpress.org/support/users/scsedel/)
 * (@scsedel)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/php-error-in-lost_password-php/)
 * Hi,
 * in lost_password.php file there is:
    `if ( isset( self::$plugin_options['captcha_wc_lost_password'])
   || self::$plugin_options['captcha_wc_lost_password'] == 'yes' ) {`
 * It fails if $plugin_options[‘captcha_wc_lost_password’] is not set sometimes.
   
   It would be better if you check first if it is set and only inside for the value.
 *     ```
       if ( isset( self::$plugin_options['captcha_wc_lost_password'] ) ) {
          if( self::$plugin_options['captcha_wc_lost_password'] == 'yes' ) {
       ```
   
 * Can you please pull this in the next release of the plugin? thank you!

Viewing 1 replies (of 1 total)

 *  [pixelbrad](https://wordpress.org/support/users/pixelbrad/)
 * (@pixelbrad)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/php-error-in-lost_password-php/#post-10552678)
 * Seeing the same issue on my end too. This issue causes _wildly_ excessive logging
   to the WP debug log.
 * `plugins/no-captcha-recaptcha-for-woocommerce/lost-password.php` line 11:
 * `if ( isset( self::$plugin_options['captcha_wc_lost_password'] ) || self::$plugin_options['
   captcha_wc_lost_password'] == 'yes' ) {`
 * Should be changed to one of the following:
 * `if ( isset( self::$plugin_options['captcha_wc_lost_password'] ) && self::$plugin_options['
   captcha_wc_lost_password'] == 'yes' ) {`
 * or
 *     ```
       if ( isset( self::$plugin_options[ 'captcha_wc_lost_password' ] ) ) {
           if ( self::$plugin_options[ 'captcha_wc_lost_password' ] == 'yes' ) {
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘PHP error in lost_password.php’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/no-captcha-recaptcha-for-woocommerce_afc5ce.
   svg)
 * [No CAPTCHA reCAPTCHA for WooCommerce](https://wordpress.org/plugins/no-captcha-recaptcha-for-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/no-captcha-recaptcha-for-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/no-captcha-recaptcha-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/no-captcha-recaptcha-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/no-captcha-recaptcha-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/no-captcha-recaptcha-for-woocommerce/reviews/)

## Tags

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

 * 1 reply
 * 2 participants
 * Last reply from: [pixelbrad](https://wordpress.org/support/users/pixelbrad/)
 * Last activity: [7 years, 10 months ago](https://wordpress.org/support/topic/php-error-in-lost_password-php/#post-10552678)
 * Status: not a support question