Mautic Community Forums

Email Menu will not open after 3.3.4 -> 4.0.2 upgrade

Your software. Ubuntu 20.4
My PHP version is : 7.4
My MySQL/MariaDB version is (delete as applicable): MariaDB version 10.5

Updating/Installing Errors
I am :Updating
Upgrading via : Command Line

These errors are showing in the installer : None

These errors are showing in the Mautic log : Post installation

mautic.CRITICAL: Uncaught PHP Exception Mautic\CoreBundle\Exception\BadConfigurationException: “Theme Newsletter not configured properly: builder property in the config.json” at /var/www/html/app/bundles/CoreBundle/Helper/ThemeHelper.php line 673 {“exception”:"[object] (Mautic\CoreBundle\Exception\BadConfigurationException(code: 0): Theme Newsletter not configured properly: builder property in the config.json at /var/www/html/app/bundles/CoreBundle/Helper/ThemeHelper.php:673)"}
[2021-11-22 18:28:08] mautic.ERROR: CAMPAIGN: blank-grapejs is missing a required config file

Your problem
My problem is : Email section is not available after upgrade 3.3.4 > 4.0.2 and the direct link is throwing a 500. Logs show the above error

Steps I have tried to fix the problem : Disable the GrapeJs plugin, reenable and clean cache

A long shot, but make sure the folders in cache have the right ownership now after cleaning it. For example might be root if you cleaned it as root, while it should be www-data. If you did update the ownership of the folder, make sure you did a recursive change on it.

Though if you have the wrong ownership you would not even be able to log in…

Yeah I did reapply permissions.

Hi, this is the culprit:

You need to go to your emails table in the DB and change the values in the column called template from “blank-grapejs” to blank.

How do I do that systematically?

With a mass update in mysql

Okay, will have to look into that at some point. I had to roll back to 3.3.4 Is this going to be fixed at all ?

Honestly: I don’t think so. The issue is, that you are using an abandoned template. If you update the template name, then it will be all good.
OR
Alternative is to modify the old template to be M4 compatible.
OR
You could download the blank. template, change the name in the config to the old template, and fool your system.