Closed Sheitak closed 4 years ago
Layout.html.twig
is not needed when you use Recaptcha3Type and the Symfony form.Okay ! Thank you, I corrected this negligence,
Everything works well apparently, although my inspector always presents this famous error
Error : Unknown base64 encoding at char :
but I think that this does not prevent the operation, I was just trying to correct this problem,
If you have an idea do not hesitate, otherwise thank you to you and have a good day,
I haven't encountered this error. Can you please locate the source of this error? At which particulate line it happens?
It's a bit fuzzy I admit, I'm sharing a screenshot for you to better understand the thing, I continue to do some research on my side
EDIT : Ok, maybe I found something on this : Obviously, this is from an encoding, basically UTF-8, base64. Decoding base64 would restore UTF-8 and raise this error. Source : https://dba.stackexchange.com/questions/212160/why-do-i-get-incorrect-characters-when-decoding-a-base64-string-to-nvarchar-in-s
It is apparently possible to fix it, but it is also possible that it comes from google's ReCaptcha itself,
Thank you for the research @Sheitak ! Looks like this issue is related to ReCaptcha itself https://github.com/google/recaptcha/issues/392 . Closing this issue then.
Hello Karser,
I am using your Bundle v3 and followed the installation. I want to integrate the ReCaptcha on a basic contact form,
I install with flex and am on Symfony 5.1, fill in my ContactType file as it should, then also write the two JavaScript scripts in my layout,
All that remains is to fill in my secret key and my Captcha key,
Despite all this, my inspector gives me the following error
Error: Unknown base64 encoding at char:
The submission works, but does not seem to involve the captcha, I think I am not using the bundle completely correctly, would you have an indication for me please ?I share with you the status of my current code, thank you very much for your work !
Layout.html.twig
ContactType.php
contact.html.twig