致命错误:未被捕获的Twig_Error_Syntax:值“ marketshop_address”的意外令牌“名称”

时间:2018-12-12 06:20:37

标签: error-handling opencart

im在opencart 3x中遇到以下错误

  

致命错误:未被捕获的Twig_Error_Syntax:在/ home / almuhtre /中的第67行的“ marketshop / template / common / footer.twig”中,值为“ marketshop_address”(预期为“语句块末尾”)的意外令牌“名称”。 public_html / system / library / template / Twig / TokenStream.php:87堆栈跟踪:#0 /home/almuhtre/public_html/system/library/template/Twig/TokenParser/If.php(33):Twig_TokenStream-> expect(3 )#1 /home/almuhtre/public_html/system/library/template/Twig/Parser.php(187):Twig_TokenParser_If-> parse(Object(Twig_Token))#2 / home / almuhtre / public_html / system / library / template / Twig / Parser.php(100):Twig_Parser-> subparse(NULL,假)#3 /home/almuhtre/public_html/system/library/template/Twig/Environment.php(619):Twig_Parser-> parse(Object(Twig_TokenStream ))#4 /home/almuhtre/public_html/system/library/template/Twig/Environment.php(671):Twig_Environment-> parse(Object(Twig_TokenStream))#5 / home / almuhtre / public_html / system / library / template /Twig/Environment.php(396):Twig_Environment-> compileSource('\ n { %在第87行的/home/almuhtre/public_html/system/library/template/Twig/TokenStream.php中设置l ...','marketshop / temp ...')

无法真正弄清楚发生了什么

第67行代码中的

footer.twig”是

 < footer id="footer">
  <div class="fpart-first">
    <div class="container">
      <div class="row">
      {% if marketshop_about_contact_details == 1 or marketshop_address[lang] or marketshop_contact[lang] or marketshop_mobile[lang] or marketshop_email[lang] %}
        <div class="contact col-lg-4 col-md-4 col-sm-12 col-xs-12">
          {% if marketshop_contact_status == 1 and marketshop_contact[lang] %}
          <h5>{{ marketshop_contact[lang] }}</h5>
          {% endif %}

试图替换文件..但没有起作用。但是删除它可以使网站正常工作

0 个答案:

没有答案