jelew1985 Posted October 5, 2010 Share Posted October 5, 2010 When I try to send an email (selected new welcome hosting account temp) from the client management, I get an error preventing it from continue. Parse error: syntax error, unexpected T_ENDIF in /home/myplacid/public_html/MYPanel/templates_c/72e4ee4e3bd891f564aaa64b6af2b98c^%%AC^ACC^ACC45BED%%emailtpl%3Aemailmessage.php on line 8 What is causing this? I looked at the file and it appears to be normal. <?php /* Smarty version 2.6.26, created on 2010-07-05 18:18:12 compiled from emailtpl:emailmessage */ ?> <p> Dear <?php echo $this->_tpl_vars['client_name']; ?> , </p> <p> We have received your order and will be processing it shortly. The details of the order are below: </p> <p> Order Number: <b><?php echo $this->_tpl_vars['order_number']; ?> </b></p> <p> <?php echo $this->_tpl_vars['order_details']; ?> </p> <p> You will receive an email from us shortly once your account has been setup. Please quote your order reference number if you wish to contact us about this order. </p> <p> <?php echo $this->_tpl_vars['signature']; ?> </p> 0 Quote Link to comment Share on other sites More sharing options...
laszlof Posted October 5, 2010 Share Posted October 5, 2010 Try clearing the cache first: rm -f /home/myplacid/public_html/MYPanel/templates_c/* 0 Quote Link to comment Share on other sites More sharing options...
jelew1985 Posted October 5, 2010 Author Share Posted October 5, 2010 I did this and I got the same error. 0 Quote Link to comment Share on other sites More sharing options...
jelew1985 Posted October 5, 2010 Author Share Posted October 5, 2010 It seems that with the {if} statements that I put in the email template was causing the problem. 0 Quote Link to comment Share on other sites More sharing options...
krokos Posted July 2, 2013 Share Posted July 2, 2013 I have the same problem. The {/if} is causing it. Removing the conditional statement is not a solution, though because I need to use it. Any hints? 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Support Manager WHMCS John Posted July 3, 2013 WHMCS Support Manager Share Posted July 3, 2013 Hi, It is not possible to use raw PHP in a smarty template. Please refer to our documentation for the correct syntax to use: http://docs.whmcs.com/Template_Syntax#Using_PHP_Code_within_Templates 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.