运行下载的smarty文件夹的演示程序时出错

时间:2011-03-25 13:05:29

标签: php smarty demo

我从http://www.smarty.net/download版本3.0.7下载了smarty文件夹并放在我的服务器上,同时在浏览器中访问demo文件夹。

我得到了这个错误。

Warning: rename(/tmp/wrtt13wnb,./templates_c/c0360d049dff10f364dfc53ba2cc3958abf6ee6d.file.index.tpl.cache.php) [function.rename]: Permission denied in /home/abhijitnair/sandbox/smarty/libs/sysplugins/smarty_internal_write_file.php on line 48

Warning: chmod() [function.chmod]: No such file or directory in /home/abhijitnair/sandbox/smarty/libs/sysplugins/smarty_internal_write_file.php on line 50

Warning: rename(/tmp/wrtWubd2j,./cache/c0360d049dff10f364dfc53ba2cc3958abf6ee6d.index.tpl.php) [function.rename]: Permission denied in /home/abhijitnair/sandbox/smarty/libs/sysplugins/smarty_internal_write_file.php on line 48

Warning: chmod() [function.chmod]: No such file or directory in /home/abhijitnair/sandbox/smarty/libs/sysplugins/smarty_internal_write_file.php on line 50

Warning: filemtime() [function.filemtime]: stat failed for ./cache/c0360d049dff10f364dfc53ba2cc3958abf6ee6d.index.tpl.php in /home/abhijitnair/sandbox/smarty/libs/sysplugins/smarty_internal_cacheresource_file.php on line 101

Warning: include(./templates_c/c0360d049dff10f364dfc53ba2cc3958abf6ee6d.file.index.tpl.cache.php) [function.include]: failed to open stream: No such file or directory in /home/abhijitnair/sandbox/smarty/libs/sysplugins/smarty_internal_template.php on line 432

Warning: include() [function.include]: Failed opening './templates_c/c0360d049dff10f364dfc53ba2cc3958abf6ee6d.file.index.tpl.cache.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/abhijitnair/sandbox/smarty/libs/sysplugins/smarty_internal_template.php on line 432

Warning: rename(/tmp/wrtQpvH8s,./templates_c/580a944f30953901435aa737c0133754df266982.file.debug.tpl.php) [function.rename]: Permission denied in /home/abhijitnair/sandbox/smarty/libs/sysplugins/smarty_internal_write_file.php on line 48

Warning: chmod() [function.chmod]: No such file or directory in /home/abhijitnair/sandbox/smarty/libs/sysplugins/smarty_internal_write_file.php on line 50

Warning: include(./templates_c/580a944f30953901435aa737c0133754df266982.file.debug.tpl.php) [function.include]: failed to open stream: No such file or directory in /home/abhijitnair/sandbox/smarty/libs/sysplugins/smarty_internal_template.php on line 432

Warning: include() [function.include]: Failed opening './templates_c/580a944f30953901435aa737c0133754df266982.file.debug.tpl.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/abhijitnair/sandbox/smarty/libs/sysplugins/smarty_internal_template.php on line 432

为什么会出现这个错误?我认为这是由于服务器上的权利问题。 所以我在本地主机上运行并得到此错误?

Warning: strftime() [function.strftime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Asia/Calcutta' for '5.5/no DST' instead in C:\xampp\htdocs\smarty\libs\sysplugins\smarty_internal_templatecompilerbase.php on line 59
/*%%SmartyNocache:296464d8c96c53cd200-63959490%%*//*/%%SmartyNocache:296464d8c96c53cd200-63959490%%*/
Warning: strftime() [function.strftime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Asia/Calcutta' for '5.5/no DST' instead in C:\xampp\htdocs\smarty\libs\sysplugins\smarty_internal_templatecompilerbase.php on line 59

Fatal error: Uncaught exception 'SmartyCompilerException' with message 'Syntax Error in template ".\templates\header.tpl" on line 3 "{popup_init src="/javascripts/overlib.js"}" unknown tag "popup_init"' in C:\xampp\htdocs\smarty\libs\sysplugins\smarty_internal_templatecompilerbase.php:431 Stack trace: #0 C:\xampp\htdocs\smarty\libs\sysplugins\smarty_internal_templatecompilerbase.php(253): Smarty_Internal_TemplateCompilerBase->trigger_template_error('unknown tag "po...', 3) #1 C:\xampp\htdocs\smarty\libs\sysplugins\smarty_internal_templateparser.php(2319): Smarty_Internal_TemplateCompilerBase->compileTag('popup_init', Array) #2 C:\xampp\htdocs\smarty\libs\sysplugins\smarty_internal_templateparser.php(2812): Smarty_Internal_Templateparser->yy_r35() #3 C:\xampp\htdocs\smarty\libs\sysplugins\smarty_internal_templateparser.php(2912): Smarty_Internal_Templateparser->yy_reduce(35) #4 C:\xampp\htdocs\smarty\libs\sysplugins\smarty_internal_smartytemplatecompiler.php(51): Smarty_Internal_Templateparser->doParse(11, '?') in C:\xampp\htdocs\smarty\libs\sysplugins\smarty_internal_templatecompilerbase.php on line 431

为什么这个错误来自localhost?

0 个答案:

没有答案