Skip to content
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

500 error for form submission with captcha #103

Open
v4codden opened this issue Aug 30, 2021 · 1 comment
Open

500 error for form submission with captcha #103

v4codden opened this issue Aug 30, 2021 · 1 comment

Comments

@v4codden
Copy link

v4codden commented Aug 30, 2021

I am getting a 500 error "whoops" message when trying to submit a formmaker form with the reCaptcha checkbox selected. I have tried image and audio, and neither worked. I am using formmaker version 1.4.4 and framework version 1.0.4. When checking in the google captcha admin, I see the message, "We detected that your site is not verifying reCAPTCHA solutions. This is required for the proper use of reCAPTCHA on your site. Please see our developer site for more information." After turning on debug mode, I see the stack trace saying the error is occurring on line 109 of /src/Controller/SubmissionApiController.php with a ClassNotFoundException.
It seems like the using statement is not correct. Any help?

@v4codden
Copy link
Author

I ended up moving the /google/recaptcha/src/ReCaptcha folder into the formmaker src, changing all use statements and changing namespaces accordingly, and now it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant