smarty模板文件是不是限制大小

北京不不 2010-01-31 05:55:06
美工设计了一个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
...全文
174 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
北京不不 2010-02-01
  • 打赏
  • 举报
回复
还是没有解决!
北京不不 2010-02-01
  • 打赏
  • 举报
回复
模板元素标记不配套引起?
OK我先查查。
liuahuilele 2010-02-01
  • 打赏
  • 举报
回复
不会限制大小吧
xuzuning 2010-02-01
  • 打赏
  • 举报
回复
看上去这个错误是在编译模板时产生的
是php错误而非smarty错误
如果其他模板可以正常运行,则可排除smarty程序问题
那么可能是模板元素标记不配套引起的
北京不不 2010-02-01
  • 打赏
  • 举报
回复
那怎么会有上面的错误。
北京不不 2010-02-01
  • 打赏
  • 举报
回复
也不知道哪有错,去掉大量div,一个个板块的除,结果OK了。
网络上也没有相关资料
结贴吧~!
iwantnet 2010-01-31
  • 打赏
  • 举报
回复
页面没有大小的限制的.

21,886

社区成员

发帖
与我相关
我的任务
社区描述
从PHP安装配置,PHP入门,PHP基础到PHP应用
社区管理员
  • 基础编程社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧