Mautic Community Forums

Save form causes 500 internal server error

Your software
My Mautic version is: 4.0.1
My PHP version is: 7.4.22
My Database type and version is: MySQL 5.7.33

Your problem
My problem is: When I try to save my form I get Internal Sever Error 500.

These errors are showing in the log:
[2021-10-12 14:01:45] mautic.CRITICAL: Uncaught PHP Exception Symfony\Component\Form\Exception\UnexpectedTypeException: “Expected argument of type “null or string”, “boolean” given” at /var/www/vhosts/h189367.web200.dogado.net/connect.jiva.one/vendor/symfony/form/Extension/Core/DataMapper/RadioListMapper.php line 49 {“exception”:"[object] (Symfony\Component\Form\Exception\UnexpectedTypeException(code: 0): Expected argument of type “null or string”, “boolean” given at /var/www/vhosts/h189367.web200.dogado.net/connect.jiva.one/vendor/symfony/form/Extension/Core/DataMapper/RadioListMapper.php:49)"}

Steps I have tried to fix the problem:
I do not use a boolean or radio field in the form but a checkbox, so I cannot really make sense of this error.

It seems this is this issue: