Автор:
Алексей91
Здравствуйте! Вышла ошибка, связано с main.tpl как устранить?
Fatal error: Uncaught exception 'SmartyCompilerException' with message 'Syntax Error in template "/home/epbrwwja/public_html/template/frontend/agency/main.tpl" on line 20 "</html>" unclosed {else} tag' in /home/epbrwwja/public_html/third/smarty/sysplugins/smarty_internal_templatecompilerbase.php:441 Stack trace: #0 /home/epbrwwja/public_html/third/smarty/sysplugins/smarty_internal_smartytemplatecompiler.php(64): Smarty_Internal_TemplateCompilerBase->trigger_template_error('unclosed {else}...') #1 /home/epbrwwja/public_html/third/smarty/sysplugins/smarty_internal_templatecompilerbase.php(82): Smarty_Internal_SmartyTemplateCompiler->doCompile('{if $is_underco...') #2 /home/epbrwwja/public_html/third/smarty/sysplugins/smarty_internal_template.php(260): Smarty_Internal_TemplateCompilerBase->compileTemplate(Object(Smarty_Internal_Template)) #3 /home/epbrwwja/public_html/third/smarty/sysplugins/smarty_internal_template.php(424): Smarty_Internal_Template->compileTemplateSource() #4 /home/epbrwwja/public_html/third/smarty/ in/home/epbrwwja/public_html/third/smarty/sysplugins/smarty_internal_templatecompilerbase.php on line 441
Где взять исходный код main.tpl ?? шаблон agency или как исправить этот?
{if $is_underconstruction_mode==1}
{include file='main_closed.tpl'}
{else}
{include file="header.tpl"}
<body>
{if $smarty.session.user_id eq ''}
{include file="login_register.tpl.html"}
{/if}
{if $apps_page_view}
{include file="layout_minimum.tpl"}
{else}
{include file=$_layout}
{/if}
{*$profiler*}
<!-- BEGIN JIVOSITE CODE {literal} -->
<script type='text/javascript'>
(function(){ var widget_id = '9h37cMpGUP';
var s = document.createElement('script'); s.type = 'text/javascript'; s.async = true; s.src = '//code.jivosite.com/script/widget/'+widget_id; var ss = document.getElementsByTagName('script')[0]; ss.parentNode.insertBefore(s, ss);})();</script>
<!-- {/literal} END JIVOSITE CODE --></body>
</html>