美工设计了一个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
解决方案 »
- 我只要一登录帐号和密码就明文生成到一个TXT文本文件上面是怎么做到的?
- 求指导学习php思路
- 如何让网页中的繁体字,转换成简体
- gzinflate()函数是如何操作的?是不是要用zlib函数库才能用这个函数呢?
- 大家好我新来CSDN .PHP学习生涯就在这里开始了.
- 最近我在用PHP开发一个电子商务网站,遇到不少问题,请问哪里有电子商务整站代码啊,参考一下
- 如何查询出数据表里某个字段的值是相同的数据记录呢?
- 有个session的问题
- 怎么用PHP在MySQL的表中分页?
- phpStorm 打开后编辑框右下角总是一直提示 waiting for reply from http://plugins.jetbrains...
- php 查询中文时打不开网页,求解决办法!
- 求助字符串如何转换为十六进制的数
是php错误而非smarty错误
如果其他模板可以正常运行,则可排除smarty程序问题
那么可能是模板元素标记不配套引起的
网络上也没有相关资料
结贴吧~!