Stumped resolving an invalid module problem in Email | Community
Skip to main content
dcreagh
New Participant
November 15, 2021
Solved

Stumped resolving an invalid module problem in Email

  • November 15, 2021
  • 2 replies
  • 3674 views

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.
Best answer by Jon_Wright

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

remove those and it will approve

2 replies

Jon_Wright
Jon_WrightAccepted solution
New Participant
November 16, 2021

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

remove those and it will approve

dcreagh
dcreaghAuthor
New Participant
November 22, 2021

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.

Jon_Wright
New Participant
November 24, 2021

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.

Jo_Pitts1
Community Manager
November 16, 2021

@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

 

dcreagh
dcreaghAuthor
New Participant
November 22, 2021

@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