Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Error come with set up the site

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Bugs
View previous topic :: View next topic  
Author Message
ssk8323
Smarty n00b


Joined: 13 May 2014
Posts: 2

PostPosted: Tue May 13, 2014 7:03 am    Post subject: Error come with set up the site Reply with quote

I copied and set up a smarty site locally, but it doesn't work. following error msg is coming . any solution.

[13-May-2014 08:55:34 Europe/Berlin] PHP Fatal error: Uncaught exception 'SmartyException' with message 'Unable to load template file 'content_framework.html'' in C:\xampp\htdocs\paraveterinair\includes\Smarty-3.1.13\libs\sysplugins\smarty_internal_templatebase.php:127
Stack trace:
#0 C:\xampp\htdocs\paraveterinair\includes\Smarty-3.1.13\libs\sysplugins\smarty_internal_templatebase.php(374): Smarty_Internal_TemplateBase->fetch('content_framewo...', NULL, NULL, NULL, true)
#1 C:\xampp\htdocs\paraveterinair\classes\page.class.php(142): Smarty_Internal_TemplateBase->display('content_framewo...')
#2 C:\xampp\htdocs\paraveterinair\controllers\index.controller.php(32): Page->output()
#3 C:\xampp\htdocs\paraveterinair\classes\dispatch.class.php(2Cool: IndexController->__construct()
#4 C:\xampp\htdocs\paraveterinair\index.php(12): Dispatch->__construct()
#5 {main}
thrown in C:\xampp\htdocs\paraveterinair\includes\Smarty-3.1.13\libs\sysplugins\smarty_internal_templatebase.php on line 127
Back to top
View user's profile Send private message Send e-mail
U.Tews
Administrator


Joined: 22 Nov 2006
Posts: 5068
Location: Hamburg / Germany

PostPosted: Wed May 14, 2014 7:51 pm    Post subject: Reply with quote

It does look like that you have not set up the template source folders at the right location or that the folders have not the right permissions.

Test your configuration by calling $smarty->testInstall(); from your script.
Back to top
View user's profile Send private message
ssk8323
Smarty n00b


Joined: 13 May 2014
Posts: 2

PostPosted: Thu May 15, 2014 2:40 am    Post subject: Reply with quote

I copied all the contents from the server and set up in locally,and deleted the cache also.
Back to top
View user's profile Send private message Send e-mail
U.Tews
Administrator


Joined: 22 Nov 2006
Posts: 5068
Location: Hamburg / Germany

PostPosted: Thu May 15, 2014 5:11 pm    Post subject: Reply with quote

Smarty could not read the template source file "content_framework.html".

This can have several reasons.
Make sure that the template_dir property points to the right folder.
See http://www.smarty.net/docs/en/variable.template.dir.tpl and http://www.smarty.net/docs/en/api.set.template.dir.tpl.

Also your WEB server process like apache needs read permission to this folder.

As said before you can call the $smarty->testInstall(); method in your script to check your installation.
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Bugs 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