alvesjc Posted August 20, 2020 Share Posted August 20, 2020 Hello, The upgrade process went smoothly, but I´ve then find out issues with the shopping cart. Every time I click in the cart, I get this errors in debug mode: (1/1) ContextErrorException Notice: Undefined index: opc in b827380c661ffa23526e6e77a691d717d563140b_2.file.carriercompare.tpl.php line 24 at content_5f3e354b645f84_94219365(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, 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 2409 at ModuleCore->display('/home/p2r_webadmin/public_html/modules/carriercompare/carriercompare.php', 'template/carriercompare.tpl') in carriercompare.php line 150 at CarrierCompare->hookShoppingCart(array('smarty' => object(SmartyDevTemplate), 'cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => 1)) in Hook.php line 970 at HookCore::coreCallHook(object(CarrierCompare), 'hookshoppingCart', array('smarty' => object(SmartyDevTemplate), 'cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => 1)) in Hook.php line 359 at HookCore::callHookOn(object(CarrierCompare), 'displayShoppingCartFooter', array('smarty' => object(SmartyDevTemplate), 'cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => 1)) in Hook.php line 907 at HookCore::exec('displayShoppingCartFooter', array('smarty' => object(SmartyDevTemplate), 'cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => 1), null) in smarty.config.inc.php line 167 at smartyHook(array('h' => 'displayShoppingCartFooter'), object(SmartyDevTemplate)) in SmartyLazyRegister.php line 83 at SmartyLazyRegister->__call('smartyHook', array(array('h' => 'displayShoppingCartFooter'), object(SmartyDevTemplate))) in b90402966ea6373c41b26582bbfd83eb9a4063d6_2.file.cart.tpl.php line 68 at Block_18080521035f3e354a0e8fb4_41764732->callBlock(object(SmartyDevTemplate)) in smarty_internal_runtime_inheritance.php line 248 at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_18080521035f3e354a0e8fb4_41764732), object(SmartyDevTemplate)) in smarty_internal_runtime_inheritance.php line 184 at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_18080521035f3e354a0e8fb4_41764732)) in smarty_internal_runtime_inheritance.php line 156 at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_18080521035f3e354a0e8fb4_41764732', 'hook_shopping_cart_footer', 0) in b90402966ea6373c41b26582bbfd83eb9a4063d6_2.file.cart.tpl.php line 221 at Block_16232947805f3e354a0e1326_52111207->callBlock(object(SmartyDevTemplate)) in smarty_internal_runtime_inheritance.php line 248 at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_16232947805f3e354a0e1326_52111207), object(SmartyDevTemplate)) in smarty_internal_runtime_inheritance.php line 184 at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_16232947805f3e354a0e1326_52111207), object(Block_3206566125f3e354a0fb7c4_73518191)) in smarty_internal_runtime_inheritance.php line 186 at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_3206566125f3e354a0fb7c4_73518191)) in smarty_internal_runtime_inheritance.php line 156 at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_3206566125f3e354a0fb7c4_73518191', 'content', 1) in 49d9c81cb254446eded9739bc1929ad3a50f4994_2.file.layout-full-width.tpl.php line 99 at Block_17322596045f3e354a0fb042_71031246->callBlock(object(SmartyDevTemplate)) in smarty_internal_runtime_inheritance.php line 248 at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_17322596045f3e354a0fb042_71031246), object(SmartyDevTemplate)) in smarty_internal_runtime_inheritance.php line 184 at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_17322596045f3e354a0fb042_71031246), object(Block_19964482585f3e354a12a243_00290843)) in smarty_internal_runtime_inheritance.php line 186 at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_19964482585f3e354a12a243_00290843)) in smarty_internal_runtime_inheritance.php line 156 at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_19964482585f3e354a12a243_00290843', 'content_wrapper') in d57dda112146f08ef1d2bc80145c907de4d4ce40_2.file.layout-both-columns.tpl.php line 130 at content_5f3e354a1308e9_59111309(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 49d9c81cb254446eded9739bc1929ad3a50f4994_2.file.layout-full-width.tpl.php line 42 at content_5f3e354a0fcc03_29610528(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 b90402966ea6373c41b26582bbfd83eb9a4063d6_2.file.cart.tpl.php line 34 at content_5f3e354a0f1363_41156492(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('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 I've tried multiple options without success, like: - disable smarty completly - force recompilation - clear cache - delete var/cache contents - Disable OpCache ( thought that opc might be something related with opcache, just a shot in the dark) I´ve other domain with PS1.7.6.7 installed from scratch and this one doesn't show any issues. Tried also copying all files from vendor/smarty/smarty/ from the working domain to this one, but doesn't help. Looked specifically to this entry for example: in smarty_template_resource_base.php line 123 at Smarty_Template_Resource_Base->getRenderedTemplateCode(object(SmartyDevTemplate)) and the code looks like this: public function getRenderedTemplateCode(Smarty_Internal_Template $_template, $unifunc = null) { $smarty = &$_template->smarty; $_template->isRenderingCache = $this->isCache; $level = ob_get_level(); try { if (!isset($unifunc)) { $unifunc = $this->unifunc; } if (empty($unifunc) || !function_exists($unifunc)) { throw new SmartyException("Invalid compiled template for '{$_template->template_resource}'"); } if ($_template->startRenderCallbacks) { foreach ($_template->startRenderCallbacks as $callback) { call_user_func($callback, $_template); } } $unifunc($_template); # <---- Line 123 reported in error foreach ($_template->endRenderCallbacks as $callback) { call_user_func($callback, $_template); } $_template->isRenderingCache = false; } catch (Exception $e) { $_template->isRenderingCache = false; while (ob_get_level() > $level) { ob_end_clean(); } if (isset($smarty->security_policy)) { $smarty->security_policy->endTemplate(); } throw $e; } } The upgrade process is very important in this store in order to keep everything from old (products, customers, etc). Can someone help me with this? The store is in maintenance mode now, but I can allow some IP to access it if this helps. Thanks. 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