<![CDATA[ [JsonFormBuilder] Issue with php7 and radio elements ? - My Forums]]> https://forums.modx.com/thread/?thread=104825 <![CDATA[ [JsonFormBuilder] Issue with php7 and radio elements ?]]> https://forums.modx.com/thread/104825/jsonformbuilder-issue-with-php7-and-radio-elements#dis-post-563681

I'm using this very nice JsonFormBuilder addon to build quickly complex form.
I just move a website from another server which running php7 and now there is an issue to make the form work.
On the server logs, I have found this :

[Sun Jan 20 17:41:59.476871 2019] [php7:error] [pid 19292] [client 92.xx.yy.69:43724]
PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function JsonFormBuilder_elementRadioGroup::__construct(),
2 passed in /home/LSA/web/domain.fr/public_html/core/components/jsonformbuilder/model/jsonformbuilder/JsonFormBuilderFromJson.class.php on line 86
and at least 3 expected in /home/LSA/web/domain.fr/public_html/core/components/jsonformbuilder/model/jsonformbuilder/elements/JsonFormBuilder_elementRadioGroup.class.php:45
Stack trace:\n#0 /home/LSA/web/domain.fr/public_html/core/components/jsonformbuilder/model/jsonformbuilder/JsonFormBuilderFromJson.class.php(86): JsonFormBuilder_elementRadioGroup->__construct('nom_de_la_salle', 'Salle')
#1 /home/LSA/web/domain.fr/public_html/core/cache/includes/elements/modsnippet/38.include.cache.php(12): JsonFormBuilderFromJson->output()
#2 /home/LSA/web/domain.fr/public_html/core/model/modx/modscript.class.php(76): include('/home/LSA/web/l...')
#3 /home/LSA/web/domain.fr/public_html/core/model/modx/modparser.class.php in /home/LSA/web/domain.fr/public_html/core/components/jsonformbuilder/model/jsonformbuilder/elements/JsonFormBuilder_elementRadioGroup.class.php on line 45, referer: https://domain.fr/


It's look like radio element generate problem, but I'm not very competent to dig further.
A little bit help will be helpfull smiley]]>
Spheerys Jan 20, 2019, 05:10 PM https://forums.modx.com/thread/104825/jsonformbuilder-issue-with-php7-and-radio-elements#dis-post-563681
<![CDATA[Re: [JsonFormBuilder] Issue with php7 and radio elements ? (Best Answer)]]> https://forums.modx.com/thread/104825/jsonformbuilder-issue-with-php7-and-radio-elements#dis-post-563685 https://github.com/marcushouse/JsonFormBuilder/commit/31ba07b2a3b0036ac4078319cbbaf6bcdff70fc3
And this commit solved my issue smiley]]>
Spheerys Jan 20, 2019, 06:55 PM https://forums.modx.com/thread/104825/jsonformbuilder-issue-with-php7-and-radio-elements#dis-post-563685