sasdts
Forum Replies Created
-
Forum: Plugins
In reply to: [Simple Cloudflare Turnstile - CAPTCHA Alternative] Double displayI’m still getting two widgets, using CF7 and v1.26.6
- This reply was modified 4 months ago by sasdts.
Hi Elliot,
Many thanks, I just updated and tested, and it works great.
Hi,
I also have a lot of CF7 Forms, and rather than spend a few hours adding a shortcode to them all, I spent it trying to find a filter to do it programtically. This works for me , using the invisible widget.
/** * Add Turnstile to all CF7 forms at once. * * @param object $contact_form WPCF7_ContactForm Object. * * @return mixed */ function add_turnstile_captcha_to_forms( $contact_form ) { $form = $contact_form->prop( 'form' ); $form = str_replace( '[submit', '[cf7-simple-turnstile][submit', $form ); $contact_form->set_properties( array( 'form' => $form ) ); } add_action( 'wpcf7_contact_form', 'add_turnstile_captcha_to_forms', 10, 3 );
Hi Elliot,
I just updated, checked, and yes, the JS error is gone.
Many thanks for your swift response.
Hi Elliot,
no, sorry for the confusion, jQuery is not loaded deferred, it’s enqueued in the footer, so when this inline JS is called, the jQuery library has not loaded:
<script> jQuery(document).ready(function() { if (jQuery(‘#cf-turnstile iframe’).length <= 0) { setTimeout(function() { turnstile.remove(‘#cf-turnstile’); turnstile.render(‘#cf-turnstile’, { sitekey: ‘xxxxx’, }); }, 200); } }); </script>
I tested with a non-interactive widget, and can confirm that the widget displays and functions correctly.
Uncaught ReferenceError: jQuery is not defined
Forum: Plugins
In reply to: [Simple Cloudflare Turnstile - CAPTCHA Alternative] Shows errorHi, just to confirm, I’m also getting Javascript errors, Plugin Versions: 1.12.1 and 1.12.2, and didn’t have an issue last week.
[Cloudflare Turnstile] Unknown parameter passed to api.js: “?ver=…”, ignoring.
api.js?onload=onloadTurnstileCallback&ver=6.0.3:1 [Cloudflare Turnstile] Invalid or missing type for parameter “sitekey”, expected “string”, got “object”.
Hi,
thanks for your reply. No, these hooks don’t help, I mean specifically in line 209 in the latest version of wp-security-process-renamed-login-page.php – there are no available hooks to redirect users somewhere else, and it would be great if you could add one.
Hi svelinov, thanks for your reply. Yes, I deleted the cache, browser cache, tested in incognito browsers etc., but it doesn’t make a difference
- This reply was modified 6 years, 4 months ago by sasdts.
How do I set a placeholder for a Select Box? There is no option…
Just tested this on a vanilla installation of wordpress 4.7 and the issue is not there, so I tested again, deactivating plugins one at a time, and the issue is caused by wpml.
- This reply was modified 7 years, 10 months ago by sasdts.
Yes, I can confirm I have the same issue
Seems to work in the newest version (4.2.2), thanks
It seems that this issue is caused in /classes/wp-security-user-login.php
The authenticate filter should have a higher priority (line 14) and should be:
add_filter(‘authenticate’, array(&$this, ‘aiowp_auth_login’), 30, 3);
Thanks, I followed the advice there, but the problem persists.
To test, I created a new site (Apache server), with WP 4.5.3, and installed aiowps (4.1.14). No other plugins are active. I activated “Captcha On Login Page” and “Captcha On Lost Password Page”.
And it’s the same issue, I can login leaving the captcha field blank or giving an incorrect answer.
EDIT:
I did some more testing, and this feature works ok in WP 4.4.4, but when I upgrade to WP 4.5, I can log in with an incorrect or blank answer