Support » Plugin: No CAPTCHA reCAPTCHA for WooCommerce » Undefined index

  • Resolved CriterioNet

    (@criterionet)


    I activated the debug on my site and showed me these errors.

    Notice: Undefined index: captcha_wc_login in /home/cbarte/public_html/wp-content/plugins/no-captcha-recaptcha-for-woocommerce/login.php on line 8

    Notice: Undefined index: captcha_wc_lost_password in /home/cbarte/public_html/wp-content/plugins/no-captcha-recaptcha-for-woocommerce/lost-password.php on line 11

    https://wordpress.org/plugins/no-captcha-recaptcha-for-woocommerce/

Viewing 1 replies (of 1 total)
  • cjhaas

    (@chrisvendiadvertisingcom)

    In the two files you pointed out, to the best of my knowledge the || should be changed to &&.

    The left condition is “does that array have that key”. If that’s true the \\ (an OR) would never fire. If that isn’t true, however, then that key doesn’t exist so the second condition will always fail.

    Unless I’m reading this wrong, which I’m pretty sure I’m now.

Viewing 1 replies (of 1 total)
  • The topic ‘Undefined index’ is closed to new replies.