# Custom Email Theme Issue

**URL:** <https://forum.mautic.org/t/custom-email-theme-issue/16688>\
**Category:** Mautic 3 - Install/Upgrade Support\
**Created:** [October 22, 2020, 4:35pm UTC](https://forum.mautic.org/t/custom-email-theme-issue/16688 "2020-10-22T16:35:19Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![malik](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/malik/32/433_2.png) [@malik](https://forum.mautic.org/u/malik)\
**Post date:** [October 22, 2020, 4:35pm UTC](https://forum.mautic.org/t/custom-email-theme-issue/16688/1 "2020-10-22T16:35:19Z")

</div>

**Your software**  
_My PHP version is_ : php 7.3.20  
_My MySQL/MariaDB version is_ (delete as applicable): 5.7.30-1debian10 (docker image: mysql:5.7)

**These errors are showing in the Mautic log** : No errors

**Error**  
We have created a new custom Email Theme but when we try to install, it gives the following error

The theme you tried to install is missing the following required files and thus could not be installed: config.json, html/message.html.twig

These files are already in the Theme Directory, but we are still not able to successfully upload the new custom theme.

Can anyone help?

---

<div class="post-metadata">

**Author:** ![malik](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/malik/32/433_2.png) [@malik](https://forum.mautic.org/u/malik)\
**Post date:** [October 28, 2020, 9:15am UTC](https://forum.mautic.org/t/custom-email-theme-issue/16688/2 "2020-10-28T09:15:34Z")

</div>

Anyone who can help with this issue? Thanks!

---

<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:** [October 28, 2020, 9:48am UTC](https://forum.mautic.org/t/custom-email-theme-issue/16688/3 "2020-10-28T09:48:32Z")

</div>

Hi, when you upload, you need to have those files in the zip you are uploading.  
Upload it by using the Settings - Themes - New option in Mautic.  
Just download any theme and see how yours is different.  
More info:

> **[Building a Theme, Step by Step](https://www.mautic.org/building-a-theme-step-by-step)**
>
> Building your first theme
> Mautic offers a lot of flexibility when it comes to creating themes.As you learn more, you will be able to harness more and more of the benefits of custom themes.
> Follow this guide to create a theme for a landing page,...

---

<div class="post-metadata">

**Author:** ![malik](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/malik/32/433_2.png) [@malik](https://forum.mautic.org/u/malik)\
**Post date:** [November 5, 2020, 9:58am UTC](https://forum.mautic.org/t/custom-email-theme-issue/16688/4 "2020-11-05T09:58:58Z")

</div>

We followed the exact same process, didn’t work

---

<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 11, 2020, 6:40pm UTC](https://forum.mautic.org/t/custom-email-theme-issue/16688/5 "2020-11-11T18:40:11Z")

</div>

Hello,  
A common mistake is, that developers place the files in a directory in the zip. Are you sure your structure is okay?

---

<div class="post-metadata">

**Author:** ![modifiedcontent](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/modifiedcontent/32/511_2.png) [@modifiedcontent](https://forum.mautic.org/u/modifiedcontent)\
**Post date:** [May 29, 2022, 10:23pm UTC](https://forum.mautic.org/t/custom-email-theme-issue/16688/6 "2022-05-29T22:23:52Z")

</div>

I see the exact same issue in version 4.3.1. When I download an existing theme by the Mautic team, change one minor thing in the email template, then zip in the exact same structure and try to upload and install, I still get this error:

```auto
The theme you tried to install is missing the following required files and thus could not be installed: config.json, html/message.html.twig

```

It was also [reported here as a bug](https://github.com/mautic/mautic/issues/8858).

The zip file gets uploaded to the themes folder, but is not extracted. Uploading the unzipped folder manually (via FTP) works fine.

---

<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:** [May 30, 2022, 8:50am UTC](https://forum.mautic.org/t/custom-email-theme-issue/16688/7 "2022-05-30T08:50:04Z")

</div>

Did you keep the folder structure? It’s a common mistake to zip from outside the theme folder…

---

<div class="post-metadata">

**Author:** ![modifiedcontent](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/modifiedcontent/32/511_2.png) [@modifiedcontent](https://forum.mautic.org/u/modifiedcontent)\
**Post date:** [May 30, 2022, 11:19am UTC](https://forum.mautic.org/t/custom-email-theme-issue/16688/8 "2022-05-30T11:19:39Z")

</div>

Zipped back up exactly the same as a Mautic teams themes downloaded from the application.

---

<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:** [May 30, 2022, 12:11pm UTC](https://forum.mautic.org/t/custom-email-theme-issue/16688/9 "2022-05-30T12:11:12Z")

</div>

Can you confirm that the file extenstions are properly saved, your editing software didn’t change it?  
If it’s all okay, plz send me in PM, I’ll take a look

---

<div class="post-metadata">

**Author:** ![modifiedcontent](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/modifiedcontent/32/511_2.png) [@modifiedcontent](https://forum.mautic.org/u/modifiedcontent)\
**Post date:** [June 11, 2022, 12:52pm UTC](https://forum.mautic.org/t/custom-email-theme-issue/16688/10 "2022-06-11T12:52:21Z")

</div>

@joeyk, apologies for my slow follow-up. Windows adds a level to the zip folder when you rezip; blank/blank/etc. If you watch out for that the errors disappear.

---

<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:** [June 11, 2022, 2:12pm UTC](https://forum.mautic.org/t/custom-email-theme-issue/16688/11 "2022-06-11T14:12:58Z")

</div>

So basically what I mentioned in my first comment?

---

<div class="post-metadata">

**Author:** ![jpgiron](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/jpgiron/32/1751_2.png) [@jpgiron](https://forum.mautic.org/u/jpgiron)\
**Post date:** [August 3, 2022, 12:00am UTC](https://forum.mautic.org/t/custom-email-theme-issue/16688/12 "2022-08-03T00:00:26Z")

</div>

Thanks for this. It help to me to fix my same problem

---

<div class="post-metadata">

**Author:** ![cremigerhonig](https://avatars.discourse-cdn.com/v4/letter/c/9de053/32.png) [@cremigerhonig](https://forum.mautic.org/u/cremigerhonig)\
**Post date:** [July 5, 2024, 10:17am UTC](https://forum.mautic.org/t/custom-email-theme-issue/16688/13 "2024-07-05T10:17:25Z")

</div>

my email theme is also making problems

is it related to this issue?

# [Not sending emails - adding various CSS to mails - sending email create 503 error](https://forum.mautic.org/t/not-sending-emails-adding-various-css-to-mails-sending-email-create-503-error/32651)
