# CustomFieldValueHelper.php error

**URL:** <https://forum.mautic.org/t/customfieldvaluehelper-php-error/30336>\
**Category:** Product Support\
**Created:** [December 28, 2023, 8:28pm UTC](https://forum.mautic.org/t/customfieldvaluehelper-php-error/30336 "2023-12-28T20:28:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![CarlJohan](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/carljohan/32/7016_2.png) [@CarlJohan](https://forum.mautic.org/u/CarlJohan)\
**Post date:** [December 28, 2023, 8:28pm UTC](https://forum.mautic.org/t/customfieldvaluehelper-php-error/30336/1 "2023-12-28T20:28:05Z")

</div>

**Your software**  
My Mautic version is: 4.45  
My PHP version is: 7.4.33  
My Database type and version is: 10.3.39-MariaDB

**Your problem**  
My problem is:  
Im getting this error message: WARNING: PHP Warning - Invalid argument supplied for foreach() - in file /home/root2/public\_html/data/app/bundles/LeadBundle/Helper/CustomFieldValueHelper.php - at line 57 {“field”:{“id”:“45”,“label”:“C\_TestContact”,“alias”:“c\_testcontact”,“type”:“boolean”,“group”:“core”,“object”:“lead”,“is\_fixed”:“0”,“properties”:“a:2:{s:2:no";s:2:"No";s:3:"yes";s:3:"Yes";}"”,“default\_value”:null,“value”:“1”},“value”:“1”,“type”:“boolean”,“properties”:false} {“hostname”:“[server1.wse-2.com](http://server1.wse-2.com)”,“pid”:25734}

I have created custom fields directly in the DB, perhaps that is the issue?

Steps I have tried to fix the problem: Nothing
