hugo-ledex Posted June 17, 2020 Share Posted June 17, 2020 (1/1) SmartyCompilerException Syntax error in template "file:/home/zuhauscl/public_html/home/themes/warehouse/templates/_partials/head.tpl" on line 162 "function gtag(){dataLayer.push(arguments);}" - Unexpected ".", expected one of: "}" Ayuda he tenido que restaurar el sitio muchas veces cada cierto rato hago combios normales como por ejemplo desactivar pop up , al hacerlo , se cae la pagina y me arroja error 500 , porfavor necesito ayuda URGENTE , ya no se que hacer el sitio es www.zuhaus.cl (1/1) SmartyCompilerException Syntax error in template "file:/home/zuhauscl/public_html/home/themes/warehouse/templates/_partials/head.tpl" on line 162 "function gtag(){dataLayer.push(arguments);}" - Unexpected ".", expected one of: "}" in smarty_internal_templatecompilerbase.php line 162 at Smarty_Internal_TemplateCompilerBase->trigger_template_error()in smarty_internal_templateparser.php line 3425 at Smarty_Internal_Templateparser->yy_syntax_error(45, '.')in smarty_internal_templateparser.php line 3490 at Smarty_Internal_Templateparser->doParse(45, '.')in smarty_internal_smartytemplatecompiler.php line 128 at Smarty_Internal_SmartyTemplateCompiler->doCompile('{** * 2007-2017 PrestaShop * * NOTICE OF LICENSE * * This source file is subject to the Open Software License (OSL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/osl-3.0.php * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to [email protected] so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to http://www.prestashop.com for more information. * * @author PrestaShop SA <[email protected]> * @copyright 2007-2017 PrestaShop SA * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) * International Registered Trademark & Property of PrestaShop SA *}{block name=\'head_charset\'} <meta charset="utf-8">{/block}{block name=\'head_ie_compatibility\'} <meta http-equiv="x-ua-compatible" content="ie=edge">{/block}{block name=\'head_seo\'} <title>{block name=\'head_seo_title\'}{$page.meta.title}{/block}</title> <meta name="description" content="{block name=\'head_seo_description\'}{$page.meta.description}{/block}"> <meta name="keywords" content="{block name=\'head_seo_keywords\'}{$page.meta.keywords}{/block}"> {if $page.meta.robots !== \'index\'} <meta name="robots" content="{$page.meta.robots}"> {/if} {block name=\'head_seo_canonical\'} {if $page.canonical} <link rel="canonical" href="{$page.canonical}"> {/if} {/block} {block name=\'head_hreflang\'} {foreach from=$urls.alternative_langs item=pageUrl key=code} <link rel="alternate" href="{$pageUrl}" hreflang="{$code}"> {/foreach} {/block}{/block}{block name=\'head_og_tags\'} <meta property="og:title" content="{$page.meta.title}"/> <meta property="og:url" content="https://{$smarty.server.HTTP_HOST}{$smarty.server.REQUEST_URI}"/> <meta property="og:site_name" content="{$shop.name}"/> <meta property="og:description" content="{$page.meta.description}"> <meta property="og:type" content="website"> {if isset($iqitTheme.sm_og_logo) == 1 && $iqitTheme.sm_og_logo != \'\'} <meta property="og:image" content="https://{$smarty.server.HTTP_HOST}{$iqitTheme.sm_og_logo }" /> {else} <meta property="og:image" content="https://{$smarty.server.HTTP_HOST}{$shop.logo}" /> {/if}{/block}{block name=\'head_viewport\'} {if $iqitTheme.rm_pinch_zoom == 1} <meta name="viewport" content="width=device-width, initial-scale=1"> {else} <meta name="viewport" content="initial-scale=1,user-scalable=no,maximum-scale=1,width=device-width"> {/if}{/block}{if isset($iqitTheme.rm_address_bg) && $iqitTheme.rm_address_bg != \'\'} <meta name="theme-color" content="{$iqitTheme.rm_address_bg}"> <meta name="msapplication-navbutton-color" content="{$iqitTheme.rm_address_bg}">{/if}{block name=\'head_icons\'} <link rel="icon" type="image/vnd.microsoft.icon" href="{$shop.favicon}?{$shop.favicon_update_time}"> <link rel="shortcut icon" type="image/x-icon" href="{$shop.favicon}?{$shop.favicon_update_time}"> {if isset($iqitTheme.rm_icon_apple) && $iqitTheme.rm_icon_apple != \'\'} <link rel="apple-touch-icon" href="{$iqitTheme.rm_icon_apple }"> {/if} {if isset($iqitTheme.rm_icon_android) && $iqitTheme.rm_icon_android != \'\'} <link rel="icon" sizes="192x192" href="{$iqitTheme.rm_icon_android}"> {/if}{/block}{block name=\'hook_fonts\'} {if $iqitTheme.typo_bfont_t == \'google\'} <link href="{$iqitTheme.typo_bfont_g_url}" rel="stylesheet"> {/if} {if $iqitTheme.typo_hfont_t == \'google\'} <link href="{$iqitTheme.typo_hfont_g_url}" rel="stylesheet"> {/if}{/block}{block name=\'head_organization_snippet\'}<script type="application/ld+json">{literal}{"@context": "https://schema.org","@type": "Organization","url": "{/literal}{$urls.base_url}{literal}","name": "{/literal}{$shop.name}{literal}","logo": "{/literal}{$shop.logo}{literal}","@id": "#store-organization"}{/literal}</script>{/block}{block name=\'stylesheets\'} {include file="_partials/stylesheets.tpl" stylesheets=$stylesheets}{/block}{block name=\'javascript_head\'} {include file="_partials/javascript.tpl" javascript=$javascript.head vars=$js_custom_vars}{/block}{block name=\'hook_header\'} {$HOOK_HEADER nofilter}{/block}{block name=\'hook_extra\'}{/block}<!-- Global site tag (gtag.js) - Google Ads: 635884705 -->{literal}<script async src="https://www.googletagmanager.com/gtag/js?id=AW-635884705"></script><script>window.dataLayer = window.dataLayer || [];function gtag(){dataLayer.push(arguments);}gtag(\'js\', new Date());gtag(\'config\', \'AW-635884705\');</script>{/literal}<!-- Event snippet for Compra conversion page -->{literal}<script> gtag(\'event\', \'conversion\', { \'send_to\': \'AW-635884705/okYvCOjittABEKGpm68C\', \'transaction_id\': \'\' });</script>{/literal}<!-- Global site tag (gtag.js) - Google Analytics --><script async src="https://www.googletagmanager.com/gtag/js?id=UA-167044897-1"></script><script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag(\'js\', new Date()); gtag(\'config\', \'UA-167044897-1\');</script>', true)in smarty_internal_templatecompilerbase.php line 481 at Smarty_Internal_TemplateCompilerBase->compileTemplateSource(object(SmartyDevTemplate), false, null)in smarty_internal_templatecompilerbase.php line 404 at Smarty_Internal_TemplateCompilerBase->compileTemplate(object(SmartyDevTemplate))in smarty_template_compiled.php line 184 at Smarty_Template_Compiled->compileTemplateSource(object(SmartyDevTemplate))in smarty_template_compiled.php line 141 at Smarty_Template_Compiled->process(object(SmartyDevTemplate))in smarty_template_compiled.php line 105 at Smarty_Template_Compiled->render(object(SmartyDevTemplate))in smarty_internal_template.php line 216 at Smarty_Internal_Template->render()in smarty_internal_template.php line 385 at Smarty_Internal_Template->_subTemplateRender('file:_partials/head.tpl', null, 'layouts/layout-full-width.tpl', 0, 31536000, array(), 0, false)in d0bce9ce8dc6c402f6cb4a0b374a3668f4a75b42_2.file.layout-both-columns.tpl.php line 167 at Block_8285465995eea40e844d8d1_67233664->callBlock(object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 248 at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_8285465995eea40e844d8d1_67233664), object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 232 at Smarty_Internal_Runtime_Inheritance->callParent(object(SmartyDevTemplate), object(Block_4830105625eea40e84301b6_34030956), '\'{block append}\'')in smarty_internal_runtime_inheritance.php line 181 at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_4830105625eea40e84301b6_34030956), object(Block_8285465995eea40e844d8d1_67233664))in smarty_internal_runtime_inheritance.php line 186 at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_8285465995eea40e844d8d1_67233664))in smarty_internal_runtime_inheritance.php line 156 at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_8285465995eea40e844d8d1_67233664', 'head')in d0bce9ce8dc6c402f6cb4a0b374a3668f4a75b42_2.file.layout-both-columns.tpl.php line 40 at content_5eea40e846bad8_28120587(object(SmartyDevTemplate))in smarty_template_resource_base.php line 123 at Smarty_Template_Resource_Base->getRenderedTemplateCode(object(SmartyDevTemplate))in smarty_template_compiled.php line 114 at Smarty_Template_Compiled->render(object(SmartyDevTemplate))in smarty_internal_template.php line 216 at Smarty_Internal_Template->render()in smarty_internal_template.php line 385 at Smarty_Internal_Template->_subTemplateRender('layouts/layout-both-columns.tpl', null, 'layouts/layout-full-width.tpl', 0, 31536000, array(), 2, false, null, null)in smarty_internal_runtime_inheritance.php line 125 at Smarty_Internal_Runtime_Inheritance->endChild(object(SmartyDevTemplate), 'layouts/layout-both-columns.tpl')in b35cf18abc527460bd03d79f953f31c5f4ee3c58_2.file.layout-full-width.tpl.php line 50 at content_5eea40e8449d46_74117451(object(SmartyDevTemplate))in smarty_template_resource_base.php line 123 at Smarty_Template_Resource_Base->getRenderedTemplateCode(object(SmartyDevTemplate))in smarty_template_compiled.php line 114 at Smarty_Template_Compiled->render(object(SmartyDevTemplate))in smarty_internal_template.php line 216 at Smarty_Internal_Template->render()in smarty_internal_template.php line 385 at Smarty_Internal_Template->_subTemplateRender('layouts/layout-full-width.tpl', null, 'layouts/layout-full-width.tpl', 0, 31536000, array(), 2, false, null, null)in smarty_internal_runtime_inheritance.php line 125 at Smarty_Internal_Runtime_Inheritance->endChild(object(SmartyDevTemplate), 'layouts/layout-full-width.tpl')in db196756d8ed3229c9b7e89af81bd2ecdeac7dbf_2.file.page.tpl.php line 33 at content_5eea40e84414f1_12704827(object(SmartyDevTemplate))in smarty_template_resource_base.php line 123 at Smarty_Template_Resource_Base->getRenderedTemplateCode(object(SmartyDevTemplate))in smarty_template_compiled.php line 114 at Smarty_Template_Compiled->render(object(SmartyDevTemplate))in smarty_internal_template.php line 216 at Smarty_Internal_Template->render()in smarty_internal_template.php line 385 at Smarty_Internal_Template->_subTemplateRender('page.tpl', null, 'layouts/layout-full-width.tpl', 0, 31536000, array(), 2, false, null, null)in smarty_internal_runtime_inheritance.php line 125 at Smarty_Internal_Runtime_Inheritance->endChild(object(SmartyDevTemplate), 'page.tpl')in fa0a700ed625f073cde0ef2914a4d5e1c7ecec2d_2.file.index.tpl.php line 36 at content_5eea40e8437508_81934921(object(SmartyDevTemplate))in smarty_template_resource_base.php line 123 at Smarty_Template_Resource_Base->getRenderedTemplateCode(object(SmartyDevTemplate))in smarty_template_compiled.php line 114 at Smarty_Template_Compiled->render(object(SmartyDevTemplate))in smarty_internal_template.php line 216 at Smarty_Internal_Template->render(false, 0)in smarty_internal_templatebase.php line 232 at Smarty_Internal_TemplateBase->_execute(object(SmartyDevTemplate), null, 'layouts/layout-full-width.tpl', null, 0)in smarty_internal_templatebase.php line 116 at Smarty_Internal_TemplateBase->fetch('index.tpl', null, 'layouts/layout-full-width.tpl', null, false, true, false)in SmartyDev.php line 40 at SmartyDev->fetch('index.tpl', null, 'layouts/layout-full-width.tpl')in FrontController.php line 683 at FrontControllerCore->smartyOutputContent('index.tpl')in FrontController.php line 667 at FrontControllerCore->display()in Controller.php line 312 at ControllerCore->run()in Dispatcher.php line 515 at DispatcherCore->dispatch()in index.php line 28 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now