Your software
My Mautic version is: 4.3.1
My PHP version is: 7.4.29
My Database type and version is: pdo_mysql / 5.7.38
Your problem
I’m trying to compose an email using code mode, but when i save it keeps reverting back to the “Blank” template. This was working fine in 4.2.2. I have tried using grapesjs and the legacy builder (cache was cleared each time, browse cache was flushed each time - also tried each time incognito).
Video here - saving
These errors are showing in the log: None
Steps I have tried to fix the problem: turned off grapesjs and cleared the server / browser cache
Thanks!
I had sort of a similar issue but not exactly the same as you.
What I did was to select email theme then open builder and close builder then save it.
Try that see if that help you save the theme you selected.
I’m curious so let me know the result.
Hi Bill,
I’ll give that a try right now…
In 4.3.1, using grapesjs - there is no builder for code mode. You need to go to the advanced tab and edit the code there. So, it didn’t work.
I went look on mine and you are right. Builder is greyed out and it did the exact same thing on mine when I saved it which jumped to another theme when saving.
It’s seems to be a bug to me.
1 Like
Glad im not the only one - i can’t even get the code block to work in the grapsejs
Yes, I’m having this same issue. Is there a work around? I can’t edit or save any emails from the templates
joeyk
June 6, 2022, 6:49am
8
This might be connected to this?
mautic:4.x
← acquia:no-template-email
opened 08:15AM - 15 Jun 21 UTC
| Q | A
| --------------------------------… ------ | ---
| Branch? | "features" for all features, enhancements and bug fixes (until 3.3.0 is released)
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| BC breaks? | no
| Automated tests included? | no
| Related user documentation PR URL |
| Related developer documentation PR URL |
| Issue(s) addressed |
<!--
Additionally (see https://contribute.mautic.org/contributing-to-mautic/developer/code/pull-requests#step-5-work-on-your-pull-request):
- Always add tests and ensure they pass.
- Bug fixes must be submitted against the lowest maintained branch where they apply
(lowest branches are regularly merged to upper ones so they get the fixes too.)
- Features and deprecations must be submitted against the "features" branch.
-->
<!--
Please write a short README for your feature/bugfix. This will help people understand your PR and what it aims to do.
-->
#### Description:
If the template is removed for email or landing page, the blank theme should be selected.
<!--
If you are fixing a bug and if there is no linked issue already, please provide steps to reproduce the issue here.
-->
#### Steps to test this PR:
1. Remove template from the code
2. Check if blank template is selected
<!--
If you have any deprecations, list them here along with the new alternative.
If you have any backwards compatibility breaks, list them here.
-->
<a href="https://gitpod.io/#https://github.com/mautic/mautic/pull/10154"><img src="https://gitpod.io/button/open-in-gitpod.svg"/></a>
This fixed it for me! Thank you once again!
I was able to fix my problem by turning off ModSecurity (in cpanel) on the domain that I have mautic running on. For some reason, I the plugin blocks saves and changes to the template. I use Namecheap hosting,