2009-08-03 61 views
0

喜当我打开我的网站(在智者制造)我得到这个错误PLZ决心IM在智者Smarty的PHP CMS错误

Smarty的错误很新:无法读取资源:在/ var“pagetemplate.tpl”/www/vhosts/example.com/htdocs/includes/smarty/Smarty.class.php on line 1083

警告:Smarty错误:无法读取资源:“pagetemplate.tpl”in/var/www/vhosts/example .COM/htdocs中/包括/智者/ Smarty.class.php上线1083

感谢

回答

2

你设置你的T emplate目录到模板文件的位置?

$smarty->template_dir = ... 
+0

非常感谢它现在正在工作 – webkul 2009-08-03 07:01:09

+1

因此给予Zed的答案。31个问题,而不是一个选定的一个nswer也没有upvote。 – 2009-08-03 07:48:21

0

有你可能要检查的几件事情:

  • 你正确配置Smarty的初始设置为这样?

CODE:

$smarty->template_dir = '/path/to/templates_dir'; 
$smarty->compile_dir = '/path/to/compile_dir'; 
$smarty->cache_dir = '/path/to/cache_dir'; 
  • 是否pagetemplate.tpl$smarty->template_dir存在吗?
+0

什么是我可以更改文件的路径 – webkul 2009-08-03 06:49:03

1

Smarty明显没有找到“pagetemplate.tpl”文件。

两个想法:

  • 是否确实的文件存在? (如果你在Linux下,文件名区分大小写:“PageTemplate.tpl”和“pagetemplate.tpl”不会是同一个文件。
  • Smarty的$template_dir是否正确设置?是否指向正确的directoy?关于区分大小写,顺便说一句)
  • 还有第三件事:你有读访问该文件/目录

当你在这,你可能还需要检查$compile_dir变量?