Jump to content

Folder move leads to smarty error.


mc48911

Recommended Posts

I followed the instructions per what to do after you install the software and moved the templates_c, download, and attachment directories to above the pubic_html folder. I altered the configuration.php file to reflect those changes and added the line for error reporting. Afterward, loading the /whmcs/index.php returns:

 

Fatal error: Smarty error: the $compile_dir '/billing/templates_c/' does not exist, or is not a directory. in /home/mc48911/public_html/whmcs/libs/Smarty.class.php on line 1095

The referring line in configuration.php reads:

 

$templates_compiledir = "/billing/templates_c/";

 

Dreamweaver was used to edit this file. The billing folder lives in the root of my hosted site, not my web root.

 

So, should I be editing the Smarty.class.php file? Or is this a matter of placing the alledged missing files elsewhere.

 

TIA, Michael

Link to comment
Share on other sites

I should have added the server uses suexec, or whatever that is called such that process that eliminates the need for 777 permissions. So permissions should not be an issue, all permissions on the path to templates_c are 755.

Link to comment
Share on other sites

Ah, this could be a problem, lines 70-82 of the smarty.class.php file. Assuming that these strings are folder names, there is no path prepended, so...

 

/**

* The name of the directory where templates are located.

*

* @var string

*/

var $template_dir = 'templates';

 

/**

* The directory where compiled templates are located.

*

* @var string

*/

var $compile_dir = 'templates_c';

I really hate being dead in the water... Ah, maybe this is a ticket, it really makes no sense that I would be alone on this sort of topic.
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