# Email template not saving and close after edit

**URL:** <https://forum.mautic.org/t/email-template-not-saving-and-close-after-edit/21302>\
**Category:** Product Support\
**Tags:** mautic-4\
**Created:** [October 16, 2021, 3:41pm UTC](https://forum.mautic.org/t/email-template-not-saving-and-close-after-edit/21302 "2021-10-16T15:41:25Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![jflowdking](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/jflowdking/32/5951_2.png) [@jflowdking](https://forum.mautic.org/u/jflowdking)\
**Post date:** [October 16, 2021, 3:41pm UTC](https://forum.mautic.org/t/email-template-not-saving-and-close-after-edit/21302/1 "2021-10-16T15:41:25Z")

</div>

**Your software**  
My Mautic version is: v4.0.1  
My PHP version is: 7.4.24  
My Database type and version is: 10.3.31-MariaDB-log-cll-lve

**Your problem**  
My problem is:  
Have installed Mautic on a subdomain in a shared hosting by Namecheap and everything is working fine except that I cant save templates after editing and thereby causing all messages blank when sent as email.

Please I need help.

I even have to switch from the new grapejs to the mautic builder but still facing the same challenge

I will appreciate your assistance.

Thank you

These errors are showing in the log: Below is the log:

[2021-10-15 12:00:06] mautic.NOTICE: RuntimeException: An integration must be specified (uncaught exception) at /home/melvinmayard/[email.primelifeenterprise.co.uk/app/bundles/PluginBundle/Command/FetchLeadsCommand.php](http://email.primelifeenterprise.co.uk/app/bundles/PluginBundle/Command/FetchLeadsCommand.php) line 94 while running console command `mautic:integration:fetchleads` [2021-10-15 12:00:06] mautic.WARNING: Command `mautic:integration:fetchleads` exited with status code 1 [2021-10-15 12:00:08] mautic.NOTICE: RuntimeException: An integration must be specified (uncaught exception) at /home/melvinmayard/[email.primelifeenterprise.co.uk/app/bundles/PluginBundle/Command/FetchLeadsCommand.php](http://email.primelifeenterprise.co.uk/app/bundles/PluginBundle/Command/FetchLeadsCommand.php) line 94 while running console command `mautic:integration:fetchleads` [2021-10-15 12:00:08] mautic.WARNING: Command `mautic:integration:fetchleads` exited with status code 1 [2021-10-15 12:00:27] mautic.NOTICE: Symfony\Component\Console\Exception\NamespaceNotFoundException: There are no commands defined in the “mautic:leadlists” namespace. Did you mean one of these? mautic mautic:assets mautic:broadcasts mautic:cache mautic:campaigns mautic:citrix mautic:contacts mautic:custom-field mautic:donotsell mautic:email mautic:emails mautic:install mautic:integration mautic:integration:pipedrive mautic:integrations mautic:iplookup mautic:maintenance mautic:marketplace mautic:max-mind mautic:messages mautic:plugins mautic:queue mautic:reports mautic:segments mautic:social mautic:theme mautic:transifex mautic:unusedip mautic:update mautic:webhooks (uncaught exception) at /home/melvinmayard/[email.primelifeenterprise.co.uk/vendor/symfony/console/Application.php](http://email.primelifeenterprise.co.uk/vendor/symfony/console/Application.php) line 604 while running console command `UNKNOWN` [2021-10-15 12:10:08] mautic.NOTICE: RuntimeException: An integration must be specified (uncaught exception) at /home/melvinmayard/[email.primelifeenterprise.co.uk/app/bundles/PluginBundle/Command/FetchLeadsCommand.php](http://email.primelifeenterprise.co.uk/app/bundles/PluginBundle/Command/FetchLeadsCommand.php) line 94 while running console command `mautic:integration:fetchleads` [2021-10-15 12:10:08] mautic.WARNING: Command `mautic:integration:fetchleads` exited with status code 1 [2021-10-15 12:10:33] mautic.NOTICE: Symfony\Component\Console\Exception\NamespaceNotFoundException: There are no commands defined in the “mautic:leadlists” namespace. Did you mean one of these? mautic mautic:assets mautic:broadcasts mautic:cache mautic:campaigns mautic:citrix mautic:contacts mautic:custom-field mautic:donotsell mautic:email mautic:emails mautic:install mautic:integration mautic:integration:pipedrive mautic:integrations mautic:iplookup mautic:maintenance mautic:marketplace mautic:max-mind mautic:messages mautic:plugins mautic:queue mautic:reports mautic:segments mautic:social mautic:theme mautic:transifex mautic:unusedip mautic:update mautic:webhooks (uncaught exception) at /home/melvinmayard/[email.primelifeenterprise.co.uk/vendor/symfony/console/Application.php](http://email.primelifeenterprise.co.uk/vendor/symfony/console/Application.php) line 604 while running console command `UNKNOWN` [2021-10-15 12:10:47] mautic.NOTICE: RuntimeException: An integration must be specified (uncaught exception) at /home/melvinmayard/[email.primelifeenterprise.co.uk/app/bundles/PluginBundle/Command/FetchLeadsCommand.php](http://email.primelifeenterprise.co.uk/app/bundles/PluginBundle/Command/FetchLeadsCommand.php) line 94 while running console command `mautic:integration:fetchleads` [2021-10-15 12:10:47] mautic.WARNING: Command `mautic:integration:fetchleads` exited with status code 1 [2021-10-15 12:20:04] mautic.NOTICE: RuntimeException: An integration must be specified (uncaught exception) at /home/melvinmayard/[email.primelifeenterprise.co.uk/app/bundles/PluginBundle/Command/FetchLeadsCommand.php](http://email.primelifeenterprise.co.uk/app/bundles/PluginBundle/Command/FetchLeadsCommand.php) line 94 while running console command `mautic:integration:fetchleads` [2021-10-15 12:20:04] mautic.WARNING: Command `mautic:integration:fetchleads` exited with status code 1 [2021-10-15 12:20:17] mautic.NOTICE: RuntimeException: An integration must be specified (uncaught exception) at /home/melvinmayard/[email.primelifeenterprise.co.uk/app/bundles/PluginBundle/Command/FetchLeadsCommand.php](http://email.primelifeenterprise.co.uk/app/bundles/PluginBundle/Command/FetchLeadsCommand.php) line 94 while running console command `mautic:integration:fetchleads` [2021-10-15 12:20:17] mautic.WARNING: Command `mautic:integration:fetchleads` exited with status code 1 [2021-10-15 12:20:49] mautic.NOTICE: Symfony\Component\Console\Exception\NamespaceNotFoundException: There are no commands defined in the “mautic:leadlists” namespace. Did you mean one of these? mautic mautic:assets mautic:broadcasts mautic:cache mautic:campaigns mautic:citrix mautic:contacts mautic:custom-field mautic:donotsell mautic:email mautic:emails mautic:install mautic:integration mautic:integration:pipedrive mautic:integrations mautic:iplookup mautic:maintenance mautic:marketplace mautic:max-mind mautic:messages mautic:plugins mautic:queue mautic:reports mautic:segments mautic:social mautic:theme mautic:transifex mautic:unusedip mautic:update mautic:webhooks (uncaught exception) at /home/melvinmayard/[email.primelifeenterprise.co.uk/vendor/symfony/console/Application.php](http://email.primelifeenterprise.co.uk/vendor/symfony/console/Application.php) line 604 while running console command `UNKNOWN` [2021-10-15 12:30:04] mautic.NOTICE: RuntimeException: An integration must be specified (uncaught exception) at /home/melvinmayard/[email.primelifeenterprise.co.uk/app/bundles/PluginBundle/Command/FetchLeadsCommand.php](http://email.primelifeenterprise.co.uk/app/bundles/PluginBundle/Command/FetchLeadsCommand.php) line 94 while running console command `mautic:integration:fetchleads` [2021-10-15 12:30:04] mautic.WARNING: Command `mautic:integration:fetchleads` exited with status code 1 [2021-10-15 12:30:04] mautic.NOTICE: Symfony\Component\Console\Exception\NamespaceNotFoundException: There are no commands defined in the “mautic:leadlists” namespace. Did you mean one of these? mautic mautic:assets mautic:broadcasts mautic:cache mautic:campaigns mautic:citrix mautic:contacts mautic:custom-field mautic:donotsell mautic:email mautic:emails mautic:install mautic:integration mautic:integration:pipedrive mautic:integrations mautic:iplookup mautic:maintenance mautic:marketplace mautic:max-mind mautic:messages mautic:plugins mautic:queue mautic:reports mautic:segments mautic:social mautic:theme mautic:transifex mautic:unusedip mautic:update mautic:webhooks (uncaught exception) at /home/melvinmayard/[email.primelifeenterprise.co.uk/vendor/symfony/console/Application.php](http://email.primelifeenterprise.co.uk/vendor/symfony/console/Application.php) line 604 while running console command `UNKNOWN` [2021-10-15 12:30:36] mautic.NOTICE: RuntimeException: An integration must be specified (uncaught exception) at /home/melvinmayard/[email.primelifeenterprise.co.uk/app/bundles/PluginBundle/Command/FetchLeadsCommand.php](http://email.primelifeenterprise.co.uk/app/bundles/PluginBundle/Command/FetchLeadsCommand.php) line 94 while running console command `mautic:integration:fetchleads` [2021-10-15 12:30:36] mautic.WARNING: Command `mautic:integration:fetchleads` exited with status code 1 [2021-10-15 12:40:02] mautic.NOTICE: RuntimeException: An integration must be specified (uncaught exception) at /home/melvinmayard/[email.primelifeenterprise.co.uk/app/bundles/PluginBundle/Command/FetchLeadsCommand.php](http://email.primelifeenterprise.co.uk/app/bundles/PluginBundle/Command/FetchLeadsCommand.php) line 94 while running console command `mautic:integration:fetchleads` [2021-10-15 12:40:02] mautic.WARNING: Command `mautic:integration:fetchleads` exited with status code 1 [2021-10-15 12:40:16] mautic.NOTICE: RuntimeException: An integration must be specified (uncaught exception) at /home/melvinmayard/[email.primelifeenterprise.co.uk/app/bundles/PluginBundle/Command/FetchLeadsCommand.php](http://email.primelifeenterprise.co.uk/app/bundles/PluginBundle/Command/FetchLeadsCommand.php) line 94 while running console command `mautic:integration:fetchleads` [2021-10-15 12:40:16] mautic.WARNING: Command `mautic:integration:fetchleads` exited with status code 1 [2021-10-15 12:40:31] mautic.NOTICE: Symfony\Component\Console\Exception\NamespaceNotFoundException: There are no commands defined in the “mautic:leadlists” namespace. Did you mean one of these? mautic mautic:assets mautic:broadcasts mautic:cache mautic:campaigns mautic:citrix mautic:contacts mautic:custom-field mautic:donotsell mautic:email mautic:emails mautic:install mautic:integration mautic:integration:pipedrive mautic:integrations mautic:iplookup mautic:maintenance mautic:marketplace mautic:max-mind mautic:messages mautic:plugins mautic:queue mautic:reports mautic:segments mautic:social mautic:theme mautic:transifex mautic:unusedip mautic:update mautic:webhooks (uncaught exception) at /home/melvinmayard/[email.primelifeenterprise.co.uk/vendor/symfony/console/Application.php](http://email.primelifeenterprise.co.uk/vendor/symfony/console/Application.php) line 604 while running console command `UNKNOWN` [2021-10-15 12:50:12] mautic.NOTICE: RuntimeException: An integration must be specified (uncaught exception) at /home/melvinmayard/[email.primelifeenterprise.co.uk/app/bundles/PluginBundle/Command/FetchLeadsCommand.php](http://email.primelifeenterprise.co.uk/app/bundles/PluginBundle/Command/FetchLeadsCommand.php) line 94 while running console command `mautic:integration:fetchleads` [2021-10-15 12:50:12] mautic.WARNING: Command `mautic:integration:fetchleads` exited with status code 1 [2021-10-15 12:50:33] mautic.NOTICE: RuntimeException: An integration must be specified (uncaught exception) at /home/melvinmayard/[email.primelifeenterprise.co.uk/app/bundles/PluginBundle/Command/FetchLeadsCommand.php](http://email.primelifeenterprise.co.uk/app/bundles/PluginBundle/Command/FetchLeadsCommand.php) line 94 while running console command `mautic:integration:fetchleads` [2021-10-15 12:50:33] mautic.WARNING: Command `mautic:integration:fetchleads` exited with status code 1 [2021-10-15 12:50:42] mautic.NOTICE: Symfony\Component\Console\Exception\NamespaceNotFoundException: There are no commands defined in the “mautic:leadlists” namespace. Did you mean one of these? mautic mautic:assets mautic:broadcasts mautic:cache mautic:campaigns mautic:citrix mautic:contacts mautic:custom-field mautic:donotsell mautic:email mautic:emails mautic:install mautic:integration mautic:integration:pipedrive mautic:integrations mautic:iplookup mautic:maintenance mautic:marketplace mautic:max-mind mautic:messages mautic:plugins mautic:queue mautic:reports mautic:segments mautic:social mautic:theme mautic:transifex mautic:unusedip mautic:update mautic:webhooks (uncaught exception) at /home/melvinmayard/[email.primelifeenterprise.co.uk/vendor/symfony/console/Application.php](http://email.primelifeenterprise.co.uk/vendor/symfony/console/Application.php) line 604 while running console command `UNKNOWN` [2021-10-15 13:00:09] mautic.NOTICE: RuntimeException: An integration must be specified (uncaught exception) at /home/melvinmayard/[email.primelifeenterprise.co.uk/app/bundles/PluginBundle/Command/FetchLeadsCommand.php](http://email.primelifeenterprise.co.uk/app/bundles/PluginBundle/Command/FetchLeadsCommand.php) line 94 while running console command `mautic:integration:fetchleads` [2021-10-15 13:00:09] mautic.WARNING: Command `mautic:integration:fetchleads` exited with status code 1 [2021-10-15 13:00:46] mautic.NOTICE: Symfony\Component\Console\Exception\NamespaceNotFoundException: There are no commands defined in the “mautic:leadlists” namespace. Did you mean one of these? mautic mautic:assets mautic:broadcasts mautic:cache mautic:campaigns mautic:citrix mautic:contacts mautic:custom-field mautic:donotsell mautic:email mautic:emails mautic:install mautic:integration mautic:integration:pipedrive mautic:integrations mautic:iplookup mautic:maintenance mautic:marketplace mautic:max-mind mautic:messages mautic:plugins mautic:queue mautic:reports mautic:segments mautic:social mautic:theme mautic:transifex mautic:unusedip mautic:update mautic:webhooks (uncaught exception) at /home/melvinmayard/[email.primelifeenterprise.co.uk/vendor/symfony/console/Application.php](http://email.primelifeenterprise.co.uk/vendor/symfony/console/Application.php) line 604 while running console command `UNKNOWN` [2021-10-15 13:00:50] mautic.NOTICE: RuntimeException: An integration must be specified (uncaught exception) at /home/melvinmayard/[email.primelifeenterprise.co.uk/app/bundles/PluginBundle/Command/FetchLeadsCommand.php](http://email.primelifeenterprise.co.uk/app/bundles/PluginBundle/Command/FetchLeadsCommand.php) line 94 while running console command `mautic:integration:fetchleads` [2021-10-15 13:00:50] mautic.WARNING: Command `mautic:integration:fetchleads` exited with status code 1 [2021-10-15 13:10:07] mautic.NOTICE: RuntimeException: An integration must be specified (uncaught exception) at /home/melvinmayard/[email.primelifeenterprise.co.uk/app/bundles/PluginBundle/Command/FetchLeadsCommand.php](http://email.primelifeenterprise.co.uk/app/bundles/PluginBundle/Command/FetchLeadsCommand.php) line 94 while running console command `mautic:integration:fetchleads` [2021-10-15 13:10:07] mautic.WARNING: Command `mautic:integration:fetchleads` exited with status code 1 [2021-10-15 13:10:30] mautic.NOTICE: Symfony\Component\Console\Exception\NamespaceNotFoundException: There are no commands defined in the “mautic:leadlists” namespace. Did you mean one of these? mautic mautic:assets mautic:broadcasts mautic:cache mautic:campaigns mautic:citrix mautic:contacts mautic:custom-field mautic:donotsell mautic:email mautic:emails mautic:install mautic:integration mautic:integration:pipedrive mautic:integrations mautic:iplookup mautic:maintenance mautic:marketplace mautic:max-mind mautic:messages mautic:plugins mautic:queue mautic:reports mautic:segments mautic:social mautic:theme mautic:transifex mautic:unusedip mautic:update mautic:webhooks (uncaught exception) at /home/melvinmayard/[email.primelifeenterprise.co.uk/vendor/symfony/console/Application.php](http://email.primelifeenterprise.co.uk/vendor/symfony/console/Application.php) line 604 while running console command `UNKNOWN` [2021-10-15 13:10:32] mautic.NOTICE: RuntimeException: An integration must be specified (uncaught exception) at /home/melvinmayard/[email.primelifeenterprise.co.uk/app/bundles/PluginBundle/Command/FetchLeadsCommand.php](http://email.primelifeenterprise.co.uk/app/bundles/PluginBundle/Command/FetchLeadsCommand.php) line 94 while running console command `mautic:integration:fetchleads` [2021-10-15 13:10:32] mautic.WARNING: Command `mautic:integration:fetchleads` exited with status code 1

Steps I have tried to fix the problem: I followed the debugging procedure by clearing cache, update the database schema, etc.

---

<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 17, 2021, 6:05am UTC](https://forum.mautic.org/t/email-template-not-saving-and-close-after-edit/21302/2 "2021-10-17T06:05:52Z")

</div>

Hi, this usually happens when you have in the first line in your email code. Is this the case?

---

<div class="post-metadata">

**Author:** ![jflowdking](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/jflowdking/32/5951_2.png) [@jflowdking](https://forum.mautic.org/u/jflowdking)\
**Post date:** [October 17, 2021, 11:33am UTC](https://forum.mautic.org/t/email-template-not-saving-and-close-after-edit/21302/3 "2021-10-17T11:33:56Z")

</div>

I didn’t get your question sir,  
Can you please elaborate more

---

<div class="post-metadata">

**Author:** ![jflowdking](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/jflowdking/32/5951_2.png) [@jflowdking](https://forum.mautic.org/u/jflowdking)\
**Post date:** [October 18, 2021, 9:54am UTC](https://forum.mautic.org/t/email-template-not-saving-and-close-after-edit/21302/4 "2021-10-18T09:54:42Z")

</div>

you can check this short video to see exactly what I was trying to explain

> **[Recording #12](https://screencast-o-matic.com/watch/cr6FQJVXmkD)**

---

<div class="post-metadata">

**Author:** ![jflowdking](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/jflowdking/32/5951_2.png) [@jflowdking](https://forum.mautic.org/u/jflowdking)\
**Post date:** [October 18, 2021, 10:00am UTC](https://forum.mautic.org/t/email-template-not-saving-and-close-after-edit/21302/6 "2021-10-18T10:00:15Z")

</div>

{webview\_text}

**Hi {contactfield=firstname},**

Thanks for signing up to receive FREE ebooks and FREE digital training video courses to develop yourself as an entrepreneur.&nbsp;

Select a gift from the link based on your chosen category. &nbsp; &nbsp;&nbsp;  
 &nbsp;

 DOWNLOAD 

Please check your email regularly for further gifts.&nbsp;  
 We wish you a successful and enjoyable entrepreneurial journey.

Melvin Mayard&nbsp;  
 Founder & CEO&nbsp;  
 EntrepreneurEducation.co.uk  
 &nbsp;

**ENTREPRENEUR EDUCATION**

25a Peel Rd, Bootle, United Kingdom

{unsubscribe\_text}

---

<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 18, 2021, 10:28am UTC](https://forum.mautic.org/t/email-template-not-saving-and-close-after-edit/21302/7 "2021-10-18T10:28:14Z")

</div>

Hi, are you sure you are using 4.0.1 ? Not 4.0.0 ?  
Joey

---

<div class="post-metadata">

**Author:** ![jflowdking](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/jflowdking/32/5951_2.png) [@jflowdking](https://forum.mautic.org/u/jflowdking)\
**Post date:** [October 18, 2021, 10:30am UTC](https://forum.mautic.org/t/email-template-not-saving-and-close-after-edit/21302/8 "2021-10-18T10:30:08Z")

</div>

v4.0.1

Its written on the right side of the footer

---

<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 18, 2021, 10:33am UTC](https://forum.mautic.org/t/email-template-not-saving-and-close-after-edit/21302/9 "2021-10-18T10:33:43Z")

</div>

Okay, based on your video this should be a:

1. permission error (make sure you chown your mautic dir)
2. wordfence or other evil wp plugin stops that ajax save to complete.

When you save the template - do yo u see errors in your javascript console?

---

<div class="post-metadata">

**Author:** ![jflowdking](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/jflowdking/32/5951_2.png) [@jflowdking](https://forum.mautic.org/u/jflowdking)\
**Post date:** [October 18, 2021, 10:35am UTC](https://forum.mautic.org/t/email-template-not-saving-and-close-after-edit/21302/10 "2021-10-18T10:35:51Z")

</div>

there no error on the log, as for javascript console i dont know how to check that

---

<div class="post-metadata">

**Author:** ![jflowdking](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/jflowdking/32/5951_2.png) [@jflowdking](https://forum.mautic.org/u/jflowdking)\
**Post date:** [October 18, 2021, 10:39am UTC](https://forum.mautic.org/t/email-template-not-saving-and-close-after-edit/21302/11 "2021-10-18T10:39:23Z")

</div>

Please can you give me a guide on how to do these:

1. permission error (make sure you chown your mautic dir)
2. wordfence or other evil wp plugin stops that ajax save to complete.

---

<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 19, 2021, 10:21am UTC](https://forum.mautic.org/t/email-template-not-saving-and-close-after-edit/21302/12 "2021-10-19T10:21:03Z")

</div>

I can’t really. You should ask the person who maintains your Mautic.  
It’s just too complicated to explain in few words or video.
