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.

1 Like

It seems this is this issue:

We too are having this issue for some time now, which renders Mautic useless for us.

I have posted in Github as well as the community Slack but have yet to find a solution.

EDIT: We have generated assets and cleared cache with mautic directory:

php bin/console mautic:assets:generate
rm -rf var/cache/*

Please help. We’re at a crossroads here.

Thanks,
EP

2 Likes

Issue resolved! (for us and others)
https://github.com/mautic/mautic/issues/10453

1 Like