Jump to content

Google reCAPTCHA v3

Recommended Posts

By logging the $response from Google, I have discovered that the majority of time I receive “timeout-or-duplicate” error. I’ve learned that the token is only valid for 2 minutes after you execute is called as stated in the docs:

“Note: reCAPTCHA tokens expire after two minutes. If you're protecting an action with reCAPTCHA, make sure to call execute when the user takes the action.”

Thus, if you spend more then 2 minutes on the contact-form, you get the timeout error. That's why its recommended in the docs to only call execute if the user actually submits your form / takes action.

Source: https://stackoverflow.com/a/60076476/2157236

Any solution to this?

Share this post

Link to post
Share on other sites
On 10/31/2020 at 1:40 PM, ruden said:


i installed this  hook system and the google capture was working for a while

now suddenly its giving me error in error log and makes my order screen go blank


this line here

$OSCOM_Hooks->register(basename($PHP_SELF, '.php'));


is making the error below it seems, as when i take it out, my admin order page comes back.

PHP Fatal error:  Cannot declare class hook_admin_orders_paypal, because the name is already in use in /home/website/public_html/includes/hooks/admin/orders/paypal.php on line 13


Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now