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

mautic.CRITICAL: Uncaught PHP Exception

Open rebelia opened this issue 3 years ago • 3 comments

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)"}

rebelia avatar Nov 29 '21 16:11 rebelia

Hi, what value did you enter for the minScore?

KonstantinCodes avatar Jan 07 '22 09:01 KonstantinCodes

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

Rohaty avatar Mar 11 '22 08:03 Rohaty

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

remyPulse avatar Jun 01 '22 12:06 remyPulse