Mautic 4.0 - 500 Internal Server Error - when adding Contact or editing

Mautic 4.0 - 500 Internal Server Error - when adding Contact or editing

I am getting this error when trying to add, or edit any contact

Uh oh! I think I broke it. If I do it again, please report me to the system administrator!

500 Internal Server Error

error: {code: 500, text: “Internal Server Error”, exception: “”, trace: “”}

{“error”:{“code”:500,“text”:“Internal Server Error”,“exception”:"",“trace”:""},“route”:"/s/contacts/edit/2",“flashes”:"\u003Cdiv class=\u0022alert alert-growl alert-new\u0022\u003E\n \u003Cbutton type=\u0022button\u0022 class=\u0022close\u0022 data-dismiss=\u0022alert\u0022 aria-hidden=\u0022true\u0022\u003E\u003Ci class=\u0022fa fa-times\u0022\u003E\u003C/i\u003E\u003C/button\u003E\n \u003Cspan\u003E\u003Ca href=\u0027/s/contacts/edit/2\u0027 data-toggle=\u0027ajax\u0027 data-menu-link=\u0027mautic_contact_index\u0027\u003E\u003Cstrong\u003EAbigail Webb\u003C/strong\u003E\u003C/a\u003E has been updated!\u003C/span\u003E\n\u003C/div\u003E\n",“notifications”:{“content”:"\n\u003Cdiv class=\u0022media pt-sm pb-sm pr-md pl-md nm bdr-b alert-mautic mautic-update\u0022\u003E\n \u003Ch4 class=\u0022pull-left\u0022\u003EVersion 4.1.1 of Mautic is available for download. Please visit \u003Ca class=\u0027alert-link\u0027 href=\u0027https://github.com/mautic/mautic/releases/tag/4.1.1\u0027 target=\u0027_new\u0027\u003Ethis announcement\u003C/a\u003E for more information.\u003C/h4\u003E\n \u003Cdiv class=\u0022pull-right\u0022\u003E\n \u003Ca class=\u0022btn btn-danger\u0022 href=\u0022/s/update\u0022 data-toggle=\u0022ajax\u0022\u003EUpdate Now\u003C/a\u003E\n \u003C/div\u003E\n \u003Cdiv class=\u0022clearfix\u0022\u003E\u003C/div\u003E\n\u003C/div\u003E\n",“lastId”:"",“hasNewNotifications”:false,“updateAvailable”:true},“browserNotifications”:,“newContent”:"\u003Cdiv class=\u0022pa-20 mautibot-error\u0022\u003E\n \u003Cdiv class=\u0022row mt-lg pa-md\u0022\u003E\n \n \u003Cdiv class=\u0022mautibot-image col-xs-4 col-md-3\u0022\u003E\n \u003Cimg class=\u0022img-responsive\u0022

Were you able to resolve this? I’m having the same problem.

Try clearing your mautic cache.

You can either delete the contents of /var/cache/prod directory. Then try again. If it continues after that, check what the error is in /var/logs/prod-.log - that should have the error in it that tells you what led up to the 500 being triggered.