美工设计了一个index.tpl,当里面的内容过多的时候(纯html,没有任何其他代码)
就报错.我只要删除一个大点的div就不会出错。
错误如下:
//-------------------------------------------------------------------
Fatal error: Uncaught exception 'Exception' with message 'Unexpected input at line1: <' in C:\php\www\new\libs\sysplugins\smarty_internal_templatelexer.php:242 Stack trace: #0 C:\php\www\new\libs\sysplugins\smarty_internal_templatelexer.php(102): Smarty_Internal_Templatelexer->yylex1() #1 C:\php\www\new\libs\sysplugins\smarty_internal_smartytemplatecompiler.php(44): Smarty_Internal_Templatelexer->yylex() #2 C:\php\www\new\libs\sysplugins\smarty_internal_templatecompilerbase.php(80): Smarty_Internal_SmartyTemplateCompiler->doCompile('<!DOCTYPE html ...') #3 C:\php\www\new\libs\sysplugins\smarty_internal_template.php(288): Smarty_Internal_TemplateCompilerBase->compileTemplate(Object(Smarty_Internal_Template)) #4 C:\php\www\new\libs\sysplugins\smarty_internal_template.php(425): Smarty_Internal_Template->compileTemplateSource() #5 C:\php\www\new\libs\sysplugins\smarty_internal_template.php(521): Smarty_Internal_Template->renderTemplate() #6 C:\php\www\new\libs\Smarty.class.php(318): Smarty_Internal_Template->getRenderedTempla in C:\php\www\new\libs\sysplugins\smarty_internal_templatelexer.php on line 242//-----------------------------------------------------------------
可我觉得页面也不是很大就37K
就报错.我只要删除一个大点的div就不会出错。
错误如下:
//-------------------------------------------------------------------
Fatal error: Uncaught exception 'Exception' with message 'Unexpected input at line1: <' in C:\php\www\new\libs\sysplugins\smarty_internal_templatelexer.php:242 Stack trace: #0 C:\php\www\new\libs\sysplugins\smarty_internal_templatelexer.php(102): Smarty_Internal_Templatelexer->yylex1() #1 C:\php\www\new\libs\sysplugins\smarty_internal_smartytemplatecompiler.php(44): Smarty_Internal_Templatelexer->yylex() #2 C:\php\www\new\libs\sysplugins\smarty_internal_templatecompilerbase.php(80): Smarty_Internal_SmartyTemplateCompiler->doCompile('<!DOCTYPE html ...') #3 C:\php\www\new\libs\sysplugins\smarty_internal_template.php(288): Smarty_Internal_TemplateCompilerBase->compileTemplate(Object(Smarty_Internal_Template)) #4 C:\php\www\new\libs\sysplugins\smarty_internal_template.php(425): Smarty_Internal_Template->compileTemplateSource() #5 C:\php\www\new\libs\sysplugins\smarty_internal_template.php(521): Smarty_Internal_Template->renderTemplate() #6 C:\php\www\new\libs\Smarty.class.php(318): Smarty_Internal_Template->getRenderedTempla in C:\php\www\new\libs\sysplugins\smarty_internal_templatelexer.php on line 242//-----------------------------------------------------------------
可我觉得页面也不是很大就37K
解决方案 »
- ThinkPHP的变量传递问题
- Zend Guard Loader 只有VC9版本吗,哪位兄弟帮忙找找VC6版本的
- PHP 5.3 怎么安装?该安装哪个版本?
- 请问,一个浏览器或一个域名下最多可以放多少个cookie啊?
- 怎样注销cookie?
- winet.cn中国赢网专业提供PHP主机
- 大家在用php+mysql做blog的时候,是怎样生成rss(xml文件)的啊?
- php在结束执行是会不会调用一个函数?
- 请问羽高/宇凡高手,在PHP中定义一个较复杂的类,其成员函数能否在类外部定义?类可否用指针?
- php基础问题,会话变量 数组,请指点
- php 查询中文时打不开网页,求解决办法!
- 求助字符串如何转换为十六进制的数
是php错误而非smarty错误
如果其他模板可以正常运行,则可排除smarty程序问题
那么可能是模板元素标记不配套引起的
网络上也没有相关资料
结贴吧~!