• thingswelostinthefire

    (@thingswelostinthefire)


    Notice: Undefined index: incorrect-captcha-sol in /…/htdocs/…/wp-content/plugins/um-recaptcha/includes/core/actions/um-recaptcha-form.php on line 132

    After updating to v2.1.9 and even v2.2.0 (a few minutes ago) I get the notice above and I’m bounced back at login even disabling the plugin from the Ultimate Member admin (Settings –> Extensions).

    Browsing I see that the “incorrect-captcha-sol” is mostly due to recaptcha tags being mixed with form tags.

    Everything ok on um-recaptcha v2.1.5 where there are no div with class=”g-recaptcha” into the source page (the div tag is present in 2.1.9 and 2.2.0).

    For the notice itself, I suggest you something like:

    UM()->form()->add_error( ‘recaptcha’, $error_codes[ $error_code ] ?? ‘Undefined error’);

    Thanks!

Viewing 1 replies (of 1 total)
  • Plugin Author Mykyta Synelnikov

    (@nsinelnikov)

    Hi @thingswelostinthefire

    Thanks for letting us know.
    Please use this code line instead:

    $error = array_key_exists( $error_code, $error_codes ) ? $error_codes[ $error_code ] : sprintf( __( 'Undefined error. Key: %s', 'um-recaptcha' ), $error_code );
    UM()->form()->add_error( 'recaptcha', $error );

    Regarding this error “incorrect-captcha-sol” please try to upgrade Ultimate Member > Settings > Extensions > reCAPTCHA setting screen. Please check that you use valid keys and don’t have restrictions on them.

    Otherwise please check that you don’t use registration and login shortcodes on the same page. Maybe different reCAPTCHA blocks are mixed.

    Let me know if that works,
    Best Regards!

Viewing 1 replies (of 1 total)
  • The topic ‘incorrect-captcha-sol – no login 2.1.9 and 2.2.0 even disabling um-recaptcha’ is closed to new replies.