PHP Fatal error: Uncaught exception 'SmartyCompilerException' with message 'Syn
程序员文章站
2022-06-07 09:10:02
...
PHP Fatal error: Uncaught exception 'SmartyCompilerException' with message 'Syntax Error in template "view/template\header.tpl" on line 54 "{/foreach}" unexpected closing tag' in D:\WWW_root\quba133\web\core\Smarty-3.0.9\libs\sysplugins\smarty_internal_templatecompilerbase.php:439
Stack trace:
#0 D:\WWW_root\quba133\web\core\Smarty-3.0.9\libs\sysplugins\smarty_internal_compilebase.php(145): Smarty_Internal_TemplateCompilerBase->trigger_template_error('unexpected clos...', 54)
#1 D:\WWW_root\quba133\web\core\Smarty-3.0.9\libs\sysplugins\smarty_internal_compile_foreach.php(206): Smarty_Internal_CompileBase->_close_tag(Array)
#2 D:\WWW_root\quba133\web\core\Smarty-3.0.9\libs\sysplugins\smarty_internal_templatecompilerbase.php(284): Smarty_Internal_Compile_Foreachclose->compile(Array, Object(Smarty_Internal_SmartyTemplateCompiler), Array, NULL, NULL)
#3 D:\WWW_root\quba133\web\core\Smarty-3.0.9\libs\sysplugins\smarty_internal_templatecompilerbase.php(123): Smarty_Internal_TemplateCompilerBase->callTagCompiler('foreachclose', Arr in D:\WWW_root\quba133\web\core\Smarty-3.0.9\libs\sysplugins\smarty_internal_templatecompilerbase.php on line 439
Stack trace:
#0 D:\WWW_root\quba133\web\core\Smarty-3.0.9\libs\sysplugins\smarty_internal_compilebase.php(145): Smarty_Internal_TemplateCompilerBase->trigger_template_error('unexpected clos...', 54)
#1 D:\WWW_root\quba133\web\core\Smarty-3.0.9\libs\sysplugins\smarty_internal_compile_foreach.php(206): Smarty_Internal_CompileBase->_close_tag(Array)
#2 D:\WWW_root\quba133\web\core\Smarty-3.0.9\libs\sysplugins\smarty_internal_templatecompilerbase.php(284): Smarty_Internal_Compile_Foreachclose->compile(Array, Object(Smarty_Internal_SmartyTemplateCompiler), Array, NULL, NULL)
#3 D:\WWW_root\quba133\web\core\Smarty-3.0.9\libs\sysplugins\smarty_internal_templatecompilerbase.php(123): Smarty_Internal_TemplateCompilerBase->callTagCompiler('foreachclose', Arr in D:\WWW_root\quba133\web\core\Smarty-3.0.9\libs\sysplugins\smarty_internal_templatecompilerbase.php on line 439
回复讨论(解决方案)
在模板 view/template\header.tpl 的第 54 行处,意外的遇到了循环结束标记 {/foreach}
即你只有 {/foreach} 而没有 {foreach ....}
哎,也没仔细看,做好后不知道什么时候动着键盘给弄乱了
下一篇: socket小问题
推荐阅读
-
PHP Fatal error: Uncaught exception 'SmartyCompilerException' with message 'Syn
-
php soap异常 Fatal error: Uncaught SoapFault exception: [HTTP] Internal Server Err
-
Fatal error: Uncaught exception 'ImagickException' with message 'Compositing ima
-
PHP Fatal error: Uncaught exception 'SmartyCompilerException' with message 'Syn
-
PHP Fatal error: Uncaught exception 'SmartyCompilerException' with message 'Syn,该怎么处理
-
php soap异常 Fatal error: Uncaught SoapFault exception: [HTTP] Internal Server Err
-
Fatal error: Uncaught exception 'com_exception' with message 'Failed to create COM object `InternetExplorer.Application': 拒绝访问
-
Fatal error: Uncaught exception 'PHPExcel_Reader_Exception' with message 'Could
-
Fatal error: Uncaught exception 'PHPExcel_Reader_Exception' with message 'Could
-
Fatal error: Uncaught exception Exception with message