|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
radhoo Smarty n00b
Joined: 10 Nov 2011 Posts: 4
|
Posted: Wed Nov 30, 2011 6:35 pm Post subject: Fatal error: Uncaught exception 'SmartyException' |
|
|
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 |
|
mohrt Administrator
Joined: 16 Apr 2003 Posts: 7368 Location: Lincoln Nebraska, USA
|
Posted: Wed Nov 30, 2011 7:21 pm Post subject: |
|
|
did you clear all the compiled/cache files? dont copy those over. |
|
Back to top |
|
radhoo Smarty n00b
Joined: 10 Nov 2011 Posts: 4
|
Posted: Wed Nov 30, 2011 7:48 pm Post subject: |
|
|
sure. the error is still there.
could be some php or apache settings ? |
|
Back to top |
|
radhoo Smarty n00b
Joined: 10 Nov 2011 Posts: 4
|
Posted: Fri Dec 02, 2011 7:07 am Post subject: |
|
|
Does it help if I say that the server is't not running on uses Windows Sever ? |
|
Back to top |
|
|
|
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
|