Jump to content
  • 0

Whoops, looks like something went wrong.


m.salekk

Question

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: "}"

  1. in smarty_internal_templatecompilerbase.php line 29
  2. at Smarty_Internal_TemplateCompilerBase->trigger_template_error() in smarty_internal_templateparser.php line 4435
  3. at Smarty_Internal_Templateparser->yy_syntax_error('60', '.') in smarty_internal_templateparser.php line 4501
  4. at Smarty_Internal_Templateparser->doParse('60', '.') in smarty_internal_smartytemplatecompiler.php line 118
  5. at Smarty_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} ') in smarty_internal_templatecompilerbase.php line 283
  6. at Smarty_Internal_TemplateCompilerBase->compileTemplate(object(SmartyDevTemplate)) in smarty_internal_template.php line 197
  7. at Smarty_Internal_Template->compileTemplateSource() in smarty_internal_templatebase.php line 155
  8. at Smarty_Internal_TemplateBase->fetch('index.tpl', null, 'layouts/layout-full-width.tpl', null, false, true, false) in SmartyDev.php line 41
  9. at SmartyDev->fetch('index.tpl', null, 'layouts/layout-full-width.tpl') in FrontController.php line 684
  10. at FrontControllerCore->smartyOutputContent('index.tpl') in FrontController.php line 668
  11. at FrontControllerCore->display() in Controller.php line 273
  12. at ControllerCore->run() in Dispatcher.php line 428
  13. at DispatcherCore->dispatch() in index.php line 2
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

Po skasowaniu kodu google analitycs z footer, head, header i index mam znów takie coś i nie mam już sił :(

Proszę o pomoc

 

 

ContextErrorException in smarty_internal_templatebase.php(157) : eval()'d code line 35:Notice: Undefined index: iso_code

  1. in smarty_internal_templatebase.php(157) : eval()'d code line 35
  2. at ErrorHandler->handleError('8', 'Undefined index: iso_code', '/home/mimtrans/domains/letsherbs.com/public_html/vendor/prestashop/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code', '35', array('_smarty_tpl' => object(SmartyDevTemplate))) in smarty_internal_templatebase.php(157) : eval()'d code line 35
  3. at content_5aead78f4fc9e6_69190231(object(SmartyDevTemplate)) in smarty_internal_templatebase.php line 188
  4. at Smarty_Internal_TemplateBase->fetch(null, null, null, null, false, true, false) in SmartyDevTemplate.php line 41
  5. at SmartyDevTemplateCore->fetch() in Module.php line 2282
  6. at ModuleCore->fetch('module:ps_languageselector/ps_languageselector.tpl') in ps_languageselector.php line 61
  7. at Ps_Languageselector->renderWidget('displayNav2', array('smarty' => object(SmartyDevTemplate), 'cookie' => object(Cookie), 'cart' => object(Cart))) in Hook.php line 929
  8. at HookCore::coreRenderWidget(object(Ps_Languageselector), 'displayNav2', array('smarty' => object(SmartyDevTemplate), 'cookie' => object(Cookie), 'cart' => object(Cart))) in Hook.php line 881
  9. at HookCore::exec('displayNav2', array('smarty' => object(SmartyDevTemplate)), null) in smarty.config.inc.php line 168
  10. at smartyHook(array('h' => 'displayNav2'), object(SmartyDevTemplate))
  11. at call_user_func_array('smartyHook', array(array('h' => 'displayNav2'), object(SmartyDevTemplate))) in SmartyLazyRegister.php line 83
  12. at SmartyLazyRegister->__call('smartyHook', array(array('h' => 'displayNav2'), object(SmartyDevTemplate))) in smarty_internal_templatebase.php(157) : eval()'d code line 423
  13. at SmartyLazyRegister->smartyHook(array('h' => 'displayNav2'), object(SmartyDevTemplate)) in smarty_internal_templatebase.php(157) : eval()'d code line 423
  14. at content_5aead78f408e25_60313117(object(SmartyDevTemplate)) in smarty_internal_templatebase.php(157) : eval()'d code line 135
  15. at content_5aead78f49eb01_92609470(object(SmartyDevTemplate)) in smarty_internal_templatebase.php line 188
  16. at Smarty_Internal_TemplateBase->fetch('index.tpl', null, 'layouts/layout-full-width.tpl', null, false, true, false) in SmartyDev.php line 41
  17. at SmartyDev->fetch('index.tpl', null, 'layouts/layout-full-width.tpl') in FrontController.php line 684
  18. at FrontControllerCore->smartyOutputContent('index.tpl') in FrontController.php line 668
  19. at FrontControllerCore->display() in Controller.php line 273
  20. at ControllerCore->run() in Dispatcher.php line 428
  21. at DispatcherCore->dispatch() in index.php line 28
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...