• 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)
  • 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.