Jump to content

Smarty issue


Recommended Posts

Hello 

 

can any one please help me with this issue

 

(1/1) ContextErrorException

Notice: Undefined index: cart

in 13e8e4728ad53bdfae696f0afbdb745edd66e579_2.file.product.tpl.php line 109
at Block_16490371665c69dd20e83f90_40758346->callBlock(object(SmartyCustomTemplate))in smarty_internal_runtime_inheritance.php line 248
at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_16490371665c69dd20e83f90_40758346), object(SmartyCustomTemplate))in smarty_internal_runtime_inheritance.php line 184
at Smarty_Internal_Runtime_Inheritance->process(object(SmartyCustomTemplate), object(Block_16490371665c69dd20e83f90_40758346))in smarty_internal_runtime_inheritance.php line 156
at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyCustomTemplate), 'Block_16490371665c69dd20e83f90_40758346', 'product_thumbnail')in 13e8e4728ad53bdfae696f0afbdb745edd66e579_2.file.product.tpl.php line 54
at content_5c69dd20ea7836_43647771(object(SmartyCustomTemplate))in smarty_template_resource_base.php line 123
at Smarty_Template_Resource_Base->getRenderedTemplateCode(object(SmartyCustomTemplate))in smarty_template_compiled.php line 114
at Smarty_Template_Compiled->render(object(SmartyCustomTemplate))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:catalog/_partials/miniatures/product.tpl', null, 'layouts/layout-left-column.tpl', 0, 3600, array('product' =>object(ProductListingLazyArray)), 0, true)in ea103bb7f8ac65cea7d54c2a056d3718c95b1fed_2.file.products.tpl.php line 62
at Block_14931380025c69dd20e6fd70_63105003->callBlock(object(SmartyCustomTemplate))in smarty_internal_runtime_inheritance.php line 248
at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_14931380025c69dd20e6fd70_63105003), object(SmartyCustomTemplate))in smarty_internal_runtime_inheritance.php line 184
at Smarty_Internal_Runtime_Inheritance->process(object(SmartyCustomTemplate), object(Block_14931380025c69dd20e6fd70_63105003))in smarty_internal_runtime_inheritance.php line 156
at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyCustomTemplate), 'Block_14931380025c69dd20e6fd70_63105003', 'product_miniature')in ea103bb7f8ac65cea7d54c2a056d3718c95b1fed_2.file.products.tpl.php line 37
at content_5c69dd20e75c63_18555142(object(SmartyCustomTemplate))in smarty_template_resource_base.php line 123
at Smarty_Template_Resource_Base->getRenderedTemplateCode(object(SmartyCustomTemplate))in smarty_template_compiled.php line 114
at Smarty_Template_Compiled->render(object(SmartyCustomTemplate))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:catalog/_partials/products.tpl', null, 'layouts/layout-left-column.tpl', 0, 3600, array('listing' =>array('result' => object(ProductSearchResult), 'label' => 'Catégorie : Xbox one', 'products' => array(object(ProductListingLazyArray),object(ProductListingLazyArray), object(ProductListingLazyArray), object(ProductListingLazyArray), object(ProductListingLazyArray),object(ProductListingLazyArray), object(ProductListingLazyArray), object(ProductListingLazyArray), object(ProductListingLazyArray),object(ProductListingLazyArray), object(ProductListingLazyArray), object(ProductListingLazyArray), object(ProductListingLazyArray),object(ProductListingLazyArray), object(ProductListingLazyArray), object(ProductListingLazyArray), object(ProductListingLazyArray),object(ProductListingLazyArray)), 'sort_orders' => array(array('entity' => 'product', 'field' => 'position', 'direction' => 'asc', 'label' => 'Pertinence', 'urlParameter' => 'product.position.asc', 'current' => false, 'url' => 'https://playstore.ma/101-xbox-one?order=product.position.asc'), array('entity' => 'product', 'field' => 'name', 'direction' => 'asc', 'label' => 'Nom, A à Z', 'urlParameter' => 'product.name.asc', 'current' => false, 'url' => 'https://playstore.ma/101-xbox-one?order=product.name.asc'), array('entity' => 'product', 'field' => 'name', 'direction' => 'desc', 'label' => 'Nom, Z à A', 'urlParameter' => 'product.name.desc', 'current' => false, 'url' => 'https://playstore.ma/101-xbox-one?order=product.name.desc'), array('entity' => 'product', 'field' => 'price', 'direction' => 'asc', 'label' => 'Prix, croissant', 'urlParameter' => 'product.price.asc', 'current' => false, 'url' => 'https://playstore.ma/101-xbox-one?order=product.price.asc'), array('entity' => 'product', 'field' => 'price', 'direction' => 'desc', 'label' => 'Prix, décroissant', 'urlParameter' => 'product.price.desc', 'current' => false, 'url' => 'https://playstore.ma/101-xbox-one?order=product.price.desc')), 'sort_selected' => false, 'pagination' => array('total_items' => '59', 'items_shown_from' => 1, 'items_shown_to' => 18, 'current_page' => 1, 'pages_count' => 4, 'pages' => array(array('type' => 'page', 'page' => 1, 'clickable' => false, 'current' => true, 'url' => 'https://playstore.ma/101-xbox-one'), array('type' => 'page', 'page' => 2, 'clickable' => true, 'current' => false, 'url' => 'https://playstore.ma/101-xbox-one?page=2'), array('type' => 'page', 'page' => 3, 'clickable' => true, 'current' => false, 'url' => 'https://playstore.ma/101-xbox-one?page=3'), array('type' => 'page', 'page' => 4, 'clickable' => true, 'current' => false, 'url' => 'https://playstore.ma/101-xbox-one?page=4'), array('type' => 'next', 'page' => 2, 'clickable' => true, 'current' => false, 'url' => 'https://playstore.ma/101-xbox-one?page=2')), 'should_be_displayed' => true), 'rendered_facets' => ' <div id="search_filters" class="block"> <h3 class="block-title hidden-sm-down"> Filtrer par </h3> <div class="block-content"> <div id="_desktop_search_filters_clear_all" class="hidden-sm-down clear-all-wrapper"> <button data-search-url="https://playstore.ma/101-xbox-one" class="btn btn-tertiary js-search-filters-clear-all"> <i class="material-icons">&#xE14C;</i> Effacer tout </button> </div> <section class="facet"> <h1 class="h6 facet-title hidden-sm-down">Catégories</h1> <div class="title hidden-md-up" data-target="#facet_63169" data-toggle="collapse"> <h1 class="h6 facet-title">Catégories</h1> <span class="pull-xs-right"> <span class="navbar-toggler collapse-icons"> <i class="material-icons add">&#xE313;</i> <i class="material-icons remove">&#xE316;</i> </span> </span> </div> <ul id="facet_63169" class="collapse"> <li> <label class="facet-label"> <span class="custom-checkbox"> <input data-search-url="https://playstore.ma/101-xbox-one?q=Cat%C3%A9gories-Consoles" type="checkbox" > <span class="ps-shown-by-js" ><i class="material-icons checkbox-checked">&#xE5CA;</i></span> </span> <a href="https://playstore.ma/101-xbox-one?q=Cat%C3%A9gories-Consoles" class="_gray-darker search-link js-search-link" rel="nofollow" > Consoles <span class="magnitude">(6)</span> </a> </label> </li> <li> <label class="facet-label"> <span class="custom-checkbox"> <input data-search-url="https://playstore.ma/101-xbox-one?q=Cat%C3%A9gories-Jeux" type="checkbox" > <span class="ps-shown-by-js" ><i class="material-icons checkbox-checked">&#xE5CA;</i></span> </span> <a href="https://playstore.ma/101-xbox-one?q=Cat%C3%A9gories-Jeux" class="_gray-darker search-link js-search-link" rel="nofollow" > Jeux <span class="magnitude">(31)</span> </a> </label> </li> <li> <label class="facet-label"> <span class="custom-checkbox"> <input data-search-url="https://playstore.ma/101-xbox-one?q=Cat%C3%A9gories-Accessoires" type="checkbox" > <span class="ps-shown-by-js" ><i class="material-icons checkbox-checked">&#xE5CA;</i></span> </span> <a href="https://playstore.ma/101-xbox-one?q=Cat%C3%A9gories-Accessoires" class="_gray-darker search-link js-search-link" rel="nofollow" > Accessoires <span class="magnitude">(16)</span> </a> </label> </li> <li> <label class="facet-label"> <span class="custom-checkbox"> <input data-search-url="https://playstore.ma/101-xbox-one?q=Cat%C3%A9gories-Xbox+Live+%26+DLC" type="checkbox" > <span class="ps-shown-by-js" ><i class="material-icons checkbox-checked">&#xE5CA;</i></span> </span> <a href="https://playstore.ma/101-xbox-one?q=Cat%C3%A9gories-Xbox+Live+%26+DLC" class="_gray-darker search-link js-search-link" rel="nofollow" > Xbox Live &amp; DLC <span class="magnitude">(8)</span> </a> </label> </li> </ul> </section> <section class="facet"> <h1 class="h6 facet-title hidden-sm-down">Disponibilité</h1> <div class="title hidden-md-up" data-target="#facet_32947" data-toggle="collapse"> <h1 class="h6 facet-title">Disponibilité</h1> <span class="pull-xs-right"> <span class="navbar-toggler collapse-icons"> <i class="material-icons add">&#xE313;</i> <i class="material-icons remove">&#xE316;</i> </span> </span> </div> <ul id="facet_32947" class="collapse"> <li> <label class="facet-label"> <span class="custom-checkbox"> <input data-search-url="https://playstore.ma/101-xbox-one?q=Disponibilit%C3%A9-Non+disponible" type="checkbox" > <span class="ps-shown-by-js" ><i class="material-icons checkbox-checked">&#xE5CA;</i></span> </span> <a href="https://playstore.ma/101-xbox-one?q=Disponibilit%C3%A9-Non+disponible" class="_gray-darker search-link js-search-link" rel="nofollow" > Non disponible <span class="magnitude">(12)</span> </a> </label> </li> <li> <label class="facet-label"> <span class="custom-checkbox"> <input data-search-url="https://playstore.ma/101-xbox-one?q=Disponibilit%C3%A9-En+stock" type="checkbox" > <span class="ps-shown-by-js" ><i class="material-icons checkbox-checked">&#xE5CA;</i></span> </span> <a href="https://playstore.ma/101-xbox-one?q=Disponibilit%C3%A9-En+stock" class="_gray-darker search-link js-search-link" rel="nofollow" > En stock <span class="magnitude">(47)</span> </a> </label> </li> </ul> </section> <section class="facet"> <h1 class="h6 facet-title hidden-sm-down">État</h1> <div class="title hidden-md-up" data-target="#facet_41914" data-toggle="collapse"> <h1 class="h6 facet-title">État</h1> <span class="pull-xs-right"> <span class="navbar-toggler collapse-icons"> <i class="material-icons add">&#xE313;</i> <i class="material-icons remove">&#xE316;</i> </span> </span> </div> <ul id="facet_41914" class="collapse"> <li> <label class="facet-label"> <span class="custom-checkbox"> <input data-search-url="https://playstore.ma/101-xbox-one?q=%C3%89tat-Nouveau" type="checkbox" > <span class="ps-shown-by-js" ><i class="material-icons checkbox-checked">&#xE5CA;</i></span> </span> <a href="https://playstore.ma/101-xbox-one?q=%C3%89tat-Nouveau" class="_gray-darker search-link js-search-link" rel="nofollow" > Nouveau <span class="magnitude">(27)</span> </a> </label> </li> <li> <label class="facet-label"> <span class="custom-checkbox"> <input data-search-url="https://playstore.ma/101-xbox-one?q=%C3%89tat-Utilis%C3%A9" type="checkbox" > <span class="ps-shown-by-js" ><i class="material-icons checkbox-checked">&#xE5CA;</i></span> </span> <a href="https://playstore.ma/101-xbox-one?q=%C3%89tat-Utilis%C3%A9" class="_gray-darker search-link js-search-link" rel="nofollow" > Utilisé <span class="magnitude">(11)</span> </a> </label> </li> <li> <label class="facet-label"> <span class="custom-checkbox"> <input data-search-url="https://playstore.ma/101-xbox-one?q=%C3%89tat-Reconditionn%C3%A9" type="checkbox" > <span class="ps-shown-by-js" ><i class="material-icons checkbox-checked">&#xE5CA;</i></span> </span> <a href="https://playstore.ma/101-xbox-one?q=%C3%89tat-Reconditionn%C3%A9" class="_gray-darker search-link js-search-link" rel="nofollow" > Reconditionné <span class="magnitude">(21)</span> </a> </label> </li> </ul> </section> <section class="facet"> <h1 class="h6 facet-title hidden-sm-down">Marque</h1> <div class="title hidden-md-up" data-target="#facet_39621" data-toggle="collapse"> <h1 class="h6 facet-title">Marque</h1> <span class="pull-xs-right"> <span class="navbar-toggler collapse-icons"> <i class="material-icons add">&#xE313;</i> <i class="material-icons remove">&#xE316;</i> </span> </span> </div> <ul id="facet_39621" class="collapse"> <li> <label class="facet-label"> <span class="custom-checkbox"> <input data-search-url="https://playstore.ma/101-xbox-one?q=Marque-Nintendo" type="checkbox" > <span class="ps-shown-by-js" ><i class="material-icons checkbox-checked">&#xE5CA;</i></span> </span> <a href="https://playstore.ma/101-xbox-one?q=Marque-Nintendo" class="_gray-darker search-link js-search-link" rel="nofollow" > Nintendo <span class="magnitude">(1)</span> </a> </label> </li> <li> <label class="facet-label"> <span class="custom-checkbox"> <input data-search-url="https://playstore.ma/101-xbox-one?q=Marque-Pc+gamer" type="checkbox" > <span class="ps-shown-by-js" ><i class="material-icons checkbox-checked">&#xE5CA;</i></span> </span> <a href="https://playstore.ma/101-xbox-one?q=Marque-Pc+gamer" class="_gray-darker search-link js-search-link" rel="nofollow" > Pc gamer <span class="magnitude">(2)</span> </a> </label> </li> <li> <label class="facet-label"> <span class="custom-checkbox"> <input data-search-url="https://playstore.ma/101-xbox-one?q=Marque-Sony" type="checkbox" > <span class="ps-shown-by-js" ><i class="material-icons checkbox-checked">&#xE5CA;</i></span> </span> <a href="https://playstore.ma/101-xbox-one?q=Marque-Sony" class="_gray-darker search-link js-search-link" rel="nofollow" > Sony <span class="magnitude">(3)</span> </a> </label> </li> <li> <label class="facet-label"> <span class="custom-checkbox"> <input data-search-url="https://playstore.ma/101-xbox-one?q=Marque-Xbox" type="checkbox" > <span class="ps-shown-by-js" ><i class="material-icons checkbox-checked">&#xE5CA;</i></span> </span> <a href="https://playstore.ma/101-xbox-one?q=Marque-Xbox" class="_gray-darker search-link js-search-link" rel="nofollow" > Xbox <span class="magnitude">(50)</span> </a> </label> </li> </ul> </section> </div> </div>', 'rendered_active_filters' => '<section id="js-active-search-filters" class="hide"> <h1 class="h6 hidden-xs-up">Filtres actifs</h1> </section>', 'js_enabled' => false, 'current_url' => 'https://playstore.ma/101-xbox-one')), 0, false)in 206c1c9e8fa584f600f19b38f5ad3deb9b5c8553_2.file.product-list.tpl.php line 81
at Block_13302089355c69dd20112057_00802373->callBlock(object(SmartyCustomTemplate))in smarty_internal_runtime_inheritance.php line 248
at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_13302089355c69dd20112057_00802373), object(SmartyCustomTemplate))in smarty_internal_runtime_inheritance.php line 184
at Smarty_Internal_Runtime_Inheritance->process(object(SmartyCustomTemplate), object(Block_13302089355c69dd20112057_00802373))in smarty_internal_runtime_inheritance.php line 156
at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyCustomTemplate), 'Block_13302089355c69dd20112057_00802373', 'product_list', 1)in 206c1c9e8fa584f600f19b38f5ad3deb9b5c8553_2.file.product-list.tpl.php line 200
at Block_21062746455c69dd200fb4e8_72873704->callBlock(object(SmartyCustomTemplate))in smarty_internal_runtime_inheritance.php line 248
at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_21062746455c69dd200fb4e8_72873704), object(SmartyCustomTemplate))in smarty_internal_runtime_inheritance.php line 184
at Smarty_Internal_Runtime_Inheritance->process(object(SmartyCustomTemplate), object(Block_21062746455c69dd200fb4e8_72873704),object(Block_16788604515c69dd201219f3_68602214))in smarty_internal_runtime_inheritance.php line 186
at Smarty_Internal_Runtime_Inheritance->process(object(SmartyCustomTemplate), object(Block_16788604515c69dd201219f3_68602214))in smarty_internal_runtime_inheritance.php line 156
at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyCustomTemplate), 'Block_16788604515c69dd201219f3_68602214', 'content', 2)in 10bda4d48b6c0f246c3280d4c10f3d18d681d7bb_2.file.layout-left-column.tpl.php line 82
at Block_3656736665c69dd20121390_19763528->callBlock(object(SmartyCustomTemplate))in smarty_internal_runtime_inheritance.php line 248
at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_3656736665c69dd20121390_19763528), object(SmartyCustomTemplate))in smarty_internal_runtime_inheritance.php line 184
at Smarty_Internal_Runtime_Inheritance->process(object(SmartyCustomTemplate), object(Block_3656736665c69dd20121390_19763528),object(Block_13528276755c69dd2013bde0_54625423))in smarty_internal_runtime_inheritance.php line 186
at Smarty_Internal_Runtime_Inheritance->process(object(SmartyCustomTemplate), object(Block_13528276755c69dd2013bde0_54625423))in smarty_internal_runtime_inheritance.php line 156
at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyCustomTemplate), 'Block_13528276755c69dd2013bde0_54625423', 'content_wrapper')in fe5ae75f225118c41d516a9597ae5ffd81aed943_2.file.layout-both-columns.tpl.php line 89
at content_5c69dd20144900_35204725(object(SmartyCustomTemplate))in smarty_template_resource_base.php line 123
at Smarty_Template_Resource_Base->getRenderedTemplateCode(object(SmartyCustomTemplate))in smarty_template_compiled.php line 114
at Smarty_Template_Compiled->render(object(SmartyCustomTemplate))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-left-column.tpl', 0, 3600, array(), 2, false, null, null)in smarty_internal_runtime_inheritance.php line 125
at Smarty_Internal_Runtime_Inheritance->endChild(object(SmartyCustomTemplate), 'layouts/layout-both-columns.tpl')in 10bda4d48b6c0f246c3280d4c10f3d18d681d7bb_2.file.layout-left-column.tpl.php line 38
at content_5c69dd20122744_83487890(object(SmartyCustomTemplate))in smarty_template_resource_base.php line 123
at Smarty_Template_Resource_Base->getRenderedTemplateCode(object(SmartyCustomTemplate))in smarty_template_compiled.php line 114
at Smarty_Template_Compiled->render(object(SmartyCustomTemplate))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-left-column.tpl', null, 'layouts/layout-left-column.tpl', 0, 3600, array(), 2, false, null, null)in smarty_internal_runtime_inheritance.php line 125
at Smarty_Internal_Runtime_Inheritance->endChild(object(SmartyCustomTemplate), 'layouts/layout-left-column.tpl')in 206c1c9e8fa584f600f19b38f5ad3deb9b5c8553_2.file.product-list.tpl.php line 35
at content_5c69dd20115dc2_66826803(object(SmartyCustomTemplate))in smarty_template_resource_base.php line 123
at Smarty_Template_Resource_Base->getRenderedTemplateCode(object(SmartyCustomTemplate))in smarty_template_compiled.php line 114
at Smarty_Template_Compiled->render(object(SmartyCustomTemplate))in smarty_internal_template.php line 216
at Smarty_Internal_Template->render()in smarty_internal_template.php line 385
at Smarty_Internal_Template->_subTemplateRender('catalog/listing/product-list.tpl', null, 'layouts/layout-left-column.tpl', 0, 3600, array(), 2, false, null, null)in smarty_internal_runtime_inheritance.php line 125
at Smarty_Internal_Runtime_Inheritance->endChild(object(SmartyCustomTemplate), 'catalog/listing/product-list.tpl')in aa88f6efb319ce896bb3020dfa06a2e356f690aa_2.file.category.tpl.php line 30
at content_5c69dd200f0752_30499482(object(SmartyCustomTemplate))in smarty_template_resource_base.php line 123
at Smarty_Template_Resource_Base->getRenderedTemplateCode(object(SmartyCustomTemplate))in smarty_template_compiled.php line 114
at Smarty_Template_Compiled->render(object(SmartyCustomTemplate))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(SmartyCustomTemplate), null, 'layouts/layout-left-column.tpl', null, 0)in smarty_internal_templatebase.php line 116
at Smarty_Internal_TemplateBase->fetch('catalog/listing/category.tpl', null, 'layouts/layout-left-column.tpl', null, false, true, false)in SmartyCustom.php line 112
at SmartyCustomCore->fetch('catalog/listing/category.tpl', null, 'layouts/layout-left-column.tpl')in FrontController.php line 682
at FrontControllerCore->smartyOutputContent('catalog/listing/category.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
Link to comment
Share on other sites

Do you have install other module? Now you can disable non PrestaShop modules (see the attachment)

And then you can check your site.

Or you can try enable the Classic theme and then you can check your site. If the Classis theme is working, this is a problem by your theme. You need contact to theme provider.

images.png

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