We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 28173
    • 409 Posts
    Hi smiley

    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

    This question has been answered by Spheerys. See the first response.

    [ed. note: Spheerys last edited this post 5 years, 2 months ago.]
    • discuss.answer
      • 28173
      • 409 Posts
      The addon author made a change last year on GitHub :
      And this commit solved my issue smiley [ed. note: Spheerys last edited this post 5 years, 2 months ago.]