# Custom Field Issue Saving Contact

**URL:** <https://forum.mautic.org/t/custom-field-issue-saving-contact/32435>\
**Category:** Mautic 4 Install/Upgrade Support\
**Created:** [June 19, 2024, 2:17pm UTC](https://forum.mautic.org/t/custom-field-issue-saving-contact/32435 "2024-06-19T14:17:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mjfa](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mjfa/32/8118_2.png) [@mjfa](https://forum.mautic.org/u/mjfa)\
**Post date:** [June 19, 2024, 2:17pm UTC](https://forum.mautic.org/t/custom-field-issue-saving-contact/32435/1 "2024-06-19T14:17:14Z")

</div>

**Your software** MAutic 4.4.5  
_My PHP version is_ : 7.4.33  
\*My MySQL: MySQL

Try to update a contact, using a custom field that has been working fine called ‘Groups’, multi select field.

These errors are showing:

500 Internal Server Error

_These errors are showing in the Mautic log_ : [2024-06-19 14:56:55] mautic.CRITICAL:

Uncaught PHP Exception Doctrine\DBAL\Exception: “An exception occurred while executing ‘UPDATE leads SET groups = ? WHERE id = ?’ with params [null, “11422”]: syntax error, unexpected ‘public’ (T\_PUBLIC), expecting end of file” at /home/customer/www/domain\_name/public\_html/vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php line 185 {“exception”:“[object] (Doctrine\DBAL\Exception(code: 0): An exception occurred while executing ‘UPDATE leads SET groups = ? WHERE id = ?’ with params [null, "11422"]:\n\nsyntax error, unexpected ‘public’ (T\_PUBLIC), expecting end of file at /home/customer/www/domain\_name/public\_html/vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php:185, ParseError(code: 0): syntax error, unexpected ‘public’ (T\_PUBLIC), expecting end of file at /home/customer/www/domain\_name/public\_html/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDO/Exception.php:22)”} {“hostname”:“hostname”,“pid”:20629}

**Your problem**  
_My problem is_ : Not able to save, when update that field in the contact.  
Thanks for any help
