mautic-recaptcha icon indicating copy to clipboard operation
mautic-recaptcha copied to clipboard

Mautic 5 Incompatible

Open J-Wick4 opened this issue 1 year ago • 4 comments

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

J-Wick4 avatar Jan 10 '24 06:01 J-Wick4

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).

technik-kvz avatar Jan 30 '24 11:01 technik-kvz

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.

J-Wick4 avatar Jan 30 '24 21:01 J-Wick4