MatrixIT Posted November 27, 2019 Share Posted November 27, 2019 (edited) Hi, I've an eShop with Prestashop 1.7.6.1 and everything worked properly. This morning I upgraded these modules: - ps_shoppingcart - ps_contactinfo - blockreassurance - ps_themecusto - ps_linklist - ps_emailsubscription - ps_facetedsearch After this operation I receive this smarty error when a product is added to the cart: (1/1) ContextErrorException Notice: Undefined index: product in 35655e6409b6198f29dd6e732ef9598dec599880_2.module.psshoppingcartpsshoppingc.php line 58 at content_5dde394def7fc5_19831675(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(null, null, null, null, 0) in smarty_internal_templatebase.php line 116 at Smarty_Internal_TemplateBase->fetch(null, null, null, null, false, true, false) in SmartyDevTemplate.php line 40 at SmartyDevTemplateCore->fetch() in Module.php line 2447 at ModuleCore->fetch('module:ps_shoppingcart/ps_shoppingcart.tpl') in ps_shoppingcart.php line 98 at Ps_Shoppingcart->renderWidget('displayTop', array('smarty' => object(SmartyDevTemplate), 'cookie' => object(Cookie), 'cart' => object(Cart))) in Hook.php line 975 at HookCore::coreRenderWidget(object(Ps_Shoppingcart), 'displayTop', array('smarty' => object(SmartyDevTemplate), 'cookie' => object(Cookie), 'cart' => object(Cart))) in Hook.php line 927 at HookCore::exec('displayTop', array('smarty' => object(SmartyDevTemplate)), null) in smarty.config.inc.php line 167 at smartyHook(array('h' => 'displayTop'), object(SmartyDevTemplate)) at call_user_func_array('smartyHook', array(array('h' => 'displayTop'), object(SmartyDevTemplate))) in SmartyLazyRegister.php line 83 at SmartyLazyRegister->__call('smartyHook', array(array('h' => 'displayTop'), object(SmartyDevTemplate))) at SmartyLazyRegister->smartyHook(array('h' => 'displayTop'), object(SmartyDevTemplate)) at call_user_func_array(array(object(SmartyLazyRegister), 'smartyHook'), array(array('h' => 'displayTop'), object(SmartyDevTemplate))) in 098840d2c0bfc9ec72766e0ff7043a16c89b268d_2.file.header.tpl.php line 143 at Block_288152925dde39579a7d96_40263247->callBlock(object(SmartyDevTemplate)) in smarty_internal_runtime_inheritance.php line 248 at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_288152925dde39579a7d96_40263247), object(SmartyDevTemplate)) in smarty_internal_runtime_inheritance.php line 184 at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_288152925dde39579a7d96_40263247)) in smarty_internal_runtime_inheritance.php line 156 at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_288152925dde39579a7d96_40263247', 'header_top') in 098840d2c0bfc9ec72766e0ff7043a16c89b268d_2.file.header.tpl.php line 34 at content_5dde39579adb35_67959320(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('file:_partials/header.tpl', null, 'layouts/layout-full-width.tpl', 0, 3600, array(), 0, false) in e0f63929e52ae89f130cc59ae95cbc6445d5959b_2.file.layout-both-columns.tpl.php line 191 at Block_12245318575dde39578f7777_87842516->callBlock(object(SmartyDevTemplate)) in smarty_internal_runtime_inheritance.php line 248 at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_12245318575dde39578f7777_87842516), object(SmartyDevTemplate)) in smarty_internal_runtime_inheritance.php line 184 at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_12245318575dde39578f7777_87842516)) in smarty_internal_runtime_inheritance.php line 156 at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_12245318575dde39578f7777_87842516', 'header') in e0f63929e52ae89f130cc59ae95cbc6445d5959b_2.file.layout-both-columns.tpl.php line 58 at content_5dde3957927014_32388767(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 126 at Smarty_Internal_Runtime_Inheritance->endChild(object(SmartyDevTemplate), 'layouts/layout-both-columns.tpl') in d47c8a87a0eb32efe67bb16dc76fe5dc9b8964a3_2.file.layout-full-width.tpl.php line 42 at content_5dde39578dad49_20820842(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 126 at Smarty_Internal_Runtime_Inheritance->endChild(object(SmartyDevTemplate), 'layouts/layout-full-width.tpl') in 4e23d550fb5ebbd0042fbf89026de683e8bef4ea_2.file.cart.tpl.php line 36 at content_5dde3dd7456ee5_56505829(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('checkout/cart.tpl', null, 'layouts/layout-full-width.tpl', null, 0) in smarty_internal_templatebase.php line 116 at Smarty_Internal_TemplateBase->fetch('checkout/cart.tpl', null, 'layouts/layout-full-width.tpl', null, false, true, false) in SmartyDev.php line 40 at SmartyDev->fetch('checkout/cart.tpl', null, 'layouts/layout-full-width.tpl') in FrontController.php line 683 at FrontControllerCore->smartyOutputContent('checkout/cart.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 What can I do to solve this situation? If i clear the cache of the browser the website start to work properly another time, but it still impossible to open the cart or complete an order. Thanks Edited November 27, 2019 by MatrixIT (see edit history) 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