Jump to content

Smarty Error: Syntax error in template


HOSKIA INDIA

Recommended Posts

3 minutes ago, HOSKIA INDIA said:

errror on SpamExperts Welcome Email https://prnt.sc/odno2j pls help 

the default code in the template is....

{foreach key=mx_host item=mx_priority from=$required_mx_records} {$mx_host} with a recommended priority of {$mx_priority}
{/foreach}

the problem with your code is that WHMCS will change > to > as soon as you save the edited template and that invalidates the Smarty when it tries to run... you *might* be able to get around that by using the Source Code editor (help -> source code), but often i've found that you need to edit the record directly into the database table when using Smarty like this... but if you do that, you cannot edit it in the template again, because WHMCS will continue to change > back to >

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated