如何修复Prestashop致命错误:未捕获 - > Smarty编译器?

时间:2017-02-23 13:04:23

标签: smarty prestashop fatal-error prestashop-1.6

  

致命错误:未捕获 - > Smarty编译器:模板中的语法错误" /home/sites/riversoft.com.mk/public_html/admin397ebpwvj/themes/default/template/header.tpl"在第256行"标题:{"缓存控制":" no-cache"}," - 出乎意料的":",期待以下之一:"}" < - 在第256行的/home/sites/riversoft.com.mk/public_html/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php中抛出

1 个答案:

答案 0 :(得分:0)

在/home/sites/riversoft.com.mk/public_html/admin397ebpwvj/themes/default/template/header.tpl中删除headers: {"cache-control": "no-cache"}或将其封装在{literal}中,如下所示:

{literal}headers: {"cache-control": "no-cache"}{/literal}