I installed a theme using the export / import theme module, as shown in this video : and now I'm getting this message in the header:
Fatal error: Uncaught exception 'SmartyCompilerException' with message 'Syntax Error in template' /var/www/html/myproject/themes/food-store/header.tpl "on line 87" & lt ; nav> {hook h="displayNav"} " unknown tag "hook" 'in /var/www/html/myproject/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php on line 431
Does anyone have any idea what this error might be?
This is the line that is giving error (87):
<div class="header-container">
<header id="header">
<div class="banner">
<div class="container">
<div class="row">
{hook h="displayBanner"}
</div>
</div>
</div>
<div class="nav">
<div class="container">
<div class="row">
<nav>{hook h="displayNav"}</nav>
</div>
</div>
</div>
<div>
<div class="container">
<div class="row">
<div id="header_logo">
<a href="{$base_dir}" title="{$shop_name|escape:'html':'UTF-8'}">
<img class="logo img-responsive" src="{$logo_url}" alt="{$shop_name|escape:'html':'UTF-8'}"{if $logo_image_width} width="{$logo_image_width}"{/if}{if $logo_image_height} height="{$logo_image_height}"{/if}/>
</a>
</div>
{if isset($HOOK_TOP)}{$HOOK_TOP}{/if}
</div>
</div>
</div>
</header>
In this part ...
{hook h="displayBanner"}
It seems like the version you're compiling is smarty's 3:
@link http://www.smarty.net/
* @copyright 2008 New Digital Group, Inc.
* @author Monte Ohrt <monte at ohrt dot com>
* @author Uwe Tews
* @package Smarty
* @version 3.0.7