Jump to content
@rthur

Erreurs lors du passage en mode debug

Recommended Posts

Salut,

J'ai un souci sur ma boutique robot-resto.fr (v1.7.5). Lorsque je passe en mode debug j'ai tout en tas d'erreur qui apparaissent sauf que je ne comprends pas du tout ce que cela signifie...

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

in 41df1985130dffd7d3fe4cb369091546a0b40be7_2.module.psmainmenupsmainmenu.tpl.php line 55
at smarty_template_function_menu_13455584505cf51a8bbb8707_53032186(object(SmartyDevTemplate), array('nodes' => array(array('type' => 'category', 'label' => 'Coupe-légumes', 'url' => 'https://robot-resto.fr/37-coupe-legumes', 'children' => array(), 'open_in_new_window' => false, 'image_urls' => array(), 'page_identifier' => 'category-37', 'current' => false, 'depth' => 2), array('type' => 'category', 'label' => 'Cutters', 'url' => 'https://robot-resto.fr/11-cutters', 'children' => array(), 'open_in_new_window' => false, 'image_urls' => array(), 'page_identifier' => 'category-11', 'current' => false, 'depth' => 2), array('type' => 'category', 'label' => 'Combinés', 'url' => 'https://robot-resto.fr/12-combines', 'children' => array(), 'open_in_new_window' => false, 'image_urls' => array(), 'page_identifier' => 'category-12', 'current' => false, 'depth' => 2), array('type' => 'category', 'label' => 'Collection de disques', 'url' => 'https://robot-resto.fr/34-collection-de-disques', 'children' => array(), 'open_in_new_window' => false, 'image_urls' => array(), 'page_identifier' => 'category-34', 'current' => false, 'depth' => 2)), 'depth' => 1, 'parent' => array('type' => 'category', 'label' => 'Coupe-légumes & cutters', 'url' => 'https://robot-resto.fr/14-coupe-legumes-cutters', 'children' => array(array('type' => 'category', 'label' => 'Coupe-légumes', 'url' => 'https://robot-resto.fr/37-coupe-legumes', 'children' => array(), 'open_in_new_window' => false, 'image_urls' => array(), 'page_identifier' => 'category-37', 'current' => false, 'depth' => 2), array('type' => 'category', 'label' => 'Cutters', 'url' => 'https://robot-resto.fr/11-cutters', 'children' => array(), 'open_in_new_window' => false, 'image_urls' => array(), 'page_identifier' => 'category-11', 'current' => false, 'depth' => 2), array('type' => 'category', 'label' => 'Combinés', 'url' => 'https://robot-resto.fr/12-combines', 'children' => array(), 'open_in_new_window' => false, 'image_urls' => array(), 'page_identifier' => 'category-12', 'current' => false, 'depth' => 2), array('type' => 'category', 'label' => 'Collection de disques', 'url' => 'https://robot-resto.fr/34-collection-de-disques', 'children' => array(), 'open_in_new_window' => false, 'image_urls' => array(), 'page_identifier' => 'category-34', 'current' => false, 'depth' => 2)), 'open_in_new_window' => false, 'image_urls' => array('https://robot-resto.fr/img/c/14-0_thumb.jpg'), 'page_identifier' => 'category-14', 'current' => false, 'depth' => 1)))
in smarty_internal_runtime_tplfunction.php line 38
at Smarty_Internal_Runtime_TplFunction->callTemplateFunction(object(SmartyDevTemplate), 'menu', array('nodes' => array(array('type' => 'category', 'label' => 'Coupe-légumes', 'url' => 'https://robot-resto.fr/37-coupe-legumes', 'children' => array(), 'open_in_new_window' => false, 'image_urls' => array(), 'page_identifier' => 'category-37', 'current' => false, 'depth' => 2), array('type' => 'category', 'label' => 'Cutters', 'url' => 'https://robot-resto.fr/11-cutters', 'children' => array(), 'open_in_new_window' => false, 'image_urls' => array(), 'page_identifier' => 'category-11', 'current' => false, 'depth' => 2), array('type' => 'category', 'label' => 'Combinés', 'url' => 'https://robot-resto.fr/12-combines', 'children' => array(), 'open_in_new_window' => false, 'image_urls' => array(), 'page_identifier' => 'category-12', 'current' => false, 'depth' => 2), array('type' => 'category', 'label' => 'Collection de disques', 'url' => 'https://robot-resto.fr/34-collection-de-disques', 'children' => array(), 'open_in_new_window' => false, 'image_urls' => array(), 'page_identifier' => 'category-34', 'current' => false, 'depth' => 2)), 'depth' => 1, 'parent' => array('type' => 'category', 'label' => 'Coupe-légumes & cutters', 'url' => 'https://robot-resto.fr/14-coupe-legumes-cutters', 'children' => array(array('type' => 'category', 'label' => 'Coupe-légumes', 'url' => 'https://robot-resto.fr/37-coupe-legumes', 'children' => array(), 'open_in_new_window' => false, 'image_urls' => array(), 'page_identifier' => 'category-37', 'current' => false, 'depth' => 2), array('type' => 'category', 'label' => 'Cutters', 'url' => 'https://robot-resto.fr/11-cutters', 'children' => array(), 'open_in_new_window' => false, 'image_urls' => array(), 'page_identifier' => 'category-11', 'current' => false, 'depth' => 2), array('type' => 'category', 'label' => 'Combinés', 'url' => 'https://robot-resto.fr/12-combines', 'children' => array(), 'open_in_new_window' => false, 'image_urls' => array(), 'page_identifier' => 'category-12', 'current' => false, 'depth' => 2), array('type' => 'category', 'label' => 'Collection de disques', 'url' => 'https://robot-resto.fr/34-collection-de-disques', 'children' => array(), 'open_in_new_window' => false, 'image_urls' => array(), 'page_identifier' => 'category-34', 'current' => false, 'depth' => 2)), 'open_in_new_window' => false, 'image_urls' => array('https://robot-resto.fr/img/c/14-0_thumb.jpg'), 'page_identifier' => 'category-14', 'current' => false, 'depth' => 1)), true)
in 41df1985130dffd7d3fe4cb369091546a0b40be7_2.module.psmainmenupsmainmenu.tpl.php line 61
at smarty_template_function_menu_13455584505cf51a8bbb8707_53032186(object(SmartyDevTemplate), array('nodes' => array(array('type' => 'category', 'label' => 'Coupe-légumes & cutters', 'url' => 'https://robot-resto.fr/14-coupe-legumes-cutters', 'children' => array(array('type' => 'category', 'label' => 'Coupe-légumes', 'url' => 'https://robot-resto.fr/37-coupe-legumes', 'children' => array(), 'open_in_new_window' => false, 'image_urls' => array(), 'page_identifier' => 'category-37', 'current' => false, 'depth' => 2), array('type' => 'category', 'label' => 'Cutters', 'url' => 'https://robot-resto.fr/11-cutters', 'children' => array(), 'open_in_new_window' => false, 'image_urls' => array(), 'page_identifier' => 'category-11', 'current' => false, 'depth' => 2), array('type' => 'category', 'label' => 'Combinés', 'url' => 'https://robot-resto.fr/12-combines', 'children' => array(), 'open_in_new_window' => false, 'image_urls' => array(), 'page_identifier' => 'category-12', 'current' => false, 'depth' => 2), array('type' => 'category', 'label' => 'Collection de disques', 'url' => 'https://robot-resto.fr/34-collection-de-disques', 'children' => array(), 'open_in_new_window' => false, 'image_urls' => array(), 'page_identifier' => 'category-34', 'current' => false, 'depth' => 2)), 'open_in_new_window' => false, 'image_urls' => array('https://robot-resto.fr/img/c/14-0_thumb.jpg'), 'page_identifier' => 'category-14', 'current' => false, 'depth' => 1), array('type' => 'category', 'label' => 'Blixers', 'url' => 'https://robot-resto.fr/43-blixers', 'children' => array(), 'open_in_new_window' => false, 'image_urls' => array(), 'page_identifier' => 'category-43', 'current' => false, 'depth' => 1), array('type' => 'category', 'label' => 'Batteurs', 'url' => 'https://robot-resto.fr/42-batteurs', 'children' => array(), 'open_in_new_window' => false, 'image_urls' => array(), 'page_identifier' => 'category-42', 'current' => false, 'depth' => 1), array('type' => 'category', 'label' => 'Mixeurs plongeants', 'url' => 'https://robot-resto.fr/17-mixeurs-plongeants', 'children' => array(array('type' => 'category', 'label' => 'MicroMix', 'url' => 'https://robot-resto.fr/18-micromix', 'children' => array(), 'open_in_new_window' => false, 'image_urls' => array(), 'page_identifier' => 'category-18', 'current' => false, 'depth' => 2), array('type' => 'category', 'label' => 'Mini Mixers', 'url' => 'https://robot-resto.fr/19-mini-mixers', 'children' => array(), 'open_in_new_window' => false, 'image_urls' => array(), 'page_identifier' => 'category-19', 'current' => false, 'depth' => 2), array('type' => 'category', 'label' => 'Mixers Compacts', 'url' => 'https://robot-resto.fr/20-mixers-compacts', 'children' => array(), 'open_in_new_window' => false, 'image_urls' => array(), 'page_identifier' => 'category-20', 'current' => false, 'depth' => 2), array('type' => 'category', 'label' => 'Mixers Combinés', 'url' => 'https://robot-resto.fr/21-mixers-combines', 'children' => array(), 'open_in_new_window' => false, 'image_urls' => array(), 'page_identifier' => 'category-21', 'current' => false, 'depth' => 2)), 'open_in_new_window' => false, 'image_urls' => array(), 'page_identifier' => 'category-17', 'current' => false, 'depth' => 1), array('type' => 'product', 'label' => 'Robot Cook', 'url' => 'https://robot-resto.fr/robot-cook/58-robot-cook.html', 'children' => array(), 'open_in_new_window' => false, 'image_urls' => array(), 'page_identifier' => 'product-58', 'depth' => 1, 'current' => false), array('type' => 'category', 'label' => 'Divers', 'url' => 'https://robot-resto.fr/35-divers', 'children' => array(array('type' => 'category', 'label' => 'Extracteur de jus', 'url' => 'https://robot-resto.fr/22-extracteur-de-jus', 'children' => array(), 'open_in_new_window' => false, 'image_urls' => array(), 'page_identifier' => 'category-22', 'current' => false, 'depth' => 2), array('type' => 'category', 'label' => 'Tamis automatiques', 'url' => 'https://robot-resto.fr/23-tamis-automatiques', 'children' => array(), 'open_in_new_window' => false, 'image_urls' => array(), 'page_identifier' => 'category-23', 'current' => false, 'depth' => 2), array('type' => 'category', 'label' => 'Eplucheurs', 'url' => 'https://robot-resto.fr/24-eplucheurs', 'children' => array(), 'open_in_new_window' => false, 'image_urls' => array(), 'page_identifier' => 'category-24', 'current' => false, 'depth' => 2), array('type' => 'category', 'label' => 'Centrifugeuses', 'url' => 'https://robot-resto.fr/40-centrifugeuses', 'children' => array(), 'open_in_new_window' => false, 'image_urls' => array(), 'page_identifier' => 'category-40', 'current' => false, 'depth' => 2)), 'open_in_new_window' => false, 'image_urls' => array('https://robot-resto.fr/img/c/35-0_thumb.jpg'), 'page_identifier' => 'category-35', 'current' => false, 'depth' => 1), array('type' => 'category', 'label' => 'Accessoires', 'url' => 'https://robot-resto.fr/45-accessoires', 'children' => array(), 'open_in_new_window' => false, 'image_urls' => array(), 'page_identifier' => 'category-45', 'current' => false, 'depth' => 1), array('type' => 'category', 'label' => 'Bon plans', 'url' => 'https://robot-resto.fr/46-bon-plans', 'children' => array(), 'open_in_new_window' => false, 'image_urls' => array(), 'page_identifier' => 'category-46', 'current' => false, 'depth' => 1)), 'depth' => 0, 'parent' => null))
in smarty_internal_runtime_tplfunction.php line 38
at Smarty_Internal_Runtime_TplFunction->callTemplateFunction(object(SmartyDevTemplate), 'menu', array('nodes' => array(array('type' => 'category', 'label' => 'Coupe-légumes & cutters', 'url' => 'https://robot-resto.fr/14-coupe-legumes-cutters', 'children' => array(array('type' => 'category', 'label' => 'Coupe-légumes', 'url' => 'https://robot-resto.fr/37-coupe-legumes', 'children' => array(), 'open_in_new_window' => false, 'image_urls' => array(), 'page_identifier' => 'category-37', 'current' => false, 'depth' => 2), array('type' => 'category', 'label' => 'Cutters', 'url' => 'https://robot-resto.fr/11-cutters', 'children' => array(), 'open_in_new_window' => false, 'image_urls' => array(), 'page_identifier' => 'category-11', 'current' => false, 'depth' => 2), array('type' => 'category', 'label' => 'Combinés', 'url' => 'https://robot-resto.fr/12-combines', 'children' => array(), 'open_in_new_window' => false, 'image_urls' => array(), 'page_identifier' => 'category-12', 'current' => false, 'depth' => 2), array('type' => 'category', 'label' => 'Collection de disques', 'url' => 'https://robot-resto.fr/34-collection-de-disques', 'children' => array(), 'open_in_new_window' => false, 'image_urls' => array(), 'page_identifier' => 'category-34', 'current' => false, 'depth' => 2)), 'open_in_new_window' => false, 'image_urls' => array('https://robot-resto.fr/img/c/14-0_thumb.jpg'), 'page_identifier' => 'category-14', 'current' => false, 'depth' => 1), array('type' => 'category', 'label' => 'Blixers', 'url' => 'https://robot-resto.fr/43-blixers', 'children' => array(), 'open_in_new_window' => false, 'image_urls' => array(), 'page_identifier' => 'category-43', 'current' => false, 'depth' => 1), array('type' => 'category', 'label' => 'Batteurs', 'url' => 'https://robot-resto.fr/42-batteurs', 'children' => array(), 'open_in_new_window' => false, 'image_urls' => array(), 'page_identifier' => 'category-42', 'current' => false, 'depth' => 1), array('type' => 'category', 'label' => 'Mixeurs plongeants', 'url' => 'https://robot-resto.fr/17-mixeurs-plongeants', 'children' => array(array('type' => 'category', 'label' => 'MicroMix', 'url' => 'https://robot-resto.fr/18-micromix', 'children' => array(), 'open_in_new_window' => false, 'image_urls' => array(), 'page_identifier' => 'category-18', 'current' => false, 'depth' => 2), array('type' => 'category', 'label' => 'Mini Mixers', 'url' => 'https://robot-resto.fr/19-mini-mixers', 'children' => array(), 'open_in_new_window' => false, 'image_urls' => array(), 'page_identifier' => 'category-19', 'current' => false, 'depth' => 2), array('type' => 'category', 'label' => 'Mixers Compacts', 'url' => 'https://robot-resto.fr/20-mixers-compacts', 'children' => array(), 'open_in_new_window' => false, 'image_urls' => array(), 'page_identifier' => 'category-20', 'current' => false, 'depth' => 2), array('type' => 'category', 'label' => 'Mixers Combinés', 'url' => 'https://robot-resto.fr/21-mixers-combines', 'children' => array(), 'open_in_new_window' => false, 'image_urls' => array(), 'page_identifier' => 'category-21', 'current' => false, 'depth' => 2)), 'open_in_new_window' => false, 'image_urls' => array(), 'page_identifier' => 'category-17', 'current' => false, 'depth' => 1), array('type' => 'product', 'label' => 'Robot Cook', 'url' => 'https://robot-resto.fr/robot-cook/58-robot-cook.html', 'children' => array(), 'open_in_new_window' => false, 'image_urls' => array(), 'page_identifier' => 'product-58', 'depth' => 1, 'current' => false), array('type' => 'category', 'label' => 'Divers', 'url' => 'https://robot-resto.fr/35-divers', 'children' => array(array('type' => 'category', 'label' => 'Extracteur de jus', 'url' => 'https://robot-resto.fr/22-extracteur-de-jus', 'children' => array(), 'open_in_new_window' => false, 'image_urls' => array(), 'page_identifier' => 'category-22', 'current' => false, 'depth' => 2), array('type' => 'category', 'label' => 'Tamis automatiques', 'url' => 'https://robot-resto.fr/23-tamis-automatiques', 'children' => array(), 'open_in_new_window' => false, 'image_urls' => array(), 'page_identifier' => 'category-23', 'current' => false, 'depth' => 2), array('type' => 'category', 'label' => 'Eplucheurs', 'url' => 'https://robot-resto.fr/24-eplucheurs', 'children' => array(), 'open_in_new_window' => false, 'image_urls' => array(), 'page_identifier' => 'category-24', 'current' => false, 'depth' => 2), array('type' => 'category', 'label' => 'Centrifugeuses', 'url' => 'https://robot-resto.fr/40-centrifugeuses', 'children' => array(), 'open_in_new_window' => false, 'image_urls' => array(), 'page_identifier' => 'category-40', 'current' => false, 'depth' => 2)), 'open_in_new_window' => false, 'image_urls' => array('https://robot-resto.fr/img/c/35-0_thumb.jpg'), 'page_identifier' => 'category-35', 'current' => false, 'depth' => 1), array('type' => 'category', 'label' => 'Accessoires', 'url' => 'https://robot-resto.fr/45-accessoires', 'children' => array(), 'open_in_new_window' => false, 'image_urls' => array(), 'page_identifier' => 'category-45', 'current' => false, 'depth' => 1), array('type' => 'category', 'label' => 'Bon plans', 'url' => 'https://robot-resto.fr/46-bon-plans', 'children' => array(), 'open_in_new_window' => false, 'image_urls' => array(), 'page_identifier' => 'category-46', 'current' => false, 'depth' => 1))), true)
in 41df1985130dffd7d3fe4cb369091546a0b40be7_2.module.psmainmenupsmainmenu.tpl.php line 32
at content_5cf51a8bbde313_30175098(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 2413
at ModuleCore->fetch('module:ps_mainmenu/ps_mainmenu.tpl')
in ps_mainmenu.php line 1425
at Ps_MainMenu->renderWidget('displayNavMainMenuBlock', array('smarty' => object(SmartyDevTemplate), 'cookie' => object(Cookie), 'cart' => object(Cart)))
in Hook.php line 971
at HookCore::coreRenderWidget(object(Ps_MainMenu), 'displayNavMainMenuBlock', array('smarty' => object(SmartyDevTemplate), 'cookie' => object(Cookie), 'cart' => object(Cart)))
in Hook.php line 923
at HookCore::exec('displayNavMainMenuBlock', array('smarty' => object(SmartyDevTemplate), 'cookie' => object(Cookie), 'cart' => object(Cart)), null)
in smarty.config.inc.php line 165
at smartyHook(array('h' => 'displayNavMainMenuBlock'), object(SmartyDevTemplate))
in SmartyLazyRegister.php line 83
at SmartyLazyRegister->__call('smartyHook', array(array('h' => 'displayNavMainMenuBlock'), object(SmartyDevTemplate)))
in 795050023c63ae9cc152daa400bb006f1d222d7f_2.file.header.tpl.php line 86
at Block_16608711525cff63bba9de50_44371034->callBlock(object(SmartyDevTemplate))
in smarty_internal_runtime_inheritance.php line 248
at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_16608711525cff63bba9de50_44371034), object(SmartyDevTemplate))
in smarty_internal_runtime_inheritance.php line 184
at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_16608711525cff63bba9de50_44371034))
in smarty_internal_runtime_inheritance.php line 156
at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_16608711525cff63bba9de50_44371034', 'header_top')
in 795050023c63ae9cc152daa400bb006f1d222d7f_2.file.header.tpl.php line 32
at content_5cff63bbaac987_56383362(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 7403c6abf0a9aa2972f8e6d9de10cfe138308878_2.file.layout-both-columns.tpl.php line 134
at Block_10808326765cf51a8b9bab13_08136108->callBlock(object(SmartyDevTemplate))
in smarty_internal_runtime_inheritance.php line 248
at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_10808326765cf51a8b9bab13_08136108), object(SmartyDevTemplate))
in smarty_internal_runtime_inheritance.php line 184
at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_10808326765cf51a8b9bab13_08136108))
in smarty_internal_runtime_inheritance.php line 156
at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_10808326765cf51a8b9bab13_08136108', 'header')
in 7403c6abf0a9aa2972f8e6d9de10cfe138308878_2.file.layout-both-columns.tpl.php line 54
at content_5cf51a8b9d3b63_55653738(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 e8ca846e9adb4e9579f06fe9327efbdc35c7c382_2.file.layout-full-width.tpl.php line 31
at content_5cf51a8b9adb80_46155894(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 0abb3ac4422e8fb9c76693370535491709551112_2.file.page.tpl.php line 29
at content_5cf51a8b9a2212_93577116(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 b60c3280c7e9a8541c8042b66f08de324de077eb_2.file.index.tpl.php line 29
at content_5cf51fb933ce75_38758629(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 682
at FrontControllerCore->smartyOutputContent('index.tpl')
in FrontController.php line 666
at FrontControllerCore->display()
in Controller.php line 301
at ControllerCore->run()
in Dispatcher.php line 509
at DispatcherCore->dispatch()
in index.php line 28

Ca vous parle ?? 

 

Merci bcp !

Share this post


Link to post
Share on other sites

tpl module mal écrit qui appelle des variables indéfinies / inexistantes

Share this post


Link to post
Share on other sites

Merci. Une idée comment régler le problème? Il semble que c'est une seule et même variable qui pose problème.

Share this post


Link to post
Share on other sites

un {if isset($custom_id)}

à la ligne 55 de 

psmainmenupsmainmenu.tpl.php

suivi d'un {/if}  autour de la variable appelée devrait régler le problème

Share this post


Link to post
Share on other sites

Merci. Deux choses, le fichier se trouve dans un répertoire bizarre : var/cache/prod/smarty/compile/41/df/19/... Est-ce normal de modifier un fichier dans ce répertoire? 

Ensuite voici l'extrait de code qui commence ligne 55 

if ($_smarty_tpl->tpl_vars['custom_id']->value[1] == 'category') {
$_smarty_tpl->_assignInScope('custom_id', explode("-",$_smarty_tpl->tpl_vars['node']->value['page_identifier']));
$_smarty_tpl->_assignInScope('category_name', Category::getLinkRewrite($_smarty_tpl->tpl_vars['custom_id']->value[1],$_smarty_tpl->tpl_vars['language']->value['id']));

Comment modifier ? je ne veut pas faire de bêtises en touchant le code... 

 

Merci bcp !

Share this post


Link to post
Share on other sites

ca c'est le compilé, allez chercher et corriger le source dans le module psmainmenu (ou dans themes/votre_theme/modules/psmainmenu)

Share this post


Link to post
Share on other sites

J'aimerais bien mais ce fichier est nul part... J'ai regardé dans monsite/modules/psmainmenu et voici en PJ l’arborescence du dossier. 

J'ai aussi regardé dans monsite/themes/classic/modules/psmainmenu et dans monsite/themes/montheme/modules/psmainmenu, rien non plus dedans, juste 2 fichiers qui ne correspondent pas (cf PJ)...

Capture d’écran 2019-07-01 à 15.11.59.png

Capture d’écran 2019-07-01 à 15.14.51.png

Capture d’écran 2019-07-01 à 15.15.10.png

Share this post


Link to post
Share on other sites

c'est ps_mainmenu.tpl, le debug a tout collé^^

Share this post


Link to post
Share on other sites
3 minutes ago, Eolia said:

c'est ps_mainmenu.tpl, le debug a tout collé^^

Merci ! Ok je comprends mieux ... 

Voici le contenu du fichier en question. Tu pourrais m'aider sur quoi modifier et de quelle manière parce que du coup ça ne correspond pas à la ligne indiquée dans le debug... ? 

{strip}


{assign var=_counter value=0}
{function name="menu" nodes=[] depth=0 parent=null}
    {if $nodes|count}
      <ul class="jhp-header-menu" {if $depth == 0}id="jhp-top-menu"{/if} data-depth="{$depth}">
        {if $depth == 0}
          <li class="{if $page.page_name=='index'}current {/if} jhpmain-menu-wrapper ">
            
          </li>
        {/if}
        {foreach from=$nodes item=node}
            <li class="{$node.type}{if $node.current} current {/if} jhpmain-menu-wrapper {if $node.children|count}jhp-has-child{/if}" id="{$node.page_identifier}" {if $node.children|count}{assign var=_expand_id value=10|mt_rand:100000}child-dropdown='top_sub_menu_{$_expand_id}'{/if}>
            {assign var=_counter value=$_counter+1}
            <div class="jhpmenu-link-wrapper">
              <a
                class="{if $depth === 1} jhpdropdown-submenu sousmenu{/if} jhpmenu-link"
                href="{$node.url}" data-depth="{$depth}"
                {if $node.open_in_new_window} target="_blank" {/if}>                                
                <span class="jhpmain-menu-text-box">
                   {$node.label}
                </span>
                {if $depth > 0}
                  {if $custom_id[1] == 'category'}
                    {assign var=custom_id value="-"|explode:$node.page_identifier} 
                    {$category_name = Category::getLinkRewrite($custom_id[1], $language.id)}
                    {$files_check = $link->getCatImageLink($category_name, $custom_id[1], 'small_default')}
                    <img src="{$files_check}" alt='{$node.label}'>
                  {/if}
                {/if}
              </a>
              {if $node.children|count}
                <span class="jhpmenu-toggle-icon">
                  <i class='material-icons jhphorizontal-menu-drop-down-icon'>&#xe313;</i>
                </span>
              {/if}
              </div>
              {if $node.children|count}
              <div {if $depth === 0 }  class="jhpmain-menu-dropdown jhpmain-menu-sub-menu jhpmain-menu-mobile-dropdown " {elseif $depth === 1 } class="jhpmain-menu-mobile-dropdown" {else} class="" {/if} >
                {menu nodes=$node.children depth=$node.depth parent=$node}
                {if $depth === 0 && $node.children.0.children}
                  {if $node.image_urls}
                    {foreach $node.image_urls as $image}
                      <div class="jhpheader-top-menu-img">
                          <img src="{$image}" alt="{$node.label}">
                      </div>
                    {/foreach}
                  {/if}
                {/if}
              </div>
              {/if}
            </li>
        {/foreach}
      </ul>
    {/if}
{/function}

<div id='jhpcmsdesktop-main-menu'>
  <div class='jhpcmsmain-menu-wrapper' {* id="_desktop_top_menu" *}>
      {menu nodes=$menu.children}
      <div class="clearfix"></div>
      <div class="jhpmenu-button-wrapper">
        <div class="jhpmenu-button">
          <a href="#">
            <span class="Jhpmenu-top"></span> 
            <span class="Jhpmenu-middle"></span>
            <span class="Jhpmenu-bottom"></span>
          </a>  
        </div>
      </div>
  </div>
</div>

{/strip}

 

Share this post


Link to post
Share on other sites

Bah il suffit de chercher la variable concernée...

Il y a 2 heures, @rthur a dit :

{if $custom_id[1] == 'category'}

 

Share this post


Link to post
Share on other sites

J'aurais juste aimé savoir par quoi le remplacer exactement, j'aimerais éviter de plomber mon site avec une erreur dans le code, je ne suis pas codeur...

Merci de votre aide

Share this post


Link to post
Share on other sites
{if !empty($custom_id[1]) && ($custom_id[1] == 'category')}

 

Share this post


Link to post
Share on other sites
51 minutes ago, Eolia said:

{if !empty($custom_id[1]) && ($custom_id[1] == 'category')}

 

Ca marche parfaitement merci mille fois !

Share this post


Link to post
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...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More