# Theme disappears after saving and trying to edit it again

**URL:** <https://forum.mautic.org/t/theme-disappears-after-saving-and-trying-to-edit-it-again/26992>\
**Category:** Product Support\
**Created:** [February 9, 2023, 4:16pm UTC](https://forum.mautic.org/t/theme-disappears-after-saving-and-trying-to-edit-it-again/26992 "2023-02-09T16:16:22Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![taxi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/taxi/32/522_2.png) [@taxi](https://forum.mautic.org/u/taxi)\
**Post date:** [February 9, 2023, 4:16pm UTC](https://forum.mautic.org/t/theme-disappears-after-saving-and-trying-to-edit-it-again/26992/1 "2023-02-09T16:16:22Z")

</div>

**Your software**  
My Mautic version is: 4.4.6  
My PHP version is: 7.4.36  
My Database type and version is:

**Your problem**  
My problem is:  
I modified the sunday theme a little bit.

It appears in the email builder. I can select it and edit it. Then I’m closing the editor via “save and close”.  
When I want to make changes i.e. I’m launching the builder again, the theme is not there but an empty page.

Did s.o. here made similar experience?

Many thanks  
Christian

These errors are showing in the log:

Steps I have tried to fix the problem:

---

<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:** [February 10, 2023, 12:47pm UTC](https://forum.mautic.org/t/theme-disappears-after-saving-and-trying-to-edit-it-again/26992/2 "2023-02-10T12:47:48Z")

</div>

Hi, did you use emojies?

---

<div class="post-metadata">

**Author:** ![taxi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/taxi/32/522_2.png) [@taxi](https://forum.mautic.org/u/taxi)\
**Post date:** [February 10, 2023, 1:19pm UTC](https://forum.mautic.org/t/theme-disappears-after-saving-and-trying-to-edit-it-again/26992/3 "2023-02-10T13:19:55Z")

</div>

Hi Joey,

No, no emojies. I just changed some images i.e. Logo and Header Image, and added 2 more social media buttons.

---

<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:** [February 10, 2023, 1:20pm UTC](https://forum.mautic.org/t/theme-disappears-after-saving-and-trying-to-edit-it-again/26992/4 "2023-02-10T13:20:46Z")

</div>

Are you using the grapesjs?

---

<div class="post-metadata">

**Author:** ![taxi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/taxi/32/522_2.png) [@taxi](https://forum.mautic.org/u/taxi)\
**Post date:** [February 10, 2023, 2:25pm UTC](https://forum.mautic.org/t/theme-disappears-after-saving-and-trying-to-edit-it-again/26992/5 "2023-02-10T14:25:29Z")

</div>

Yes.

{  
“name”: “Sunday”,  
“author”: “Mautic team based on a theme by Sendwithus”,  
“authorUrl”: “[https://www.sendwithus.com/resources/templates/sunday](https://www.sendwithus.com/resources/templates/sunday)”,  
“builder”: [“grapesjsbuilder”],  
“features”: [  
“page”,  
“email”,  
“form”  
]  
}

---

<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:** [February 10, 2023, 2:27pm UTC](https://forum.mautic.org/t/theme-disappears-after-saving-and-trying-to-edit-it-again/26992/6 "2023-02-10T14:27:53Z")

</div>

Could you plz check in the DB in the emails table if you have declaration as first string in the custom\_html field?  
If not, add it and check the email.

---

<div class="post-metadata">

**Author:** ![taxi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/taxi/32/522_2.png) [@taxi](https://forum.mautic.org/u/taxi)\
**Post date:** [February 10, 2023, 2:39pm UTC](https://forum.mautic.org/t/theme-disappears-after-saving-and-trying-to-edit-it-again/26992/7 "2023-02-10T14:39:57Z")

</div>

This is what I have under custom\_html

!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Trans…

It must be a problem of the template itself.  
The sunday template has the same problem. So, it is not because of my changes.

Maybe I should just take another template and modify that.

Or is it be because there is no builder: [“legacy”] in the config file?

---

<div class="post-metadata">

**Author:** ![taxi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/taxi/32/522_2.png) [@taxi](https://forum.mautic.org/u/taxi)\
**Post date:** [February 10, 2023, 3:50pm UTC](https://forum.mautic.org/t/theme-disappears-after-saving-and-trying-to-edit-it-again/26992/8 "2023-02-10T15:50:23Z")

</div>

YESSSS, the [legacy entry was missing.

When do I need the legacy and when not? I thought the legacy builder is deprecated?

---

<div class="post-metadata">

**Author:** ![taxi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/taxi/32/522_2.png) [@taxi](https://forum.mautic.org/u/taxi)\
**Post date:** [February 10, 2023, 9:28pm UTC](https://forum.mautic.org/t/theme-disappears-after-saving-and-trying-to-edit-it-again/26992/9 "2023-02-10T21:28:27Z")

</div>

NO! I’m experiencing the same problem (blank editor) again.

I think that the problem is, that while changing the template, I deleted some parts of the table, thus not showing up any more.

I’ll get through this! Many thanks for helping.

---

<div class="post-metadata">

**Author:** ![taxi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/taxi/32/522_2.png) [@taxi](https://forum.mautic.org/u/taxi)\
**Post date:** [February 12, 2023, 3:44pm UTC](https://forum.mautic.org/t/theme-disappears-after-saving-and-trying-to-edit-it-again/26992/10 "2023-02-12T15:44:15Z")

</div>

Well, the problem is in the sunday template.

I took another template as a basis for my changes and voilá it works.
