KonstantinCodes / mautic-recaptcha

This Plugin brings reCAPTCHA integration to mautic.
GNU General Public License v3.0
50 stars 29 forks source link

Not working on Mautic v4.4.10 #46

Closed Sweely closed 10 months ago

Sweely commented 10 months ago

I have successfully installed the plugin, but when inserting a reCaptcha field to one of my forms the plugin just crashes with a 500 Internal Server Error. Looking in Mautic log these are the error messages I'm getting:

Skärmavbild 2023-10-15 kl  10 52 48

[2023-10-15 10:52:45] mautic.CRITICAL: Uncaught PHP Exception Symfony\Component\Form\Exception\TransformationFailedException: "Unable to transform value for property path "[minScore]": Expected a numeric." at /var/www/html/vendor/symfony/form/Form.php line 1131 {"exception":"[object] (Symfony\\Component\\Form\\Exception\\TransformationFailedException(code: 0): Unable to transform value for property path \"[minScore]\": Expected a numeric. at /var/www/html/vendor/symfony/form/Form.php:1131, Symfony\\Component\\Form\\Exception\\TransformationFailedException(code: 0): Expected a numeric. at /var/www/html/vendor/symfony/form/Extension/Core/DataTransformer/NumberToLocalizedStringTransformer.php:107)"} {"hostname":"cec57cb3e8d8","pid":44}

Tried both reCaptcha v2 and v3, both give me same error message. Site key and site secret entered in configuration.

Sweely commented 10 months ago

Been looking for a solution all of yesterday, and found this which worked like a charm.

In other words, change the value from 0,8 to 0.8 and everything just works.