smarty3.0.7官网下载的demo运行报错 /*%%SmartyNocache:221334da460b2356f10-15165135%%*//*/% 解决方法(转)
来源:互联网 发布:10月经济数据点评 编辑:程序博客网 时间:2024/06/04 19:43
转自:http://hi.baidu.com/lentimchen/blog/item/ea03df8032bc33cebd3e1eee.html
smarty3.0.7官网下载的demo运行报错的解决方法
2011-04-12 22:39
从官网下载的smarty3.0.7版本运行,直接报如下错误:
/*%%SmartyNocache:221334da460b2356f10-15165135%%*//*/%%SmartyNocache:221334da460b2356f10-15165135%%*/
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 D:/cvsroot/tuan/Smarty3_07/libs/sysplugins/smarty_internal_templatecompilerbase.php:431 Stack trace: #0 D:/cvsroot/tuan/Smarty3_07/libs/sysplugins/smarty_internal_templatecompilerbase.php(253): Smarty_Internal_TemplateCompilerBase->trigger_template_error('unknown tag "po...', 3) #1 D:/cvsroot/tuan/Smarty3_07/libs/sysplugins/smarty_internal_templateparser.php(2319): Smarty_Internal_TemplateCompilerBase->compileTag('popup_init', Array) #2 D:/cvsroot/tuan/Smarty3_07/libs/sysplugins/smarty_internal_templateparser.php(2812): Smarty_Internal_Templateparser->yy_r35() #3 D:/cvsroot/tuan/Smarty3_07/libs/sysplugins/smarty_internal_templateparser.php(2912): Smarty_Internal_Templateparser->yy_reduce(35) #4 D:/cvsroot/tuan/Smarty3_07/libs/sysplugins/smarty_internal_smartytemplatecompiler.php(51): Smarty_Internal_Templatep in D:/cvsroot/tuan/Smarty3_07/libs/sysplugins/smarty_internal_templatecompilerbase.php on line 431
看提示是没有找到popup_int标签。
解决方式一:找到 /templates/header.tpl 文件,删除掉{popup_init src="/javascripts/overlib.js"},运行OK。
方式二:产生上述错误的真正原因是没有找到popup_int这个插件函数,有跟上一个版本比较了下,发现plugins文件夹里面还真不存在function.popup_int.php、function.popup.php找个两个函数,直接COPY,运行一起OK。
- smarty3.0.7官网下载的demo运行报错 /*%%SmartyNocache:221334da460b2356f10-15165135%%*//*/% 解决方法(转)
- smarty3.0.7官网下载的demo运行报错 /*%%SmartyNocache:221334da460b2356f10-15165135%%*//*/% 解决方法(转)
- eclipse 导入Play工程的demo,报错及解决方法!
- 在spark环境中运行demo的时候报错
- 微信扫码支付官方下载的demo本地运行时遇到的坑以及对应解决方法
- ActiveMq运行报错,解决方法
- Android studio导入官网sdk运行demo报错问题解决
- ReactNative集成Reduex,下载Demo报错
- Xcode7.0运行之前的程序报错的解决方法
- 在Win7环境运行siebel tools报错的解决方法
- .NET下载文件报错System.UnauthorizedAccessException的解决方法
- java下载文件成功但报错的解决方法
- 下载的jQuery库或JS文件报错解决方法
- 运行suricata报错:Illegal instruction 解决方法
- kali 运行apktool 报错解决方法
- Xcode各种运行报错及解决方法
- Xcode8运行swift项目报错解决方法
- eclipse中运行报错之解决方法
- c陷阱和缺陷的一点笔记
- Ubuntu Linux 下文件名乱码(无效的编码)的快速解决办法
- 批处理学习笔记1
- How to detect virtualization 虚拟机检测
- delphi字符串函数大全
- smarty3.0.7官网下载的demo运行报错 /*%%SmartyNocache:221334da460b2356f10-15165135%%*//*/% 解决方法(转)
- 引入Adobe Flex 4.5 SDK
- Gentoo Linux以太网Bonding
- PHP设计模式之Singleton模式
- C/C++从入门到高手所有必备PDF书籍
- ubuntu tftp服务配置
- 这些情况使用StringBuilder代替String(抄袭加翻译)
- 核心层(网络的高速交换主干)、汇聚层(提供基于策略的连接)、接入层 (将工作站接入网络)。
- SQL 中 sp_xml_preparedocument,openxml的使用