Error adding "select" field in a form

Hi,

I just a beginner in Mautic, only a marketing user, not a developer. Once I tried to build a “select” type custom field in a Form I have the follwing error:



[2017-04-21 17:21:54] mautic.NOTICE: PHP Notice - Undefined index: properties - in file /home/salesxpro/domains/salesxpro.com/public_html/master/app/bundles/CoreBundle/Views/FormTheme/Custom/sortablelist_row.html.php - at line 6 [] []

[2017-04-21 17:21:54] mautic.NOTICE: PHP Notice - Trying to get property of non-object - in file /home/salesxpro/domains/salesxpro.com/public_html/master/app/bundles/CoreBundle/Views/FormTheme/Custom/sortablelist_row.html.php - at line 9 [] []

[2017-04-21 17:21:54] mautic.NOTICE: PHP Notice - Trying to get property of non-object - in file /home/salesxpro/domains/salesxpro.com/public_html/master/app/bundles/CoreBundle/Views/FormTheme/Custom/sortablelist_row.html.php - at line 27 [] []

[2017-04-21 17:21:54] mautic.WARNING: PHP Warning - Invalid argument supplied for foreach() - in file /home/salesxpro/domains/salesxpro.com/public_html/master/app/bundles/CoreBundle/Views/FormTheme/Custom/sortablelist_row.html.php - at line 27 [] []

[2017-04-21 17:21:54] mautic.ERROR: SymfonyComponentDebugExceptionFatalThrowableError: Type error: Argument 1 passed to SymfonyBundleFrameworkBundleTemplatingHelperFormHelper::errors() must be an instance of SymfonyComponentFormFormView, null given, called in /home/salesxpro/domains/salesxpro.com/public_html/master/app/bundles/CoreBundle/Views/FormTheme/Custom/sortablelist_row.html.php on line 31 - in file /home/salesxpro/domains/salesxpro.com/public_html/master/vendor/symfony/framework-bundle/Templating/Helper/FormHelper.php - at line 205 [] []



Any help where is the problem and how to fix it?



Mauitc verion is 2.7.1.

pHp 7.9.18



Thanks in advance for any help.

Jordi

Hi,
I just a beginner in Mautic, only a marketing user, not a developer. Once I tried to build a “select” type custom field in a Form I have the follwing error:

[2017-04-21 17:21:54] mautic.NOTICE: PHP Notice - Undefined index: properties - in file /home/salesxpro/domains/salesxpro.com/public_html/master/app/bundles/CoreBundle/Views/FormTheme/Custom/sortablelist_row.html.php - at line 6 [] []
[2017-04-21 17:21:54] mautic.NOTICE: PHP Notice - Trying to get property of non-object - in file /home/salesxpro/domains/salesxpro.com/public_html/master/app/bundles/CoreBundle/Views/FormTheme/Custom/sortablelist_row.html.php - at line 9 [] []
[2017-04-21 17:21:54] mautic.NOTICE: PHP Notice - Trying to get property of non-object - in file /home/salesxpro/domains/salesxpro.com/public_html/master/app/bundles/CoreBundle/Views/FormTheme/Custom/sortablelist_row.html.php - at line 27 [] []
[2017-04-21 17:21:54] mautic.WARNING: PHP Warning - Invalid argument supplied for foreach() - in file /home/salesxpro/domains/salesxpro.com/public_html/master/app/bundles/CoreBundle/Views/FormTheme/Custom/sortablelist_row.html.php - at line 27 [] []
[2017-04-21 17:21:54] mautic.ERROR: SymfonyComponentDebugExceptionFatalThrowableError: Type error: Argument 1 passed to SymfonyBundleFrameworkBundleTemplatingHelperFormHelper::errors() must be an instance of SymfonyComponentFormFormView, null given, called in /home/salesxpro/domains/salesxpro.com/public_html/master/app/bundles/CoreBundle/Views/FormTheme/Custom/sortablelist_row.html.php on line 31 - in file /home/salesxpro/domains/salesxpro.com/public_html/master/vendor/symfony/framework-bundle/Templating/Helper/FormHelper.php - at line 205 [] []

Any help where is the problem and how to fix it?

Mauitc verion is 2.7.1.
pHp 7.9.18

Thanks in advance for any help.
Jordi

[quote]I have the same issue using Mautic v2.8.2. Any suggestion are appreciated.

Thanks
Christo[/quote]

This was just a stupid beginner mistake…
One just has to add values by clicking on the yellow label “Add a value”. Than one can save the form. :smiley:

Regards
Christo