Mjml dynamic / mjml-html

Your software
My Mautic version is: 4.4.1
My PHP version is: 7.4
My Database type and version is: not revelant

Your problem
My problem is:

My problem is, that I don’t have dynamic content in the Email builder if I choose MJML templates, like Brinz or others. But it’s there if I choosen Blanc.
See:

Maybe I don’t have the latest version of grapsjs software? Where can it be updated?

These errors are showing in the log:

Steps I have tried to fix the problem:
I regenerated assets via console

Hello, I have the dynamic slot in MJML.

Version 4.4.1

Same with me 4.4.2 and no dynamic content slot.

Updated successfully via CLI and an error free install. I assumed C was not yet working with MJML but it seems it is.

How do I set about trouble shooting ths?

Very good question. I checked and also have cli updated instances with no possibility of mjml / dyn in grapejs. The js filesize seems the same. (1 byte difference)
Maybe @adiux knows how to troubleshoot this?

I can’t find any guides to get the latest version of grapejs editor. Upgrading Mautic obviously doesn’t upgrade the editor. Why? I feel, that a lot of features are missing from mine.
The dynamic content is one of them.

I use Dynamic content a lot and have resisted moving to Grape.js for that reason. I have made the move with one of my installs (4.4.2) and was disappointed to see the DC was not there. Now that I find it is supposed to be there I am super keen to get it working.

Who can help figure this out?

I am not sure if this is a bug that should be reported on Github?

Are there any specialist with the DC and Grape.js that we should tag in this thread to help us track down the issue?

Sorry to double tag you @adiux but @joeyk seems to think you may be able to shed some light here?

Thanks for pushing it @robm , I also want to figure this out and add it to the knowledge base. Probably its just a command or some small trick. I’m sure Adrian will be able to solve this.

Hi. not sure what could be the problem. It was working in 4.4.1 and is no longer working in 4.4.2. :thinking:

Are there maybe some errors in the browsers javascript error console?

I have loaded the grape.js email builder UI and get no console errors on load. But I do get a warning message

image

There are the tray elements on offer to me.

Hello,
I also don’t have any errors. If @adiux and @joeyk can’t help, who can we turn to?
I am being persistant, because I have already built some automations on this, and now its a big problem for me.
Thx in advance.

@adiux do you have instances with 4.4.2 - 4.4.3 and mjml / dnc working?
I didn’t even see any changes in the code btw.

We currently don’t have this problem. I’m planning on migrating to the latest version soon. Hopefully next week.

I guess this could be related to the preset version? are you building the JS yourself? Or are you using it directly from the Mautic repository? Is your file identical to this one: mautic/builder.js at 4c947e94d334de9cc3e3b1edf2f1992b85ce8600 · mautic/mautic · GitHub

Yeah, it’s the same file. Size: 4662164 byte.
Only error: ’ “beautify” option is deprecated in mjml-core and only available in mjml cli.’

Look at this PR: the same way the dynamic content is missing. Built on latest.

Hello @adiux thank you for addressing this.
Is it possible, that not all features are allowed as default on my builder and I have to re-build the JS myself like building cache in Mautic?

I have just updated to 4.4.3 via cli pulling the in the latest mautic update.

No issues with the update but still no DC element in the MJML builder?

I have the info, that ‘the js has to be rebuilt and will work’.
Donno how to do that at this point. I’m waiting for Friday when during the regular community sprint I can bother people more freely about it.

1 Like

@joeyk did you find out anything more on Friday?

I sure did :slight_smile:
This PR wasn’t merged:

Now that it’s merged, new updates will have the MJML DNC included.
If you are on 4.4.3, you can redownload this javascript file, and place it in the right folder overwriting the old one:
https://raw.githubusercontent.com/mautic/mautic/5.x/plugins/GrapesJsBuilderBundle/Assets/library/js/dist/builder.js
It will work:

1 Like

Sorry to be clear:
We are in a stage now where M5 and M4 are still updated. This is a simple oversight, where a single PR wasn’t merged to both. Because of the nature of GrapesJsBuilder being a “separate entity”, noone noticed.

1 Like