• Resolved ZicPL

    (@zicpl)


    Hi @elliotvs
    I’m using your plugin: “Simple Cloudflare Turnstile”. It works very well. Thank you that I can use it. However, on the comments page of my website (wpDiscuz plugin) it shows an error in the console:

    jquery.min.js?ver=3.7.1:2 Uncaught TurnstileError: [Cloudflare Turnstile] Invalid type for "container", expected "selector" or an implementation of "HTMLElement", got "#cf-turnstile-wpd-wpdiscuzuniqueid".
    at p (api.js?render=explicit:1:8759)
    at Object.h as render
    at HTMLDocument. (test-article-about-creation-on-this-post-by-me/:1659:21)
    at e (jquery.min.js?ver=3.7.1:2:27028)
    at t (jquery.min.js?ver=3.7.1:2:27330)
    p @ api.js?render=explicit:1
    h @ api.js?render=explicit:1
    (anonymous) @ test-article-about-creation-on-this-post-by-me/:1659
    e @ jquery.min.js?ver=3.7.1:2
    t @ jquery.min.js?ver=3.7.1:2
    setTimeout (async)
    ce.readyException @ jquery.min.js?ver=3.7.1:2
    (anonymous) @ jquery.min.js?ver=3.7.1:2
    e @ jquery.min.js?ver=3.7.1:2
    t @ jquery.min.js?ver=3.7.1:2
    setTimeout (async)

    I created an identical ticket here: https://github.com/ElliotSowersby/simple-cloudflare-turnstile/issues/26
    (I don’t know which place is better to report this error – I sent there a .gif showing the error. I can’t do it here). All plugins and WordPress are up to date

    do you have time to help me?

    ___
    best regards

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Elliot Sowersby

    (@elliotvs)

    Hi,

    Thanks for the message.

    I will take a look into this error and see if a fix can be implemented in the next update.

    Thread Starter ZicPL

    (@zicpl)

    @elliotvs
    Thank you for finding time for me. I’ve been verifying the problem for a few days.
    Looking for help I found this page: https://developers.cloudflare.com/turnstile/get-started/client-side-rendering/
    After disabling your plugin and following the recommendations from the page above (see point 1,2) I should close your report but read my post to the end.
    1 I added a new field in the comment form (wpdiscuz): <div class=”cf-turnstile” id=”test” data-sitekey=”XXXXXXXXXXX” data-callback=”javascriptCallback”></div>
    2. I added cloudlfare scripts in head and footer.

    When creating a this Topic in Your support page I didn’t write about all errors (These errors will also be experienced by users of your plugin)

    GET https://challenges.cloudflare.com/cdn-cgi/challenge-platform/h/g/turnstile/if/ov2/av0/rcv0/0/nw1kq/0x4AAAAAAAavjjc6R_X34qn7/auto/normal
    
    XHRGET https://challenges.cloudflare.com/cdn-cgi/challenge-platform/h/g/pat/88e98337ab07bfda/1717520777386/38d33a98139089a730c5b911dda4b413ff2ff4566bed58f6a2d53bd873766310/MPGGCeUuVPcP8Hm
    [HTTP/2 401  174ms]
    No headers for this request
    
    XHRGET
    https://challenges.cloudflare.com/cdn-cgi/challenge-platform/h/g/pat/88e98337ab0abfda/1717520777418/6e4b77a46b12c4e7bf76672c7c6904120f60b8a3a323279c2ff3aef8fe6f2651/0HrGPkk72XGtoI- [HTTP/2 401  147ms]

    Both XHRs are 401 errors

    It is probably related to the “LiteSpeed ??Cache” plugin.
    Although I’m not a programmer and my site isn’t commercial (I created it to contact friends) I’ll try to help solve these problems as much as I can. Maybe together we can solve this problem ??

    1. I did: I clicked plugin settings -> LiteSpeed ??Cache -> Page Optimization -> JS settings: I switched “Delay JS loading” to disabled;
    2. LiteSpeed ??Cache -> Page Optimization -> Tuning: “JS Exclusions” & “JS Deferred / Delayed Excludes” I added:
      challenges.cloudflare.com
      cloudflareinsights.com
    3. Flush all cache

    Unfortunately, this didn’t solve the problem and the errors still there. I started searching the Internet and found an article: https://www.litespeedtech.com/support/forum/threads/problem-with-htaccess-htpasswd-with-litespeed-5-1-17-5-2.15229/

    Please let me know what you think and what we can do next

    Thread Starter ZicPL

    (@zicpl)

    I’m closing the topic as resolved. The problem isn’t the plugin. The problem is with Cloudflare, which checks PAT, instead of first determining whether the device being verified is Apple. For other devices that don’t have PAT capabilities, ClouFlare shouldn’t trigger this challenge. I don’t want to have errors on my site because I care about maintaining good practices, so I gave up Turnstile protection. I start using another plugin.

    Thread Starter ZicPL

    (@zicpl)

    Thank You ??

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