Fatal error: Uncaught exception 'SmartyCompilerException' with message 'Syntax Error in template "/home/navel142/domains/chinabuy.com.ua/public_html/templates/skin/synio/footer.tpl" on line 72 «w.yaCounter13925998 = new Ya.Metrika({id:13925998,» — Unexpected ":", expected one of: "}", " "' in /home/navel142/domains/chinabuy.com.ua/public_html/engine/lib/external/Smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php:627 Stack trace: #0 /home/navel142/domains/chinabuy.com.ua/public_html/engine/lib/external/Smarty/libs/sysplugins/smarty_internal_templateparser.php(3154): Smarty_Internal_TemplateCompilerBase->trigger_template_error() #1 /home/navel142/domains/chinabuy.com.ua/public_html/engine/lib/external/Smarty/libs/sysplugins/smarty_internal_templateparser.php(3219): Smarty_Internal_Templateparser->yy_syntax_error(2, ':') #2 /home/navel142/domains/chinabuy.com.ua/public_html/engine/lib/external/Smarty/libs/sysplugins/smarty_internal_smartytemplatecompiler.php(105): Smarty_Internal_Templateparser->doParse(2, ': in /home/navel142/domains/chinabuy.com.ua/public_html/engine/lib/external/Smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php on line 627
На самом деле вы оба правы — если использовать обычный код YM, то не нужно оборачивать в {literal}, если же код берется асинхронный, тогда нужно оборачивать, или будет выдавать ошибку smarty.
Еще момент — эту прибавку <!- не нужно использовать. Просто пишется {literal} без этих «наваротов».
21 комментарий
открывает в шаблоне вашем footer.tpl, вставляем перед тегом body, вуаля!
потому как скрипт кода нужно завернуть в спецтег
<!—{literal}—> код <!—{/literal}—>
<!—{literal}—>
<!—{/literal}—>
Fatal error: Uncaught exception 'SmartyCompilerException' with message 'Syntax Error in template "/home/navel142/domains/chinabuy.com.ua/public_html/templates/skin/synio/footer.tpl" on line 72 «w.yaCounter13925998 = new Ya.Metrika({id:13925998,» — Unexpected ":", expected one of: "}", " "' in /home/navel142/domains/chinabuy.com.ua/public_html/engine/lib/external/Smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php:627 Stack trace: #0 /home/navel142/domains/chinabuy.com.ua/public_html/engine/lib/external/Smarty/libs/sysplugins/smarty_internal_templateparser.php(3154): Smarty_Internal_TemplateCompilerBase->trigger_template_error() #1 /home/navel142/domains/chinabuy.com.ua/public_html/engine/lib/external/Smarty/libs/sysplugins/smarty_internal_templateparser.php(3219): Smarty_Internal_Templateparser->yy_syntax_error(2, ':') #2 /home/navel142/domains/chinabuy.com.ua/public_html/engine/lib/external/Smarty/libs/sysplugins/smarty_internal_smartytemplatecompiler.php(105): Smarty_Internal_Templateparser->doParse(2, ': in /home/navel142/domains/chinabuy.com.ua/public_html/engine/lib/external/Smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php on line 627
результат выше
вот этот весь код надо в теги что вы указали вставлять?
<!—{literal}—>
скрипт
<!—{/literal}—>
Еще момент — эту прибавку <!- не нужно использовать. Просто пишется {literal} без этих «наваротов».