Smarty Exception Error

Forum
Last Post
Threads / Messages

Abronsyth

A Headache Embodied
Member
Joined
Aug 25, 2011
Messages
1,012
Points
36
Location
NY
Mysidian Dollar
73,285
This is peculiar as I was not getting this error earlier and I have not changed anything in the past 24 hours. I am recieving this error whenever I try to access my site:
Code:
Fatal error: Uncaught exception 'SmartyException' with message 'Unable to load template file 'template.tpl'' in /home/inekelmy/public_html/inc/smarty/sysplugins/smarty_internal_templatebase.php:127 Stack trace: #0 /home/inekelmy/public_html/inc/smarty/sysplugins/smarty_internal_templatebase.php(374): Smarty_Internal_TemplateBase->fetch('template.tpl', NULL, NULL, NULL, true) #1 /home/inekelmy/public_html/classes/class_template.php(135): Smarty_Internal_TemplateBase->display('template.tpl') #2 /home/inekelmy/public_html/classes/class_view.php(280): Template->output() #3 /home/inekelmy/public_html/classes/class_frontcontroller.php(102): View->render() #4 /home/inekelmy/public_html/index.php(74): FrontController->render() #5 /home/inekelmy/public_html/index.php(78): IndexController::main() #6 {main} thrown in /home/inekelmy/public_html/inc/smarty/sysplugins/smarty_internal_templatebase.php on line 127

I double checked and the template.tpl file for my theme is present and fully functional, so I do not understand why it is I am getting this error.

Any idea?
 
Check the value for theme in your database table prefix_settings, and see if it matches an existing theme on your site. Note the theme name is case sensitive, so maybe changing the first letter from upper case to lower case will solve this problem.
 
Ok, just checking this. Should the theme name in settings be the name as shown in themes, or should it be the file name?

I am using the main theme, and the name in themes is Main, while the folder is main. In settings I have it set as Main.

Edit: Apparently that was causing the issue. I changed it and all is working now.

Thank you, HoF!
 
Last edited:

Similar threads

Users who are viewing this thread

  • Forum Contains New Posts
  • Forum Contains No New Posts

Forum statistics

Threads
4,267
Messages
33,049
Members
1,602
Latest member
BerrieMilk
BETA

Latest Threads

Latest Posts

Top