Your software
My Mautic version is: v4.4.9
My PHP version is: 8.0.29
My Database type and version is: MariaDB 10.4.20
Your problem
My problem is: Cannot update/save contact details. I get a 503 console error. No log errors display. Here’s a screenshot of what occurs when I try to edit/update any fields and click to save:
I am curious to know if you have installed and activated the hubspot plugin? I encountered similar issues right after trying to set up that plugin. Maybe just co-incidence
probably not related but have you checked the permissions on the directory, try and chown the entire mautic directory again, rm var/cache/ as well. if you have access to the server and can tail -f /var/log/nginx(orapache2)/mautic.* to see what happens when you save
I tried to reproduce the error locally and got the following error log:
[Fri Jul 14 22:19:19.923378 2023] [php7:error] [pid 122564] [client 127.0.0.1:45976]
PHP Fatal error: Allowed memory size of 2122317824 bytes exhausted (tried to allocate 20480 bytes) in /var/www/html/app/bundles/LeadBundle/Entity/CustomFieldEntityTrait.php on line 249,
referer: https://mautic.domain.com/s/contacts/edit/3332
PHP memory_limit was initially 128MB. I tried by increasing it upto 2024MB but got the same error. How do I debug the code which is causing OutOfMemoryException?
Somehow the issue was caused by having a Custom Field called “Imported”. After removing that field, I was able to save contact data again and use the API properly.
Even when recreating the field with the same alias “imported”, it had the same issue. Finally renaming the alias to imported1 was also OK - just the alias “imported” didn’t caused the issue. So strange!!