-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Can not resolve reCAPTCHA parameter" entries in exception.log for Google reCAPTCHA Admin Panel #34975
Comments
Hi @engcom-Hotel. Thank you for working on this issue.
|
Same issue. Happens all the time.
Captcha works. The badge is loaded and visible. When I go to log in, I'll get an error message saying something went wrong. I'll have to log in 2-3 times and around the third time it'll let me in. No javascript console errors are present during this issue. |
Yes this happens as well, I forgot to mention that. Thank you! |
Just wanted to note that we are getting the "Something went wrong with reCAPTCHA. Please contact the store owner." error on frontend too, not just on Admin. The 12,000+ daily log entries are happening with Admin module though. |
We got the same issue, but after analyzing it - it looks like we're getting a lot of such messages because some bot(s) are trying to create a customer, and captcha validation fails for them. We weren't able to reproduce this issue ourselves. |
Thanks for the info! How could we verify if that is the case for us as well? |
@stevekem, we analyzed logs, the interval between requests from the same IP address was ~0-3 sec (usually people don't do requests so quickly), the requests were to |
@ihor-sviziev Ok gotcha! If it is the bots, just block them in robots? Did that resolve the issue for you? |
@stevekem that looks like bots that are trying to hack or do something similar by creating a new customer |
@ihor-sviziev In your case, did you block the bots in robots.txt to resolve the issue? |
@stevekem yes, the requests starting with |
@ihor-sviziev Thank you, appreciate it! Will check our logs and see if that's the case for us as well. |
Hi @engcom-Delta. Thank you for working on this issue.
|
Hi @stevekem , 1.Login to admin Panel Actual Results Hence Adding the label "Needs Update" |
We have noticed that this issue has not been updated for a period of more than 14 Days. |
We are still facing this issue. In my case, a captcha is needed for the newsletter subscription form. Same error. |
@engcom-Delta @knoorani-ijona Same problem in Magento 2.4.4 in admin loggin page. it seems that the error is reproduced only in production mode |
In my case, there were two javascript errors that caused me to not be able to log in. These errors are due to the minification of the collapse.js and tab.js files in the lib/web/jquery/bootstrap/ path. So the solution to this problem has been to exclude those files from the minification.
|
Hello, We got the same issue in magento version 2.4.3. lot of exception errors in log file. Also, I did try above all solution but didn't work any one. Any update on this issue. |
@Hanhan1989 you disabled the recaptcha completely? |
I only disabled the Recaptcha of the admin user login form.
|
@Hanhan1989 you don't have bots hitting your other login pages causing the same error? |
@briangmoore77 I only had problem of Recaptcha in the admin user login form. In the Frontend, all Ok. |
Weird for me, the error message are there on the system.log, but i can still logged in on chrome and safari, but cannot be logged in on firefox |
v2.4.5-p1 - bug still present on the frontend forms. Same exception: The actual ReCaptcha v3 Invisible badge itself renders but I'm not seeing a recaptcha-response field being added to the form that could then be used to validate the form submission. Notable forms:
@tschirmer fix - totally welcome but doesn't fix the frontend issue (though, wasn't intended to as far as I can see). Oddly, the captcha is on the Checkout form too and that appears to be behaving fine. |
@engcom-Alfa @engcom-Bravo @engcom-Charlie @engcom-Delta @engcom-Hotel it seems this isn't fixed at all. Maybe in 2.4.6 but then we'd like to see a commit with the fix so we can patch our stores. Please advise. |
Your mileage may vary but we found we had to manually add in the ReCaptcha block back into the forms. I think there's some move/remove statement somewhere in Magento or a module we all have in common that is taking out the block named "recaptcha" that is intended to be output in the form_additional_info child block. So we had to create the following under <theme_name>/Magento_ReCaptchaCustomerLayout:
The form layout files were all pretty much the same:
Then in your form, output the child HTML block:
P.S For what it's worth we're also using the mageplaza/module-google-recaptcha package (v^4.0) for the admin which can do ReCaptcha too although that's disabled on the frontend. When I looked at the module's layout XML files I couldn't see it moving/removing anything. I don't think that's affecting things but it's worth nothing. |
@peterjaap I have provided the related commits for this fix here #34975 (comment). Does it help in moving further with this? |
magento/product-community-edition 2.4.5-p1 I'm also getting this error flooding my logs:
Here's the nginx logs from the flood of bots:
@engcom-Hotel I've noticed your commits are for the admin login. Will this also somehow fix the frontend customer account creation? |
@BernardRobbins-BMediaLLC, another batch of commits got merged yesterday, that have something to do with recaptcha, maybe those help in your case? Just guessing here ... |
@hostep, thanks, it doesn't appear any of those will resolve this. |
I still have this issue in 2.4.6 |
I can confirm the issue still happens in 2.4.6 |
I think as long as this thread is closed nobody will take notice. |
I have Magento 2.4.6 and it works correctly。I think the error may be due to third party extensions。 |
Hi, I didn't faced this issue in admin panel but in a front page. You should verify if this block is present in your admin form by using a debugtoolbar as Smile_DebugToolbar My account login page include the form login and the form register then the container was moved in the register form and wasn't present in the login form. Then I had to add this recaptcha block myself inside a custom form.additional.info.login container which is itself inside my login form : <container name="form.additional.info.login" as="form_additional_info_login">
<block class="Magento\ReCaptchaUi\Block\ReCaptcha"
name="recaptcha.login"
after="-"
template="Magento_ReCaptchaFrontendUi::recaptcha.phtml"
ifconfig="recaptcha_frontend/type_for/customer_login"
>
<arguments>
<argument name="recaptcha_for" xsi:type="string">customer_login</argument>
<argument name="jsLayout" xsi:type="array">
<item name="components" xsi:type="array">
<item name="recaptcha" xsi:type="array">
<item name="component" xsi:type="string">Magento_ReCaptchaFrontendUi/js/reCaptcha</item>
</item>
</item>
</argument>
</arguments>
</block>
</container> |
Still having this issue in 2.4.6 |
The patch supplied above works for me on version 2.4.4-p5. Thanks to @tschirmer and @C4rter. |
Discovered this issue not too long after enabling official Magento reCAPTCHA Checkbox (Customer Registration Form only) on Magento 2.4.6, still an issue |
Each form "Recaptchable" has an additional script block added. You have to watch the corresponding recaptcha module. <referenceContainer name="footer">
<block class="Magento\ReCaptchaUi\Block\ReCaptcha"
name="recaptcha-newsletter"
after="-"
template="Magento_ReCaptchaNewsletter::recaptcha_newsletter.phtml"
ifconfig="recaptcha_frontend/type_for/newsletter">
<arguments>
<argument name="recaptcha_for" xsi:type="string">newsletter</argument>
<argument name="jsLayout" xsi:type="array">
<item name="components" xsi:type="array">
<item name="recaptcha" xsi:type="array">
<item name="component" xsi:type="string">Magento_ReCaptchaFrontendUi/js/reCaptcha</item>
</item>
</item>
</argument>
</arguments>
</block>
</referenceContainer> Are you sure your layout is including this additional script block ? I noticed it after dd() the |
Ditto. As @AlexandreBulete says, just add it in yourself. You should see a hidden (or similar) in each form you want to use recaptcha in. Less convenient, but it sorts it. |
I see this template on my site and I am still receiving the error for frontend Customer Registration |
@frostitution I'm getting the same error on the customer registration form(2.4.5-p4 EE). Were you able to resolve this? |
Same error for me on 2.4.5-p5 OS. Error occurs when bots try to register new customer account. |
I am having the same issue. We are using magento2.4.6-p2 + hyva. but when create the captcha key and apply it to frontend it show same error and not allowed us to login/sign up successfully. |
@rejith7 No, sorry. I left it enabled because recaptcha works, but the log errors are still there. recaptcha works for us when we test it and cannot seem to replicate this consistently. I have been monitoring for any sort of solution from anyone but no luck. |
Issue also still here! For me it has something to do with bots (I think) cause its always happening in the night. The form itself and during the day it's working perfectly fine with Recaptcha. |
I have the same problem. We are using Magento2.4.7-p2 |
Preconditions (*)
Steps to reproduce (*)
Go to Configuration > Security > Google reCAPTCHA Admin Panel
Add your Google API Website Key & Google API Secret Key to any reCAPTCHA below:
reCAPTCHA v2 ("I am not a robot")
reCAPTCHA v2 Invisible
reCAPTCHA v3 Invisible
Enable for Login
Enable for Forgot Password
Save config
Flush cache
Expected result (*)
Actual result (*)
main.ERROR: Can not resolve reCAPTCHA parameter. {"exception":"[object] (Magento\Framework\Exception\InputException(code: 0): Can not resolve reCAPTCHA parameter. at /home/xxxxxxx/public_html/vendor/magento/module-re-captcha-ui/Model/CaptchaResponseResolver.php:25)"} []
Please provide Severity assessment for the Issue as Reporter. This information will help during Confirmation and Issue triage processes.
The text was updated successfully, but these errors were encountered: