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

Mautic 5 Incompatible #49

Open
J-Wick4 opened this issue Jan 10, 2024 · 2 comments
Open

Mautic 5 Incompatible #49

J-Wick4 opened this issue Jan 10, 2024 · 2 comments

Comments

@J-Wick4
Copy link

J-Wick4 commented Jan 10, 2024

Looks like a few tweaks need to be made to make it work for Mautic 5.

PHP Fatal error: Declaration of MauticPlugin\MauticRecaptchaBundle\Integration\RecaptchaIntegration::appendToForm(&$builder, $data, $formArea) must be compatible with Mautic\PluginBundle\Integration\AbstractIntegration::appendToForm(&$builder, $data, $formArea): void in /var/www/vhosts/domain.net/subdomains/hello5/docroot/plugins/MauticRecaptchaBundle/Integration/RecaptchaIntegration.php on line 51

In RecaptchaIntegration.php line 51:

Compile Error: Declaration of MauticPlugin\MauticRecaptchaBundle\Integration\RecaptchaIntegration::appe
ndToForm(&$builder, $data, $formArea) must be compatible with Mautic\PluginBundle\Integration\AbstractI
ntegration::appendToForm(&$builder, $data, $formArea): void

@technik-kvz
Copy link

I wrote a hack in my repo: https://github.com/technik-kvz/mautic-recaptcha/tree/mautic5 if you want to have a look. For me it runs, but it is a dirty hack since I put the code in a helper PHP instead of writing twig stuff (which I was never in touch before).

@J-Wick4
Copy link
Author

J-Wick4 commented Jan 30, 2024

I wrote a hack in my repo: https://github.com/technik-kvz/mautic-recaptcha/tree/mautic5 if you want to have a look. For me it runs, but it is a dirty hack since I put the code in a helper PHP instead of writing twig stuff (which I was never in touch before).

Thanks, I'll take a look soon.

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

2 participants