Jump to content

Smarty errors in logs


pat_ads

Recommended Posts

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

  • 2 weeks later...

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