Jump to content

Blank Admin Page


Jake09

Recommended Posts

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.

Link to comment
Share on other sites

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.....

Link to comment
Share on other sites

  • 1 month later...

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

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