PHP Fatal error:uncaught exception ' smartycompilerexception ' with message ' Syn

Source: Internet
Author: User
Tags closing tag stack trace
PHP Fatal error:uncaught exception ' smartycompilerexception ' with message ' Syntax error in template ' View/template\header . TPL "On line si" {/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


Reply to discussion (solution)

In the 54th line of the template View/template\header.tpl, you unexpectedly encounter the loop end tag {/foreach}
That you only have {/foreach} and not {foreach ...}

Ah, also did not look carefully, do not know when the time to move the keyboard to mess up

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.