pat_ads Posted March 7, 2014 Share Posted March 7, 2014 Hi all, I have a few Smarty errors I was hoping to get some help with... As background, I just upgraded to 5.3.5, however these errors existed on prior version. I'm using a custom template (integration by WHMCS), based on a WP theme. My WHMCS install is located at www.mydomain.com/whmcs/ Log Error #1: Smarty Error: the $compile_dir 'templates_c/' does not exist, or is not a directory. My configuration.php file has the following entry: $templates_compiledir = 'templates_c/'; Log Error #2: Smarty Error: [in mycustomtemplate/header.tpl line 70]: syntax error: unrecognized tag '' (Smarty_Compiler.class.php, line 592) and Smarty Error: [in mycustomtemplate/header.tpl line 70]: syntax error: unrecognized tag: background-color:# !important; (Smarty_Compiler.class.php, line 448) My header.tpl file, line 70: <!-- Styles generated by custom page styling options. --> <style type="text/css">body, html {background-color:# !important;}</style> Any help would be greatly appreciated. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted March 7, 2014 Share Posted March 7, 2014 templates_c - it might be that you need a slash at the start or you aren't referencing the correct directory.. http://docs.whmcs.com/Further_Security_Steps#Move_the_attachments.2C_downloads_.26_templates_c_folders $templates_compiledir = "/home/username/templates_c/"; email unrecognised issues - perhaps the link below will help... https://docs.whmcs.com/showthread.php?83942-RE-Email-Templates-I-have-an-error-and-a-request&p=359047#post359047 0 Quote Link to comment Share on other sites More sharing options...
WebsiteIntegrations Posted March 18, 2014 Share Posted March 18, 2014 <!-- Styles generated by custom page styling options. --> <style type="text/css">body, html {background-color:# !important;}</style> before this put {literal} and after put {/literal} 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.