SmartyCompilerException {#354
#message: "Syntax error in template "file:/sites/fid.ua/design/rovo/html/sidebars/blog.tpl" on line 66 "{get_comments_blog var=last_comments_blog limit=5 type='blog'}" unknown tag 'get_comments_blog'"
#code: 0
#file: "/sites/fid.ua/design/rovo/html/sidebars/blog.tpl"
#line: 66
+source: "{get_comments_blog var=last_comments_blog limit=5 type='blog'}"
+desc: "unknown tag 'get_comments_blog'"
+template: "/sites/fid.ua/design/rovo/html/sidebars/blog.tpl"
trace: {
/sites/fid.ua/design/rovo/html/sidebars/blog.tpl:66 {
Smarty_Internal_TemplateCompilerBase->trigger_template_error($args = null, $line = null, $tagline = null) …
› {* LATEST COMMENTS *}
› {get_comments_blog var=last_comments_blog limit=5 type='blog'}
› {if $last_comments_blog}
}
/sites/fid.ua/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php:1756 {
Smarty_Internal_TemplateCompilerBase->compileTag2($tag, $args, $parameter) …
› }
› $this->trigger_template_error("unknown tag '{$tag}'", null, true);
› }
arguments: {
$args: "unknown tag 'get_comments_blog'"
$line: 66
$tagline: true
}
}
/sites/fid.ua/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php:550 {
Smarty_Internal_TemplateCompilerBase->compileTag($tag, $args, $parameter = []) …
› $this->prefix_code = array();
› $result = $this->compileTag2($tag, $args, $parameter);
› $this->prefix_code = array_merge($this->prefix_code, array_pop($this->prefixCodeStack));
arguments: {
$tag: "get_comments_blog"
$args: array:3 [ …3]
$parameter: []
}
}
/sites/fid.ua/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templateparser.php:2156 {
Smarty_Internal_Templateparser->yy_r24() …
› } else {
› $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -1]->minor,$this->yystack[$this->yyidx + 0]->minor);
› }
arguments: {
$tag: "get_comments_blog"
$args: array:3 [ …3]
}
}
/sites/fid.ua/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templateparser.php:2780 {
Smarty_Internal_Templateparser->yy_reduce($yyruleno) …
› $this->_retvalue = null;
› $this->{'yy_r' . self::$yyReduceMap[$yyruleno]}();
› $yy_lefthand_side = $this->_retvalue;
}
/sites/fid.ua/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templateparser.php:2875 {
Smarty_Internal_Templateparser->doParse($yymajor, $yytokenvalue) …
› } elseif ($yyact < self::YYNSTATE + self::YYNRULE) {
› $this->yy_reduce($yyact - self::YYNSTATE);
› } elseif ($yyact === self::YY_ERROR_ACTION) {
arguments: {
$yyruleno: 24
}
}
/sites/fid.ua/vendor/smarty/smarty/libs/sysplugins/smarty_internal_smartytemplatecompiler.php:128 {
Smarty_Internal_SmartyTemplateCompiler->doCompile($_content, $isTemplateSource = false) …
› }
› $this->parser->doParse($this->parser->lex->token, $this->parser->lex->value);
› }
arguments: {
$yymajor: 13
$yytokenvalue: "}"
}
}
/sites/fid.ua/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php:466 {
Smarty_Internal_TemplateCompilerBase->compileTemplateSource(Smarty_Internal_Template $template, $nocache = null, ?Smarty_Internal_TemplateCompilerBase $parent_compiler = null) …
› }
› $_compiled_code = $this->postFilter($this->doCompile($this->preFilter($_content), true));
› if (!empty($this->required_plugins[ 'compiled' ]) || !empty($this->required_plugins[ 'nocache' ])) {
arguments: {
$_content: """
{* Сайдбар на странице блога *}\n
\n
{* SEARCH *}\n
<div class="card widget widget-search">\n
<form action="blog" class="widget-search__form">\n
<input class="widget-search__input" type="text" name="keyword_blog" value="{$keyword_blog|escape}" placeholder="Поиск в блоге...">\n
<button class="widget-search__button">\n
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20">\n
<path d="M19.2,17.8c0,0-0.2,0.5-0.5,0.8c-0.4,0.4-0.9,0.6-0.9,0.6s-0.9,0.7-2.8-1.6c-1.1-1.4-2.2-2.8-3.1-3.9C10.9,14.5,9.5,15,8,15\n
c-3.9,0-7-3.1-7-7s3.1-7,7-7s7,3.1,7,7c0,1.5-0.5,2.9-1.3,4c1.1,0.8,2.5,2,4,3.1C20,16.8,19.2,17.8,19.2,17.8z M8,3C5.2,3,3,5.2,3,8\n
c0,2.8,2.2,5,5,5c2.8,0,5-2.2,5-5C13,5.2,10.8,3,8,3z" />\n
</svg>\n
</button>\n
<div class="widget-search__field"></div>\n
</form>\n
</div>\n
{* ABOUT *}\n
<div class="card widget widget-about-us">\n
<div class="widget__header">\n
<h4>О Блоге</h4>\n
</div>\n
<div class="widget-about-us__body">\n
<div class="widget-about-us__text">\n
Здесь мы будем регулярно делиться своими новостями и полезной информацией. Также здесь Вы найдете полезные статьи и обзоры новых товаров на рынке.\n
</div>\n
<div class="widget-about-us__social-links social-links">\n
<ul class="social-links__list">\n
<li class="social-links__item social-links__item--rss"><a href="/" target="_blank"><i class="widget-social__icon fas fa-rss"></i></a></li>\n
<li class="social-links__item social-links__item--youtube"><a href="/" target="_blank"><i class="widget-social__icon fab fa-youtube"></i></a></li>\n
<li class="social-links__item social-links__item--facebook"><a href="/" target="_blank"><i class="widget-social__icon fab fa-facebook-f"></i></a></li>\n
<li class="social-links__item social-links__item--twitter"><a href="/" target="_blank"><i class="widget-social__icon fab fa-twitter"></i></a></li>\n
<li class="social-links__item social-links__item--instagram"><a href="/" target="_blank"><i class="widget-social__icon fab fa-instagram"></i></a></li>\n
</ul>\n
</div>\n
</div>\n
</div>\n
{* LATEST PRODUCTS *}\n
{get_posts var=last_posts_sidebar limit=4}\n
{if $last_posts_sidebar}\n
<div class="card widget widget-posts">\n
<div class="widget__header">\n
<h4>Последние новости</h4>\n
</div>\n
<ul class="widget-posts__list">\n
{foreach $last_posts_sidebar as $post}\n
<li class="widget-posts__item">\n
<div class="widget-posts__image">\n
<a href="blog/{$post->url}">\n
{if $post->image}\n
<img src="design/{$settings->theme|escape}/images/lazyload.png" data-src="{$post->image|resize:70:70}" alt="{$post->name|escape}" title="{$post->name|escape}" class="lazyload blur-up">\n
{else}\n
<img src="design/{$settings->theme|escape}/images/lazyload.png" data-src="design/{$settings->theme|escape}/images/no-news.png" alt="{$post->name|escape}" title="{$post->name|escape}" class="lazyload blur-up">\n
{/if}\n
</a>\n
</div>\n
<div class="widget-posts__info">\n
<div class="widget-posts__name"><a href="blog/{$post->url}">{$post->name|escape}</a></div>\n
<div class="widget-posts__date">{$post->date|date}</div>\n
</div>\n
</li>\n
{/foreach}\n
</ul>\n
</div>\n
{/if}\n
{* LATEST COMMENTS *}\n
{get_comments_blog var=last_comments_blog limit=5 type='blog'}\n
{if $last_comments_blog}\n
<div class="card widget widget-comments">\n
<div class="widget__header">\n
<h4>Последние комментарии</h4>\n
</div>\n
<div class="widget-comments__body">\n
<ul class="widget-comments__list">\n
{foreach $last_comments_blog as $comment}\n
<li class="widget-comments__item">\n
<div class="widget-comments__author">\n
<a href="blog/{$comment->url}#comment_{$comment->id}">{$comment->name}</a>\n
</div>\n
<div class="widget-comments__content">{$comment->text|strip_tags:false|truncate:100|replace:' ':''}</div>\n
<div class="widget-comments__meta">\n
<div class="widget-comments__date">{$comment->date|date}</div>\n
<div class="widget-comments__name">\n
В <a href="blog/{$comment->url}#comment_{$comment->id}" title="{$comment->product}">{$comment->product}</a>\n
</div>\n
</div>\n
</li>\n
{/foreach}\n
</ul>\n
</div>\n
</div>\n
{/if}
"""
$isTemplateSource: true
}
}
/sites/fid.ua/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php:394 {
Smarty_Internal_TemplateCompilerBase->compileTemplate(Smarty_Internal_Template $template, $nocache = null, ?Smarty_Internal_TemplateCompilerBase $parent_compiler = null) …
› $template,
› $this->compileTemplateSource(
› $template,
arguments: {
$template: Smarty_Internal_Template {#284 …}
$nocache: false
$parent_compiler: null
}
}
/sites/fid.ua/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php:184 {
Smarty_Template_Compiled->compileTemplateSource(Smarty_Internal_Template $_template) …
› $_template->loadCompiler();
› $this->write($_template, $_template->compiler->compileTemplate($_template));
› } catch (Exception $e) {
arguments: {
$template: Smarty_Internal_Template {#284 …}
}
}
/sites/fid.ua/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php:141 {
Smarty_Template_Compiled->process(Smarty_Internal_Template $_smarty_tpl) …
› ) {
› $this->compileTemplateSource($_smarty_tpl);
› $compileCheck = $_smarty_tpl->compile_check;
arguments: {
$_template: Smarty_Internal_Template {#284 …}
}
}
/sites/fid.ua/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php:105 {
Smarty_Template_Compiled->render(Smarty_Internal_Template $_template) …
› if (!$this->processed) {
› $this->process($_template);
› }
arguments: {
$_smarty_tpl: Smarty_Internal_Template {#284 …}
}
}
/sites/fid.ua/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php:217 {
Smarty_Internal_Template->render($no_output_filter = true, $display = null) …
› }
› $this->compiled->render($this);
› }
arguments: {
$_template: Smarty_Internal_Template {#265 …}
}
}
/sites/fid.ua/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php:386 {
Smarty_Internal_Template->_subTemplateRender($template, $cache_id, $compile_id, $caching, $cache_lifetime, $data, $scope, $forceTplCache, $uid = null, $content_func = null) …
› } else {
› $tpl->render();
› }
}
/sites/fid.ua/compiled/rovo/cb96c1c42e3d0a75cc8336978e38b274823cb9bc_0.file.list-left.tpl.php:59 {
content_683ee1b84f9ff5_43895115(Smarty_Internal_Template $_smarty_tpl) …
› \t\t\t\t\t\t<div class="blog-view__item blog-view__item-sidebar">
› \t\t\t\t<?php $_smarty_tpl->_subTemplateRender("file:sidebars/blog.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
› ?>
arguments: {
$template: "file:sidebars/blog.tpl"
$cache_id: null
$compile_id: null
$caching: 0
$cache_lifetime: "1"
$data: []
$scope: 0
$forceTplCache: false
}
}
/sites/fid.ua/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php:123 {
Smarty_Template_Resource_Base->getRenderedTemplateCode(Smarty_Internal_Template $_template, $unifunc = null) …
› }
› $unifunc($_template);
› foreach ($_template->endRenderCallbacks as $callback) {
arguments: {
$_smarty_tpl: Smarty_Internal_Template {#265 …}
}
}
/sites/fid.ua/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php:114 {
Smarty_Template_Compiled->render(Smarty_Internal_Template $_template) …
› } else {
› $this->getRenderedTemplateCode($_template);
› }
arguments: {
$_template: Smarty_Internal_Template {#265 …}
}
}
/sites/fid.ua/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php:217 {
Smarty_Internal_Template->render($no_output_filter = true, $display = null) …
› }
› $this->compiled->render($this);
› }
arguments: {
$_template: Smarty_Internal_Template {#265 …}
}
}
/sites/fid.ua/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php:386 {
Smarty_Internal_Template->_subTemplateRender($template, $cache_id, $compile_id, $caching, $cache_lifetime, $data, $scope, $forceTplCache, $uid = null, $content_func = null) …
› } else {
› $tpl->render();
› }
}
/sites/fid.ua/compiled/rovo/3cbbba2fd7c072a68bccbaaed7d52b383f895905_0.file.blog.tpl.php:52 {
content_683ee1b84a52f7_44660182(Smarty_Internal_Template $_smarty_tpl) …
› } else { ?>
› \t<?php $_smarty_tpl->_subTemplateRender("file:blog/list-left.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, true);
› }?>
arguments: {
$template: "file:blog/list-left.tpl"
$cache_id: null
$compile_id: null
$caching: 0
$cache_lifetime: "1"
$data: []
$scope: 0
$forceTplCache: true
}
}
/sites/fid.ua/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php:123 {
Smarty_Template_Resource_Base->getRenderedTemplateCode(Smarty_Internal_Template $_template, $unifunc = null) …
› }
› $unifunc($_template);
› foreach ($_template->endRenderCallbacks as $callback) {
arguments: {
$_smarty_tpl: Smarty_Internal_Template {#265 …}
}
}
/sites/fid.ua/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php:114 {
Smarty_Template_Compiled->render(Smarty_Internal_Template $_template) …
› } else {
› $this->getRenderedTemplateCode($_template);
› }
arguments: {
$_template: Smarty_Internal_Template {#265 …}
}
}
/sites/fid.ua/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php:217 {
Smarty_Internal_Template->render($no_output_filter = true, $display = null) …
› }
› $this->compiled->render($this);
› }
arguments: {
$_template: Smarty_Internal_Template {#265 …}
}
}
/sites/fid.ua/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php:238 {
Smarty_Internal_TemplateBase->_execute($template, $cache_id, $compile_id, $parent, $function) …
› }
› $result = $template->render(false, $function);
› $template->_cleanUp();
arguments: {
$no_output_filter: false
$display: 0
}
}
/sites/fid.ua/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php:116 {
Smarty_Internal_TemplateBase->fetch($template = null, $cache_id = null, $compile_id = null, $parent = null) …
› {
› $result = $this->_execute($template, $cache_id, $compile_id, $parent, 0);
› return $result === null ? ob_get_clean() : $result;
arguments: {
$template: Smarty_Internal_Template {#265 …}
$cache_id: null
$compile_id: null
$parent: null
$function: 0
}
}
/sites/fid.ua/api/Design.php:87 {
FID\Design->fetch($template) …
› \t$this->assign('settings',\t$this->settings);\r
› \treturn $this->smarty->fetch($template);\r
› }\r
arguments: {
$template: "blog.tpl"
}
}
/sites/fid.ua/view/BlogView.php:304 {
FID\View\BlogView->list() …
› \r
› $body = $this->design->fetch('blog.tpl');\r
› \r
arguments: {
$template: "blog.tpl"
}
}
/sites/fid.ua/api/Router.php:142 {
FID\Router->dispatch(Request $request) …
› $pre_c = new $class($this);
› \t\tif (!$content = $pre_c->{$method}())
› \t\t{
}
/sites/fid.ua/index.php:379 {
› \r
› $response = $view->router->dispatch($request);\r
› \r
arguments: {
$request: Symfony\Component\HttpFoundation\Request {#167 …}
}
}
}
}