# Unable to save email after editing tamplet

**URL:** https://forum.mautic.org/t/unable-to-save-email-after-editing-tamplet/34532
**Category:** Product Support
**Tags:** mautic-3, mautic-4
**Created:** [December 24, 2024, 7:00am UTC](https://forum.mautic.org/t/unable-to-save-email-after-editing-tamplet/34532 "2024-12-24T07:00:44Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![worsmithammar](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/worsmithammar/32/13382_2.png) [@worsmithammar](https://forum.mautic.org/u/worsmithammar)
#### Post date: [December 24, 2024, 7:00am UTC](https://forum.mautic.org/t/unable-to-save-email-after-editing-tamplet/34532/1 "2024-12-24T07:00:44Z")

</div>

**Your software**  
My Mautic version is: 5.2.11  
My PHP version is: 8.1.31  
My Database type and version is: 10.6.20-MariaDB-cll-lve

**Your problem**  
My problem is:  
I am uable to save email once I edit text of template from builder .

These errors are showing in the log:

Steps I have tried to fix the problem:  
Clear Cache. Re install mautic on my hosting.

---

<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: [December 24, 2024, 7:10am UTC](https://forum.mautic.org/t/unable-to-save-email-after-editing-tamplet/34532/2 "2024-12-24T07:10:26Z")

</div>

That happens, because you have errors in your template OR you have wrong permissions.

Try to validate your MJML code with a tool like [mjml.io](http://mjml.io). Copy and paste in the editor there and fix the errors.

---

<div class="post-metadata">

### Author: ![worsmithammar](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/worsmithammar/32/13382_2.png) [@worsmithammar](https://forum.mautic.org/u/worsmithammar)
#### Post date: [December 24, 2024, 10:31am UTC](https://forum.mautic.org/t/unable-to-save-email-after-editing-tamplet/34532/3 "2024-12-24T10:31:08Z")

</div>

hi I replaced both of the codes of message.html.twig and base.html.twig but the problem remains . i also check permissions these are also correct. please guide me in more detail.  
Thanks in advance.
