# Problems with Email Editor after Version 4 upgrade

**URL:** <https://forum.mautic.org/t/problems-with-email-editor-after-version-4-upgrade/21467>\
**Category:** Mautic 4 Install/Upgrade Support\
**Created:** [October 31, 2021, 3:43pm UTC](https://forum.mautic.org/t/problems-with-email-editor-after-version-4-upgrade/21467 "2021-10-31T15:43:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mneumann](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mneumann/32/2512_2.png) [@mneumann](https://forum.mautic.org/u/mneumann)\
**Post date:** [October 31, 2021, 3:43pm UTC](https://forum.mautic.org/t/problems-with-email-editor-after-version-4-upgrade/21467/1 "2021-10-31T15:43:49Z")

</div>

**Your software**  
_My PHP version is_ : 7.4.25

**Updating/Installing Errors**  
_I am_ (delete as applicable): Updating

_My problem is_ :  
I have 3 problems:

1. After upgrading, every time I clone an email I created before the update, it adds a nullnull string at the beginning of the email.

2. I can edit and save the email, but when I try to open it again, the email editor does not open, but shows the following screen instead:  

3. On any email that I open the code editor does not open up, so I cannot create a new template email for me to use.

Anybody has an idea what is happening and what I can do to fix that?

---

<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:** [November 1, 2021, 7:54am UTC](https://forum.mautic.org/t/problems-with-email-editor-after-version-4-upgrade/21467/2 "2021-11-01T07:54:15Z")

</div>

Add \<!DOCTYPE\> To the first line of your email template directly in the db to your emails.custom\_html table.  
It will work.

---

<div class="post-metadata">

**Author:** ![mneumann](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mneumann/32/2512_2.png) [@mneumann](https://forum.mautic.org/u/mneumann)\
**Post date:** [November 1, 2021, 3:26pm UTC](https://forum.mautic.org/t/problems-with-email-editor-after-version-4-upgrade/21467/3 "2021-11-01T15:26:20Z")

</div>

I assume it is \<!doctype html\>  
And does it go into the emails table into the custom\_html field?  
Doing that, I really got my old emails to duplicate and work correctly.

Now I still have a problem with the code editor. Most of the time it still does not open up. What can I do to fix that?

---

<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:** [November 1, 2021, 3:33pm UTC](https://forum.mautic.org/t/problems-with-email-editor-after-version-4-upgrade/21467/4 "2021-11-01T15:33:41Z")

</div>

Reload. It will open the second time.  
As far as I know 4.0.2 will fix both issues.
