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

Fatal error: Uncaught exception 'SmartyException'

 
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 -> Installation and Setup
View previous topic :: View next topic  
Author Message
radhoo
Smarty n00b


Joined: 10 Nov 2011
Posts: 4

PostPosted: Wed Nov 30, 2011 6:35 pm    Post subject: Fatal error: Uncaught exception 'SmartyException' Reply with quote

Hello,

I have a website built with smarty. The problem is that on my xampp localhost the site works fine, but after adding the files to my server, I get this error :

Code:

Warning: Smarty_Internal_TemplateBase::include(temp\aa64f55b992701381bba17e782589df0a2decaf3.file.index.tpl.php) [function.Smarty-Internal-TemplateBase-include]: failed to open stream: No such file or directory in D:\wwwroot\htdocs\ql_new_www\lib\smarty\sysplugins\smarty_internal_templatebase.php on line 157

Warning: Smarty_Internal_TemplateBase::include() [function.include]: Failed opening 'temp\aa64f55b992701381bba17e782589df0a2decaf3.file.index.tpl.php' for inclusion (include_path='.:\php\includes') in D:\wwwroot\htdocs\ql_new_www\lib\smarty\sysplugins\smarty_internal_templatebase.php on line 157

Fatal error: Uncaught exception 'SmartyException' with message 'Invalid compiled template for 'index.tpl'' in D:\wwwroot\htdocs\ql_new_www\lib\smarty\sysplugins\smarty_internal_templatebase.php:170 Stack trace: #0 D:\wwwroot\htdocs\ql_new_www\lib\smarty\sysplugins\smarty_internal_templatebase.php(352): Smarty_Internal_TemplateBase->fetch('index.tpl', NULL, NULL, NULL, true) #1 D:\wwwroot\htdocs\ql_new_www\index.php(24): Smarty_Internal_TemplateBase->display('index.tpl') #2 {main} thrown in D:\wwwroot\htdocs\ql_new_www\lib\smarty\sysplugins\smarty_internal_templatebase.php on line 170


I added the test api and the result is good :
Code:

Smarty Installation test...
Testing template directory...
D:\wwwroot\htdocs\ql_new_www\template\layout is OK.
Testing compile directory...
D:\wwwroot\htdocs\ql_new_www\temp is OK.
Testing plugins directory...
D:\wwwroot\htdocs\ql_new_www\lib\smarty\plugins is OK.
Testing cache directory...
D:\wwwroot\htdocs\ql_new_www\cache is OK.
Testing configs directory...
D:\wwwroot\htdocs\ql_new_www\config is OK.
Testing sysplugin files...
... OK
Testing plugin files...
... OK
Tests complete.


Everything is configured fine, the folders have permissions, all the files are where it needs, but the error still appear. Can you help ?


Thanks.
Back to top
View user's profile Send private message
mohrt
Administrator


Joined: 16 Apr 2003
Posts: 7368
Location: Lincoln Nebraska, USA

PostPosted: Wed Nov 30, 2011 7:21 pm    Post subject: Reply with quote

did you clear all the compiled/cache files? dont copy those over.
Back to top
View user's profile Send private message Visit poster's website
radhoo
Smarty n00b


Joined: 10 Nov 2011
Posts: 4

PostPosted: Wed Nov 30, 2011 7:48 pm    Post subject: Reply with quote

sure. the error is still there.
could be some php or apache settings ?
Back to top
View user's profile Send private message
radhoo
Smarty n00b


Joined: 10 Nov 2011
Posts: 4

PostPosted: Fri Dec 02, 2011 7:07 am    Post subject: Reply with quote

Does it help if I say that the server is't not running on uses Windows Sever ?
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 -> Installation and Setup 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