Errors in email template code | Community
Skip to main content
August 21, 2014
Solved

Errors in email template code

  • August 21, 2014
  • 11 replies
  • 3492 views
I tried to approve a new email template and got an error message. 

One or more Mkteditable sections have errors. Make sure you have at least one and that they all have valid IDs. 

I then went into the Validate Code section and it showed these errors. Are these grave issues? If not, how do I bypass this so I can approve the template? 

line 11 column 1 - Warning: <style> isn't allowed in <body> elements
line 10 column 1 - Info: <body> previously mentioned
line 370 column 17 - Warning: <table> attribute "cellpadding" has invalid value "10px"
line 453 column 10 - Warning: <table> attribute "cellpadding" has invalid value "10px"
line 525 column 12 - Warning: <table> attribute "cellpadding" has invalid value "10px"
line 692 column 10 - Warning: <table> attribute "cellpadding" has invalid value "10px"
line 777 column 12 - Warning: <table> attribute "cellpadding" has invalid value "10px"
line 887 column 10 - Warning: <table> attribute "cellpadding" has invalid value "10px"
line 970 column 17 - Warning: <table> attribute "cellpadding" has invalid value "10px"
line 1019 column 10 - Warning: <table> attribute "cellpadding" has invalid value "10px"
 
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
Eric is correct, you cannot place the div under the table tag. Also, it cannot be inside of the tr tag.  It has to be inside the td tag of a table otherwise it breaks the table. We moved the div tag in David's code outside of the table, but inside of the td tag for the table it was nested under. This gives the user the ability to remove rows within the table in the email editor.

11 replies

Eric_Salamon1
New Participant
August 21, 2014
First cell padding should be used in the td tag not the table tag.

Example:
<table>
  <tr>
   <td cellpadding="10px">
   </td>
  </tr>
</table>

Second it looks like you put a style tag seperate from the body tag  what you should have done is <body style=";">.

Third you should confirm that all the mkeditable sections have different id's because the code only likes new id's to make life easier for non coders.

Finally it looks like you are missing a closing tag or have one too many closing tags and your code is being throwen off.