KonstantinCodes / mautic-recaptcha

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

mautic.CRITICAL: Uncaught PHP Exception #31

Open rebelia opened 2 years ago

rebelia commented 2 years ago

Mautic V4

mautic.CRITICAL: Uncaught PHP Exception Symfony\Component\Form\Exception\TransformationFailedException: "Unable to transform value for property path "[minScore]": Expected a numeric." at /home/admin/web/test/public_html/vendor/symfony/form/Form.php line 1110 {"exception":"[object] (Symfony\Component\Form\Exception\TransformationFailedException(code: 0): Unable to transform value for property path \"[minScore]\": Expected a numeric. at /home/admin/web/test/public_html/vendor/symfony/form/Form.php:1110, Symfony\Component\Form\Exception\TransformationFailedException(code: 0): Expected a numeric. at /home/admin/web/test/public_html/vendor/symfony/form/Extension/Core/DataTransformer/NumberToLocalizedStringTransformer.php:115)"}

KonstantinCodes commented 2 years ago

Hi, what value did you enter for the minScore?

Rohaty commented 2 years ago

Hi,

I met with the same mistake. This is due to the setting of the language version of Mautic or the operating system environment. The default value in reCaptcha 0.8 is displayed as 0,8: comma instead of dot. Just give a value with a dot e.g. 0.5 and everything is correct, without error.

image

Regards

remyPulse commented 2 years ago

it can be good to check value before updating value, and transform it if needed.