PDA

View Full Version : Smarty Exception Error


Abronsyth
10-23-2016, 07:43 AM
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:

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?

Hall of Famer
10-23-2016, 10:45 PM
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.

Abronsyth
10-24-2016, 06:43 AM
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!