Captcha not working on Forminator
-
Captcha is not shown on this page and any pages for Forminator forms on this website https://www.agilevisa.com/
The page I need help with: [log in to see the link]
-
Hi,
This should now be fixed in the latest version.
Thanks!
Hi,
I have the last version and this issue is still remaining: https://jmp.sh/eJ5xKyCx
Please advise: https://jmp.sh/c6heS8Oh
Regards
@laminedj Do you have any caching enabled on your site? If so could you also try clearing this?
Or try turning this option on in the forms behaviour settings: https://i.gyazo.com/5a2c49ea9d1d5a1832c1be84ce6f4f21.png
Hi,
It still remains with cloudflare-turnstile.1.26.6 and however with /?no-cache=1 parameter in URL
Regards
A screenshot: https://jmp.sh/M8t08K4o
Does turning on this option in the forms “behaviour” settings fix it?
Yes, I did as you advised.
Updated to 1.26.6 and tripled captchas are still showing.
Cleared cache and enabled the option to prevent cache in Forminator.I am not a technical person, so can someone please help me understand how to fix this?
Why do I see 3 times the captcha at this link ? https://www.agilevisa.com/decide-your-own-combo/
Hi,
I can’t seem to replicate the issue on my end.
One solution I believe could work is replacing the following line in file: \simple-cloudflare-turnstile\inc\turnstile.php
Line 132:
<script>document.addEventListener("DOMContentLoaded",(function(){var e=document.getElementById("cf-turnstile<?php echo esc_html($unique_id); ?>");e&&!e.innerHTML.trim()&&turnstile.render("#cf-turnstile<?php echo esc_html($unique_id); ?>",{sitekey:"<?php echo esc_html($key); ?>"})}));</script>Replaced with:
<script>document.addEventListener("DOMContentLoaded",(function(){var e=document.getElementById("cf-turnstile<?php echo esc_html($unique_id); ?>");e&&!e.innerHTML.trim()&&(turnstile.remove("#cf-turnstile<?php echo esc_html($unique_id); ?>"),turnstile.render("#cf-turnstile<?php echo esc_html($unique_id); ?>",{sitekey:"<?php echo esc_html($key); ?>"}))}));</script>This should prevent duplicate widgets being loaded.
If you know how to edit this safely please give it a try and let me know.
I’ll do some further testing on my end either way and release the fix if so.
-
This reply was modified 1 year, 10 months ago by
Elliot Sowersby.
@elliotvs, I applied the solution you suggested and it didn’t work.
P.S.: I cleared the cache (litespeed cache) after replacing line 132, in case you’re wondering.Thanks for testing it @matador9.
What settings do you have set here for the form “rendering” settings?
https://i.gyazo.com/5a2c49ea9d1d5a1832c1be84ce6f4f21.png
Do you have any performance plugins installed on your website?
Please could you also try adding the following line:
turnstile.remove('#cf-turnstile-fmntr-<?php echo esc_html($form_id); ?>');Before:
turnstile.render('#cf-turnstile-fmntr-<?php echo esc_html($form_id); ?>');In \simple-cloudflare-turnstile\inc\integrations\forms\forminator.php on line 31?
Like so:
jQuery(document).ajaxComplete(function() { if (document.getElementById('cf-turnstile-fmntr-<?php echo esc_html($form_id); ?>')) { setTimeout(function() { turnstile.remove('#cf-turnstile-fmntr-<?php echo esc_html($form_id); ?>'); turnstile.render('#cf-turnstile-fmntr-<?php echo esc_html($form_id); ?>'); }, 10); } }); -
This reply was modified 1 year, 10 months ago by
The topic ‘Captcha not working on Forminator’ is closed to new replies.