• Resolved breckf

    (@breckf)


    Hi,

    I’ve just started implementing your plugin as a malicious bot was bypassing reCaptcha to place orders and create accounts. Somewhat surpringly, the bot was still able to bypass the Turnstile challenge after implementation, so I need to look further into things.

    However, using the latest version 1.27.1 I’m seeing this notice pop-up in our debug logs so thought I’d raise it to you. Occurring relatively infrequently (I’ve since used geoblocking to stop the attack), but still enough to be noticeable.

    PHP Notice: Undefined index: error_code in /home/***/public_html/wp-content/plugins/simple-cloudflare-turnstile/inc/turnstile.php on line 227

Viewing 4 replies - 1 through 4 (of 4 total)
  • Bumping this for visibility – Any update or solution to this?
    Our error_logs are also filling up with the same issue:

    PHP Warning: Undefined array key “error_code” in /xxxx/xxxx/public_html/wp-content/plugins/simple-cloudflare-turnstile/inc/turnstile.php on line 227

    Thread Starter breckf

    (@breckf)

    *bump*

    Any word of a fix for this issue?

    This is happening a lot in our logs also. This is such an easy fix (just check if ‘error_code’ is set first), and it is still happening in v1.28.0 …

    All that needs to happen is to change this:
    $error_code = $results['error_code'];
    to something like this:
    $error_code = 'n/a' // or empty or whatever
    if ( isset($results['error_code']) ) {
    $error_code = $results['error_code'];
    }

    Hi,

    This should now be fixed in the latest update.

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.