What's New
- AuthorPosts
Hi,
On two websites with transformer I have two kind of issues. One is shown on server logs:
Smarty: 0():Missing ‘$template’ parameter <– \n thrown in /var/www/vhosts/xxxxxxxx.com/httpdocs/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php on line 177\n’
The other issue appears when debug mode os on:
(1/1) ContextErrorException
Notice: Undefined property: StSpecialSlider::$contentin stspecialslider.php line 215
at StSpecialSlider->getProducts(”)
in BaseProductsSlider.php line 528
at BaseProductsSlider->_prepareHook()
in BaseProductsSlider.php line 592
at BaseProductsSlider->hookDisplayHome(array(‘smarty’ => object(SmartyDevTemplate), ‘cookie’ => object(Cookie), ‘cart’ => object(Cart), ‘altern’ => 4), ‘hookDisplayFullWidthTop2’, 2)
in BaseSlider.php line 1498
at BaseSlider->hookDisplayFullWidthTop2(array(‘smarty’ => object(SmartyDevTemplate), ‘cookie’ => object(Cookie), ‘cart’ => object(Cart), ‘altern’ => 4))
in Hook.php line 970
at HookCore::coreCallHook(object(StSpecialSlider), ‘hookdisplayFullWidthTop2’, array(‘smarty’ => object(SmartyDevTemplate), ‘cookie’ => object(Cookie), ‘cart’ => object(Cart), ‘altern’ => 4))
in Hook.php line 355
at HookCore::callHookOn(object(StSpecialSlider), ‘displayFullWidthTop2’, array(‘smarty’ => object(SmartyDevTemplate), ‘cookie’ => object(Cookie), ‘cart’ => object(Cart), ‘altern’ => 4))
in Hook.php line 907
at HookCore::exec(‘displayFullWidthTop2’, array(‘smarty’ => object(SmartyDevTemplate), ‘cookie’ => object(Cookie), ‘cart’ => object(Cart), ‘altern’ => 4), null)
in smarty.config.inc.php line 167
at smartyHook(array(‘h’ => ‘displayFullWidthTop2’), object(SmartyDevTemplate))
in SmartyLazyRegister.php line 83
at SmartyLazyRegister->__call(‘smartyHook’, array(array(‘h’ => ‘displayFullWidthTop2’), object(SmartyDevTemplate)))
in 330399a65a5e3432d3dc3d4c06d2aa7db5f2c442_2.file.layout-both-columns.tpl.php line 326
at Block_3540161965f0102865cd890_84456103->callBlock(object(SmartyDevTemplate))
in smarty_internal_runtime_inheritance.php line 248
at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_3540161965f0102865cd890_84456103), object(SmartyDevTemplate))
in smarty_internal_runtime_inheritance.php line 184
at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_3540161965f0102865cd890_84456103))
in smarty_internal_runtime_inheritance.php line 156
at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), ‘Block_3540161965f0102865cd890_84456103’, ‘full_width_top’)
in 330399a65a5e3432d3dc3d4c06d2aa7db5f2c442_2.file.layout-both-columns.tpl.php line 96
at content_5f010286601257_09249152(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, 3600, 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 0fe68cb02ebdf3cd05a384b679c47beb9f43f147_2.file.layout-full-width.tpl.php line 50
at content_5f0102865b7359_07960687(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, 3600, 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 3b1b45b9ca817cd2341b77f79a8cacb40ff80f8c_2.file.page.tpl.php line 33
at content_5f0102865af4a9_60095450(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, 3600, array(), 2, false, null, null)
in smarty_internal_runtime_inheritance.php line 125
at Smarty_Internal_Runtime_Inheritance->endChild(object(SmartyDevTemplate), ‘page.tpl’)
in 7dd25d3aeec0c83e259c18753a238ab7c0f9151f_2.file.index.tpl.php line 37
at content_5f0102865a2773_65311248(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 28We are using Prestashop 1.7.6.2 and Transformer v4.3.9. We have cleaned cache. We don’t want to update yet theme version, because we have made some modifications on product tpl files.
The second error only desappear when I disable stspecialslider module. I think this module have some bug when debug mode is enabled. Nothing happens when I disable overrides.
Well best idea is to update theme to newest because there are allot of fixes bugs. You can use program called WinMerge to check what tpl files You have changed and after update change the files again. Did You check if the first error appears on clean prestashop 1.7.6.2 with classic template? Maybe its a prestashop problem. Not template one.
Hi,
That was a bug in your version. If you just want to fix the warning, please modify the \modules\stspecialslider\stspecialslider.php file, change “content” to “context” to fix it.
It seems the Missing ‘$template’ message from one of your 3rd part modules, but not sure which one it is.
Best regards.- AuthorPosts
You must be logged in to reply to this topic.