Stumped resolving an invalid module problem in Email | Community
Skip to main content
dcreagh
Level 2
Nov 15, 2021 11:21 PM UTC
Solved

Stumped resolving an invalid module problem in Email

Hello,

 

I'm baffled as to where the problem is within this email template.  It was working except on OL Office 365 Windows 10 so I tried to replace the button code because they don't render. All other clients look fine. Now I get invalid module #template-wrapper > center.

 

I've checked every center in the. I flattened the formatting and then let VS Code format to see if I am missing a tag. I can't find it. Any suggestions would be greatly appreciated. And if there is a better tool to check syntax, I would greatly appreciate a recommendation.

 

I'm including a link to the html file

 

Thank you,

Dennis

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Jon_Wright
Jon_WrightAccepted solution
Level 4
Nov 16, 2021 11:10 AM UTC

Hi - your problem seems to be the <center> on line 874 and </center> on line 963

remove those and it will approve

6 replies

Jon_Wright
Jon_WrightAccepted solution
Level 4
Nov 16, 2021 11:10 AM UTC

Hi - your problem seems to be the <center> on line 874 and </center> on line 963

remove those and it will approve

Translate
dcreagh
dcreaghAuthor
Level 2
Nov 22, 2021 5:40 PM UTC

Thank you @jon_wright

 

That was the problem. I thought I fixed that but I was looking so long at that email, I couldn't see it.

Thanks again.

Translate
Jon_Wright
Level 4
Nov 24, 2021 4:21 PM UTC

no problem, had many of those moments. In terms of writing simpler code we use MJML as our email framework, which I can highly recommend. Just let me know if you want any pointers in moving the MJML/HTML into Marketo templates.

Translate
Jo_Pitts1
Community Manager
Nov 16, 2021 12:40 AM UTC

@dcreagh ,

you've got a lot of abbreviations in there.  Is OL Outlook?   

Have you tried stripping out modules until you find the problem?  

And then once you've found the problem module put it back, and start stripping out code until you find the issue.

Cheers

Jo

 

Translate
dcreagh
dcreaghAuthor
Level 2
Nov 22, 2021 5:43 PM UTC

@jo_pitts1 

Thank you. I tried stripping out all the modules and pasting them back in. I use VS Code to edit email code and combed through with a bracket matching extension to find the errant tag. Jon found the center tag causing the problem but I missed it because it was closed.

I dream of the day we can write simpler email code.

 

Thanks,

Dennis

Translate