Автор Тема: Ошибка - Undefined index: cart_url  (Прочитано 398 раз)

27 Июнь 2020, 10:56:17
  • Новичок
  • *
  • Сообщений: 2
  • Репутация: +0/-0
  • Сообщество PrestaShop
    • Просмотр профиля
Здравствуйте.
После установки нового шаблона появляется ошибка HTTP ERROR 500.  Ниже код того, где указывается ошибка. Буду благодарен за советы как это исправить. Версия PrestaShop 1.7.6.5. Спасибо.

(1/1) ContextErrorException
Notice: Undefined index: cart_url

in 2a1f4a2c334b110bcfe01199225ce4c038ea744f_2.file.an_megamenu.tpl.cache.php line 192
at content_5ef66c3e0e60e8_22473441(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_runtime_updatecache.php line 38
at Smarty_Internal_Runtime_UpdateCache->updateCache(object(Smarty_Template_Cached), object(SmartyDevTemplate), false)

in smarty_template_cached.php line 143
at Smarty_Template_Cached->render(object(SmartyDevTemplate), false)

in smarty_internal_template.php line 211
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 2409
at ModuleCore->display('an_megamenu', 'an_megamenu.tpl', 'an_megamenu|1|1|1|8')

in AnMegaMenuHooks.php line 101
at AnMegaMenuHooks->hookDisplayTop()

in an_megamenu.php line 258
at an_megamenu->__call('hookdisplayTop', array(array('smarty' => object(SmartyDevTemplate), 'cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => 1)))

in Hook.php line 970
at an_megamenu->hookdisplayTop(array('smarty' => object(SmartyDevTemplate), 'cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => 1))

in Hook.php line 970
at HookCore::coreCallHook(object(an_megamenu), 'hookdisplayTop', array('smarty' => object(SmartyDevTemplate), 'cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => 1))

in Hook.php line 355
at HookCore::callHookOn(object(an_megamenu), 'displayTop', array('smarty' => object(SmartyDevTemplate), 'cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => 1))

in Hook.php line 907
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 f03cbc8650b5c738a4b153a0ca9bd9bde4ab3e45_2.file.header.tpl.php line 173
at Block_17933381705ef66c3d78fba3_09977945->callBlock(object(SmartyDevTemplate))

in smarty_internal_runtime_inheritance.php line 248
at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_17933381705ef66c3d78fba3_09977945), object(SmartyDevTemplate))
in smarty_internal_runtime_inheritance.php line 184
at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_17933381705ef66c3d78fba3_09977945))
in smarty_internal_runtime_inheritance.php line 156
at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_17933381705ef66c3d78fba3_09977945', 'header_top')
in f03cbc8650b5c738a4b153a0ca9bd9bde4ab3e45_2.file.header.tpl.php line 42
at content_5ef66c3d7c2131_47121612(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 d3411c7f27517caa59880732187d1b0f9544b49c_2.file.layout-both-columns.tpl.php line 204
at Block_17802614145ef66c3d65cf07_92618604->callBlock(object(SmartyDevTemplate))
in smarty_internal_runtime_inheritance.php line 248
at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_17802614145ef66c3d65cf07_92618604), object(SmartyDevTemplate))
in smarty_internal_runtime_inheritance.php line 184
at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_17802614145ef66c3d65cf07_92618604))
in smarty_internal_runtime_inheritance.php line 156
at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_17802614145ef66c3d65cf07_92618604', 'header')
in d3411c7f27517caa59880732187d1b0f9544b49c_2.file.layout-both-columns.tpl.php line 64
at content_5ef66c3d6b7aa8_54953054(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 31d93e5bc65ad755d5d4326275e8c1bfb293e12c_2.file.layout-full-width.tpl.php line 42
at content_5ef66c3d625a96_15623435(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 1b90c3e11aaf81a07e3c2df3480cc6bcf90c8447_2.file.page.tpl.php line 33
at content_5ef66c3d607be3_78630653(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 126
at Smarty_Internal_Runtime_Inheritance->endChild(object(SmartyDevTemplate), 'page.tpl')
in daa37914f7cea58e9c1b62bbb317369d206ed009_2.file.index.tpl.php line 33
at content_5ef66c3d5dfdd5_79692612(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('index.tpl', 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 28
27 Июнь 2020, 12:50:40
Ответ #1
  • Ветеран
  • *****
  • Сообщений: 1285
  • Репутация: +13/-1
  • Сообщество PrestaShop
    • Просмотр профиля
Переустановите модуль megamenu.
27 Июнь 2020, 19:41:38
Ответ #2
  • Новичок
  • *
  • Сообщений: 2
  • Репутация: +0/-0
  • Сообщество PrestaShop
    • Просмотр профиля