# 503 in Console when saving contact details

**URL:** <https://forum.mautic.org/t/503-in-console-when-saving-contact-details/28574>\
**Category:** Product Support\
**Created:** [July 12, 2023, 2:11am UTC](https://forum.mautic.org/t/503-in-console-when-saving-contact-details/28574 "2023-07-12T02:11:02Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![gauchoplugins](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/gauchoplugins/32/2022_2.png) [@gauchoplugins](https://forum.mautic.org/u/gauchoplugins)\
**Post date:** [July 12, 2023, 2:11am UTC](https://forum.mautic.org/t/503-in-console-when-saving-contact-details/28574/1 "2023-07-12T02:11:02Z")

</div>

**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:  
[![](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/3/303cfc63d18f99f218faef8f0fe179cb32328928.png) ](https://dl.dropboxusercontent.com/s/cslr24btsmumbyr/Screenshot%202023-07-11%20at%206.50.18%20PM.png?dl=0)

These errors are showing in the log:

Steps I have tried to fix the problem:

- clearing cache
- database schema update check  
[Troubleshooting | Mautic](https://docs.mautic.org/en/troubleshooting)

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [July 12, 2023, 8:53am UTC](https://forum.mautic.org/t/503-in-console-when-saving-contact-details/28574/2 "2023-07-12T08:53:18Z")

</div>

I have seen this error with 4.4.9, recent installation, by saving emails, if you have a solution, plz share, I’ll do the same thing.

---

<div class="post-metadata">

**Author:** ![robm](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/robm/32/260_2.png) [@robm](https://forum.mautic.org/u/robm)\
**Post date:** [July 12, 2023, 8:54am UTC](https://forum.mautic.org/t/503-in-console-when-saving-contact-details/28574/3 "2023-07-12T08:54:55Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![gauchoplugins](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/gauchoplugins/32/2022_2.png) [@gauchoplugins](https://forum.mautic.org/u/gauchoplugins)\
**Post date:** [July 12, 2023, 6:27pm UTC](https://forum.mautic.org/t/503-in-console-when-saving-contact-details/28574/4 "2023-07-12T18:27:46Z")

</div>

Not using hubspot.

Recently updated to 4.4.9, but also new to Mautic.

---

<div class="post-metadata">

**Author:** ![mikew](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mikew/32/5156_2.png) [@mikew](https://forum.mautic.org/u/mikew)\
**Post date:** [July 13, 2023, 7:58am UTC](https://forum.mautic.org/t/503-in-console-when-saving-contact-details/28574/5 "2023-07-13T07:58:50Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![gauchoplugins](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/gauchoplugins/32/2022_2.png) [@gauchoplugins](https://forum.mautic.org/u/gauchoplugins)\
**Post date:** [July 13, 2023, 7:14pm UTC](https://forum.mautic.org/t/503-in-console-when-saving-contact-details/28574/6 "2023-07-13T19:14:02Z")

</div>

Did all of that. Still no changes.

What’s also weird is the API is returning 503 errors.

Array  
(  
[errors] =\> Array  
(  
[0] =\> Array  
(  
[code] =\> 503  
[message] =\> The response has unexpected status code (503).

Response:

503 Service Unavailable
# Service Unavailable

The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.

* * *
Apache/2.4.57 (Debian) Server at mautic.(removed-4-security).com Port 80

```
            )

    )

```

)

---

<div class="post-metadata">

**Author:** ![gauchodeveloper](https://avatars.discourse-cdn.com/v4/letter/g/6a8cbe/32.png) [@gauchodeveloper](https://forum.mautic.org/u/gauchodeveloper)\
**Post date:** [July 14, 2023, 4:46pm UTC](https://forum.mautic.org/t/503-in-console-when-saving-contact-details/28574/7 "2023-07-14T16:46:33Z")

</div>

I am a developer in Gauchoplugins.

I tried to reproduce the error locally and got the following error log:

```auto
[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?

---

<div class="post-metadata">

**Author:** ![gauchoplugins](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/gauchoplugins/32/2022_2.png) [@gauchoplugins](https://forum.mautic.org/u/gauchoplugins)\
**Post date:** [July 16, 2023, 7:08pm UTC](https://forum.mautic.org/t/503-in-console-when-saving-contact-details/28574/8 "2023-07-16T19:08:24Z")

</div>

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!!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/1X/43c63600fe51440378769136903f1fa2a9a34102.png) [@system](https://forum.mautic.org/u/system)\
**Post date:** [July 18, 2023, 7:09am UTC](https://forum.mautic.org/t/503-in-console-when-saving-contact-details/28574/9 "2023-07-18T07:09:23Z")

</div>

Closed on July 18, 2023, 7:09am UTC

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.
