Support

Home Forums Event Espresso Premium Waitlist and reCAPTCHA

Waitlist and reCAPTCHA

Posted: November 29, 2023 at 12:56 pm


wfinley

November 29, 2023 at 12:56 pm

This is for https://alaskaavalanche.org/schedule/ & about reCaptcha & waitlist.

We’re getting a ton of spam via our wait list. I enabled the invisible reCaptcha but it blocked legit registrations via the “Missing g-recaptcha response” error. I turned off all plugins and it still didn’t work – so I disabled it and instead enabled V2 checkbox. V2 checkbox works without errors on the registration form but doesn’t work for the waitlist.

Ideas? It seems others have had this issue but there doesn’t seem to be any updates in the forums and most people just disable captcha since it blocks registration.


Rio

  • Support Staff

November 29, 2023 at 9:08 pm

I dont see any recent issues on recaptcha. Can you check this article if its related to your concern?

https://eventespresso.com/topic/recaptcha-error-still-not-resolved/
https://eventespresso.com/topic/recaptcha-error-message-is-preventing-courses-enrollments/

we need to know why you have “Missing g-recaptcha response” It could be plugin conflict or theme.

can you do the following test?

You can use https://wordpress.org/plugins/health-check/ or any similar plugin.

Tools -> Site Health -> Troubleshooting -> Enabled Troubleshooting mode.

That will disable all plugins and switch to a default theme and then allow you to enable specific plugins in troubleshooting mode. Once disabled you will revert back to the current state.

thanks


wfinley

November 30, 2023 at 1:15 pm

I saw those threads. The theme pages don’t have “break” anywhere & if you read the second thread captcha was disabled & nothing was solved.

I ran the site health – we have imagick turned off and some inactive plugins. Reverting to a default theme isn’t really an ideal solution b/c we’re getting constant signups.

It’s currently running V2 checkbox and works fine. When I switch to V2 invisible I get the “Missing g-recaptcha-response” error and in code view (see below) I’m getting “an attempt to verify the form’s reCAPTCHA has failed”.

I did a test where I uploaded EE to another server, disabled all the plugins and reverted to a default theme and it still didn’t work. The inline checkbox works – but V2 invisible does not work.

<script type="text/javascript" id="espresso_invisible_recaptcha-js-extra">
/* <![CDATA[ */
var eeRecaptcha = {"siteKey":"6Lev_CApAAAAANopPdicvb4EPSstRWE5RQgUbzdg","recaptcha_passed":"","wp_debug":"","disable_submit":"","failed_message":"We're sorry but an attempt to verify the form's reCAPTCHA has failed. Please try again."};
var eeRecaptcha = {"siteKey":"6Lev_CApAAAAANopPdicvb4EPSstRWE5RQgUbzdg","recaptcha_passed":"","wp_debug":"","disable_submit":"","failed_message":"We're sorry but an attempt to verify the form's reCAPTCHA has failed. Please try again."};
var eeRecaptcha = {"siteKey":"6Lev_CApAAAAANopPdicvb4EPSstRWE5RQgUbzdg","recaptcha_passed":"","wp_debug":"","disable_submit":"","failed_message":"We're sorry but an attempt to verify the form's reCAPTCHA has failed. Please try again."};
/* ]]> */
</script>
<script type="text/javascript" src="https://alaskaavalanche.org/wp-content/plugins/event-espresso-core-reg/caffeinated/modules/recaptcha_invisible/assets/espresso_invisible_recaptcha.js" id="espresso_invisible_recaptcha-js"></script>
<script type="text/javascript" src="https://www.google.com/recaptcha/api.js" id="google_invisible_recaptcha-js" async="async" defer="defer"></script>
<script type="text/javascript" src="https://alaskaavalanche.org/wp-includes/js/jquery/ui/datepicker.min.js" id="jquery-ui-datepicker-js"></script>
<script type="text/javascript" src="https://alaskaavalanche.org/wp-content/plugins/event-espresso-core-reg/core/templates/global_assets/scripts/jquery.validate.additional-methods.min.js" id="jquery-validate-extra-methods-js"></script>
<script type="text/javascript" id="ee_form_section_validation-js-extra">


wfinley

November 30, 2023 at 1:31 pm

Actually I take that back. I was able to get wait list invisible recaptcha to work on my test server. On the prodiocution server it throws the following msg right away:
var eeRecaptcha = {“siteKey”:”6Lev_CApAAAAANopPdicvb4EPSstRWE5RQgUbzdg”,”recaptcha_passed”:””,”wp_debug”:””,”disable_submit”:””,”failed_message”:”We’re sorry but an attempt to verify the form’s reCAPTCHA has failed. Please try again.”};


wfinley

November 30, 2023 at 3:09 pm

Following up on this. My theme was cleaning up wphead by inserting the below. This was conflicting with repatcha invisible. I commented it ou t and it works now.


remove_action('wp_head', 'print_emoji_detection_script', 7);
remove_action('wp_print_styles', 'print_emoji_styles');
remove_action( 'admin_print_scripts', 'print_emoji_detection_script' );
remove_action( 'admin_print_styles', 'print_emoji_styles' );
function myscript_remove_version() {
	return '';
}
add_filter('the_generator', 'myscript_remove_version');
remove_action ('wp_head', 'rsd_link');
remove_action( 'wp_head', 'wlwmanifest_link');
remove_action( 'wp_head', 'wp_shortlink_wp_head');
function myscript_cleanup_query_string( $src ){ 
	$parts = explode( '?', $src ); 
	return $parts[0]; 
} 
add_filter( 'script_loader_src', 'myscript_cleanup_query_string', 15, 1 ); 
add_filter( 'style_loader_src', 'myscript_cleanup_query_string', 15, 1 );


Rio

  • Support Staff

November 30, 2023 at 6:48 pm

Good to hear that you were able to resolve this. Thanks for sharing this too.

have a wonderful day!

The support post ‘Waitlist and reCAPTCHA’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso