Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.

Unable to load template file

 
Post new topic   Reply to topic    Smarty Forum Index -> General
View previous topic :: View next topic  
Author Message
VirgoFachero
Smarty n00b


Joined: 24 Apr 2019
Posts: 1

PostPosted: Wed Apr 24, 2019 8:53 pm    Post subject: Unable to load template file Reply with quote

When using a subfolder wiith $smarty->display, this returns "Unable to load template file"


Example:
template dir is /templates/ and subfolder is /templates/sections

Code:
$smarty->display('sections/suspension.tpl');

will return
Quote:
Fatal error: Uncaught --> Smarty: Unable to load template 'file:sections/suspension.tpl' <-- thrown in /smarty/sysplugins/smarty_internal_template.php on line 195


Any way to fix it? Smarty 3.1.33
Back to top
View user's profile Send private message
AnrDaemon
Administrator


Joined: 03 Dec 2012
Posts: 1530

PostPosted: Sat Apr 27, 2019 5:44 pm    Post subject: Reply with quote

Double check permissions on a directory and spelling of your template paths.
This is usually what causes most of "unable to load" issues.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> General All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP