Fatal error: Uncaught Error: Cannot use object of type WP_Error as array in /wp-content/plugins/advanced-google-recaptcha/libs/functions.php:300 Stack trace: #0 /wp-content/plugins/advanced-google-recaptcha/libs/functions.php(217): WPCaptcha_Functions::handle_captcha() #1 /wp-includes/class-wp-hook.php(324): WPCaptcha_Functions::wp_authenticate_username_password() #2 /wp-includes/plugin.php(205): WP_Hook->apply_filters() #3 /wp-includes/pluggable.php(618): apply_filters() #4 /wp-includes/user.php(106): wp_authenticate() #5 /wp-login.php(1311): wp_signon() #6 {main} thrown in /wp-content/plugins/advanced-google-recaptcha/libs/functions.php on line 300
Há um erro crítico no seu site. Verifique seu e-mail para instruções.
Hi,
We will add some better error handling there but the problem is that for some reason the request to verify the captcha is failing. Is your API key properly set and is your domain set in the Google reCAPTCHA admin console for that key?
Hi Alexandru. Thanks for the anwer.
Yes, the API key is properly set and the domain too.
I don’t have any ideas, sorry 🙁
It might be some firewall blocking the request made to the Google reCAPTCHA API to verify the captcha. You could try checking your server’s error log in case there are any other details.
Same error here, plugin version 1.20.
The recaptcha is loading on the registration form, but throws a fatal error on form submit. I just disabled the plugin in order to allow user registrations.
[12-Apr-2024 13:42:25 UTC] PHP Fatal error: Uncaught Error: Cannot use object of type WP_Error as array in /public_html/wp-content/plugins/advanced-google-recaptcha/libs/functions.php:300
Stack trace: 0 /public_html/wp-content/plugins/advanced-google-recaptcha/libs/functions.php(327): WPCaptcha_Functions::handle_captcha() 1 /public_html/wp-includes/class-wp-hook.php(324): WPCaptcha_Functions::handle_captcha_wp_registration(Object(WP_Error)…