来自模块的未知Smarty标签

时间:2019-05-27 10:15:31

标签: php prestashop prestashop-1.6

我必须修复另一个团队制作的Prestashop网站。他们做了自己的导航菜单管理器模块。

当模板尝试呈现菜单时,这就是我得到的:

 Fatal error: Uncaught --> Smarty Compiler: Syntax error in template "C:\laragon\www\encloque_fresh\themes\en-cloque\header.tpl" on line 105 "{menu key='bloctopmenu' module="blocktopmenu" tpl_container="topmenu" tpl_item="item" max_level=3}" unknown tag "menu" <-- thrown in C:\laragon\www\encloque_fresh\tools\smarty\sysplugins\smarty_internal_templatecompilerbase.php on line 105

这是一行

<div class="row">
  {menu key='bloctopmenu' module="blocktopmenu" tpl_container="topmenu" tpl_item="item" max_level=3}
</div>

有帮助吗?

Prestashop 1.6.0.9 PHP 5.4

1 个答案:

答案 0 :(得分:1)

有些想法是错误的。

'{menu key ='bloctopmenu'module =“ blocktopmenu” tpl_container =“ topmenu” tpl_item =“ item” max_level = 3}'

菜单是1.7中的tpl函数形式: https://github.com/PrestaShop/ps_mainmenu/blob/master/ps_mainmenu.tpl

可能您需要删除此模块,并安装原始的blocktop菜单 https://github.com/PrestaShop/blocktopmenu