Jake09 Posted July 6, 2009 Share Posted July 6, 2009 Hello all. I just installed WHMCS and I'm getting this error on the admin page. Warning: Template error: unable to read resource: "v4/header.tpl" in /home/user/public_html/whmcs/includes/smarty/Smarty.class.php on line 1095 Warning: Template error: unable to read resource: "v4/homepage.tpl" in /home/user/public_html/whmcs/includes/smarty/Smarty.class.php on line 1095 Warning: Template error: unable to read resource: "v4/footer.tpl" in /home/user/public_html/whmcs/includes/smarty/Smarty.class.php on line 1095 CAn anyone help me with this? Thanks in advance. 0 Quote Link to comment Share on other sites More sharing options...
Chance Posted July 7, 2009 Share Posted July 7, 2009 These template files are used for the admin interface and if you have changed the default folder name of admin to something else, then you need to tell WHMCS what that folder is by adding this entry to your configuration file: $customadminpath = "your_new_admin_folder_name_goes_here"; I have changed my admin folder to a uniquely named one, and adding the entry to the configuration.php file is required or you will get unexpected results. Yours seems to be basically a file location problem. If you have made the entry in the configuration file, make sure that the template files do exist in the templates subfolder below your newly named admin folder. Hope this helps..... 0 Quote Link to comment Share on other sites More sharing options...
Awes Posted September 5, 2009 Share Posted September 5, 2009 I had the same problem but the previous posts didn't help when I searched. They helped direct my troubleshooting though and it turned out to be a simple resolustion. I located the three files ouside my public folder in a folder "whmcs" and added the following to my config file: $templates_compiledir = "/home/whmcs/templates_c/"; $attachments_dir = "/home/whmcs/attachments/"; $downloads_dir = "/home/whmcs/downloads/"; Turned out to be a simple oversite on my account. Worked great when I changed the config to: $templates_compiledir = "/home/username/whmcs/templates_c/"; $attachments_dir = "/home/username/whmcs/attachments/"; $downloads_dir = "/home/username/whmcs/downloads/"; Hope this helps someone else with the same issue. Awes 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.