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

recaptcha: wrong instanceof check in Request class (recaptcha hook is not working, ERROR in log) #260

Open
gitrequests opened this issue Jan 4, 2022 · 0 comments

Comments

@gitrequests
Copy link

gitrequests commented Jan 4, 2022

Error in core/components/formit/src/FormIt/Request.php line 85

if (!empty($this->reCaptcha) && $this->reCaptcha instanceof Recaptcha) {
                $this->reCaptcha->render($this->config);

If I understood correctly, $ this-> reCaptcha should be instanceof RecaptchaService (or FormItReCaptcha).
The render method is also in the RecaptchaService class.
Moreover, there is no Sterc\FormIt\Service\Recaptcha class. There is only a Sterc\FormIt\Hook\Recaptcha class.

From error log:
(ERROR @ /var/www/core/components/formit/src/FormIt/Request.php : 88) [FormIt] Could not load FormItReCaptcha service class.

Is the recaptcha hook working correctly?

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