Simple Membership Plugin › Forums › Simple Membership Plugin › Cloudflare turnstile
- This topic has 1 reply, 2 voices, and was last updated 1 year, 1 month ago by
admin.
-
AuthorPosts
-
May 2, 2025 at 11:14 am #30327
schaudhry
ParticipantHi,
I’m having problems with Cloudflare Turnstile.
I’ve installed Cloudflare Turnstile by following these instructions: https://simple-membership-plugin.com/simple-membership-and-cloudflare-turnstile-integration-addon/.
I’ve rechecked the site key and site code.
I checked the view source and I’m getting the following error when the form is loaded on the website:
<script type=”text/javascript” id=”swpm-cft-script-js-extra”>
/* <![CDATA[ */
var swpm_cft_messages = {“config_error”:”Error rendering cloudflare turnstile. Re-check your turnstile configurations.”};
/* ]]> */
</script>and this message:
/* global swpm_cft_messages */
function onSwpmCFTLoadCB(token) {
console.log(Turnstile challenge successful, token received);
}function onSwpmCFTLoadECB(err) {
console.debug(‘CFT Error’);
console.debug(err);
swpm_cft_error(swpm_cft_messages.config_error);
}function swpm_cft_error(msg) {
document.querySelectorAll(‘.swpm-cf-turnstile’)?.forEach(node => {
// check if msg already printed.
if (!node.querySelector(‘.swpm-cft-error-msg’)) {
let cft_msg = document.createElement(‘div’);
cft_msg.classList.add(‘swpm-cft-error-msg’);
cft_msg.innerText = msg;
node.appendChild(cft_msg);
}
})
}I’ve tested it by filling out the form and when you click the register button, it says security check: captcha validation failed.
Thanks
SaimaMay 3, 2025 at 4:22 am #30328admin
KeymasterIf you enable the debug logging feature, do you see the following line in the log file?
[Cloudflare Turnstile Addon] Turnstile captcha validated successfully!https://simple-membership-plugin.com/enable-debug-logging/
It’s worth double checking the documentation and ensure that the correct keys have been pasted into the correct fields:
https://simple-membership-plugin.com/simple-membership-and-cloudflare-turnstile-integration-addon/If you are still seeing the same issue, it might be a plugin conflict. Do the following test also:
https://simple-membership-plugin.com/forums/topic/test-for-plugin-and-theme-conflict-before-posting-an-issue-or-a-bug/Note: I have just tested the Turnstile addon on my site to make sure that it is working with the latest version of our plugin and WordPress
-
AuthorPosts
- You must be logged in to reply to this topic.