Jump to content
HOSKIA INDIA

Smarty Error: Syntax error in template

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 >

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×

Important Information

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