Po wprowadzeniu modyfikacji w /themes/classic/templates/catalog/product.tpl - dodaniu dwóch </br> i wyczyszczeniu pamięci podręcznej na stronie głównej mam błąd, sklep przestał działać.
Tagi br oczywiście usunąłem, lecz nie wiem jak się za to zabrać:
SmartyCompilerExceptioninsmarty_internal_templatecompilerbase.php line 29:Syntax error in template "/home/mimtrans/domains/letsherbs.com/public_html/themes/classic/templates/index.tpl" on line 29 "function gtag(){dataLayer.push(arguments);}" - Unexpected ".", expected one of: "}"
atSmarty_Internal_SmartyTemplateCompiler->doCompile('{** * 2007-2017 PrestaShop * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License 3.0 (AFL-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: * https://opensource.org/licenses/AFL-3.0 * 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 https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0) * International Registered Trademark & Property of PrestaShop SA *} <!-- Global site tag (gtag.js) - Google Analytics --> <script async src="https://www.googletagmanager.com/gtag/js?id=UA-118445823-1"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'UA-118445823-1'); </script> {extends file='page.tpl'} {block name='page_content_container'} <section id="content" class="page-home"> {block name='page_content_top'}{/block} {block name='page_content'} {block name='hook_home'} {$HOOK_HOME nofilter} {/block} {/block} </section> {/block} ') insmarty_internal_templatecompilerbase.php line 283
Question
m.salekk
Po wprowadzeniu modyfikacji w /themes/classic/templates/catalog/product.tpl - dodaniu dwóch </br> i wyczyszczeniu pamięci podręcznej na stronie głównej mam błąd, sklep przestał działać.
Tagi br oczywiście usunąłem, lecz nie wiem jak się za to zabrać:
SmartyCompilerException in smarty_internal_templatecompilerbase.php line 29:Syntax error in template "/home/mimtrans/domains/letsherbs.com/public_html/themes/classic/templates/index.tpl" on line 29 "function gtag(){dataLayer.push(arguments);}" - Unexpected ".", expected one of: "}"
Link to comment
Share on other sites
2 answers to this question
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