Jump to content

ContextErrorException Notice: Trying to access array offset on value of type bool in xxxxx_2.file.product-listgrid.tpl.php line 70


Recommended Posts

Bonjour,

Je rencontre un problème lorsque je clique sur une catégorie parent pour afficher les produits . Je n'ai pas de problème quand je clique directement sur une sous-catégorie. Cette erreur concerne aussi bien les catégories sans ou avec sous-catégories.

Pour info :

Version PS : 1.7.8.5

Version PHP : 7.4.29

Version MySql 10.5.15-MariaDB-cll-lve

Voici la page d'erreur qui s'affiche quand je clique sur la catégorie "orthopedique" par exemple

(1/1) ContextErrorException
Notice: Trying to access array offset on value of type bool

in 34632b6ae6b6e8074865358c91d62a0132b9a8dc_2.file.product-listgrid.tpl.php line 70
at Block_14408801476276c49fdcc445_62582198->callBlock(object(SmartyDevTemplate))
in smarty_internal_runtime_inheritance.php line 248
at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_14408801476276c49fdcc445_62582198), object(SmartyDevTemplate))
in smarty_internal_runtime_inheritance.php line 184
at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_14408801476276c49fdcc445_62582198))
in smarty_internal_runtime_inheritance.php line 156
at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_14408801476276c49fdcc445_62582198', 'product_thumbnail', 14)
in 34632b6ae6b6e8074865358c91d62a0132b9a8dc_2.file.product-listgrid.tpl.php line 264
at Block_19024904956276c49fdcb8b5_23026275->callBlock(object(SmartyDevTemplate))
in smarty_internal_runtime_inheritance.php line 248
at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_19024904956276c49fdcb8b5_23026275), object(SmartyDevTemplate))
in smarty_internal_runtime_inheritance.php line 184
at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_19024904956276c49fdcb8b5_23026275))
in smarty_internal_runtime_inheritance.php line 156
at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_19024904956276c49fdcb8b5_23026275', 'product_miniature_item')
in 34632b6ae6b6e8074865358c91d62a0132b9a8dc_2.file.product-listgrid.tpl.php line 29
at content_6276c49fddb800_98270224(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 383
at Smarty_Internal_Template->_subTemplateRender('file:catalog/_partials/miniatures/product-listgrid.tpl', null, 'meditielayouts/layout-left-column.tpl', 0, 3600, array('product' => object(ProductListingLazyArray)), 0, true)
in ceeb7819d0be028a1a92aefb8c06d509bd23cf1f_2.file.products.tpl.php line 68
at Block_18357565356276c49fdc7959_54302583->callBlock(object(SmartyDevTemplate))
in smarty_internal_runtime_inheritance.php line 248
at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_18357565356276c49fdc7959_54302583), object(SmartyDevTemplate))
in smarty_internal_runtime_inheritance.php line 184
at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_18357565356276c49fdc7959_54302583))
in smarty_internal_runtime_inheritance.php line 156
at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_18357565356276c49fdc7959_54302583', 'product_miniature')
in ceeb7819d0be028a1a92aefb8c06d509bd23cf1f_2.file.products.tpl.php line 39
at content_6276c49fdc90a7_90605016(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:catalog/_partials/products.tpl', null, 'meditielayouts/layout-left-column.tpl', 0, 3600, array('listing' => array('result' => object(ProductSearchResult), 'label' => 'Catégorie : Orthopédique', '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)), 'sort_orders' => array(array('entity' => 'product', 'field' => 'sales', 'direction' => 'desc', 'label' => 'Meilleures ventes', 'urlParameter' => 'product.sales.desc', 'current' => false, 'url' => 'https://parapharmbestlife.com/10-orthopedique?order=product.sales.desc'), array('entity' => 'product', 'field' => 'position', 'direction' => 'asc', 'label' => 'Pertinence', 'urlParameter' => 'product.position.asc', 'current' => true, 'url' => 'https://parapharmbestlife.com/10-orthopedique?order=product.position.asc'), array('entity' => 'product', 'field' => 'name', 'direction' => 'asc', 'label' => 'Nom, A à Z', 'urlParameter' => 'product.name.asc', 'current' => false, 'url' => 'https://parapharmbestlife.com/10-orthopedique?order=product.name.asc'), array('entity' => 'product', 'field' => 'name', 'direction' => 'desc', 'label' => 'Nom, Z à A', 'urlParameter' => 'product.name.desc', 'current' => false, 'url' => 'https://parapharmbestlife.com/10-orthopedique?order=product.name.desc'), array('entity' => 'product', 'field' => 'price', 'direction' => 'asc', 'label' => 'Prix, croissant', 'urlParameter' => 'product.price.asc', 'current' => false, 'url' => 'https://parapharmbestlife.com/10-orthopedique?order=product.price.asc'), array('entity' => 'product', 'field' => 'price', 'direction' => 'desc', 'label' => 'Prix, décroissant', 'urlParameter' => 'product.price.desc', 'current' => false, 'url' => 'https://parapharmbestlife.com/10-orthopedique?order=product.price.desc')), 'sort_selected' => 'Pertinence', 'pagination' => array('total_items' => 48, 'items_shown_from' => 1, 'items_shown_to' => 12, 'current_page' => 1, 'pages_count' => 4, 'pages' => array(array('type' => 'page', 'page' => 1, 'clickable' => false, 'current' => true, 'url' => 'https://parapharmbestlife.com/10-orthopedique'), array('type' => 'page', 'page' => 2, 'clickable' => true, 'current' => false, 'url' => 'https://parapharmbestlife.com/10-orthopedique?page=2'), array('type' => 'page', 'page' => 3, 'clickable' => true, 'current' => false, 'url' => 'https://parapharmbestlife.com/10-orthopedique?page=3'), array('type' => 'page', 'page' => 4, 'clickable' => true, 'current' => false, 'url' => 'https://parapharmbestlife.com/10-orthopedique?page=4'), array('type' => 'next', 'page' => 2, 'clickable' => true, 'current' => false, 'url' => 'https://parapharmbestlife.com/10-orthopedique?page=2')), 'should_be_displayed' => true), 'rendered_facets' => '', 'rendered_active_filters' => '<!-- begin module:ps_facetedsearch/views/templates/front/catalog/active-filters.tpl --><!-- begin /home/u647601792/domains/parapharmbestlife.com/public_html/modules/ps_facetedsearch/views/templates/front/catalog/active-filters.tpl --><section id="js-active-search-filters" class="hide"> <p class="h6 hidden-xs-up">Filtres actifs</p> </section><!-- end /home/u647601792/domains/parapharmbestlife.com/public_html/modules/ps_facetedsearch/views/templates/front/catalog/active-filters.tpl --><!-- end module:ps_facetedsearch/views/templates/front/catalog/active-filters.tpl -->', 'js_enabled' => false, 'current_url' => 'https://parapharmbestlife.com/10-orthopedique'), 'productClass' => 'col-xs-6 col-xl-4'), 0, false)
in 123b21db37d1dcd77081eae09451e31f2b68f326_2.file.product-list.tpl.php line 120
at Block_7671392206276c49fc6bd93_00241149->callBlock(object(SmartyDevTemplate))
in smarty_internal_runtime_inheritance.php line 248
at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_7671392206276c49fc6bd93_00241149), object(SmartyDevTemplate))
in smarty_internal_runtime_inheritance.php line 184
at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_7671392206276c49fc6bd93_00241149))
in smarty_internal_runtime_inheritance.php line 156
at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_7671392206276c49fc6bd93_00241149', 'product_list', 1)
in 123b21db37d1dcd77081eae09451e31f2b68f326_2.file.product-list.tpl.php line 203
at Block_21360614746276c49fc67265_54657182->callBlock(object(SmartyDevTemplate))
in smarty_internal_runtime_inheritance.php line 248
at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_21360614746276c49fc67265_54657182), object(SmartyDevTemplate))
in smarty_internal_runtime_inheritance.php line 184
at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_21360614746276c49fc67265_54657182), object(Block_16600700256276c49fc74bb6_70200239))
in smarty_internal_runtime_inheritance.php line 186
at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_16600700256276c49fc74bb6_70200239))
in smarty_internal_runtime_inheritance.php line 156
at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_16600700256276c49fc74bb6_70200239', 'content', 2)
in 6d83d0d68732856d9b95fb71df5417595d8cf46d_2.file.layout-left-column.tpl.php line 84
at Block_14472901376276c49fc74443_93084012->callBlock(object(SmartyDevTemplate))
in smarty_internal_runtime_inheritance.php line 248
at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_14472901376276c49fc74443_93084012), object(SmartyDevTemplate))
in smarty_internal_runtime_inheritance.php line 184
at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_14472901376276c49fc74443_93084012), object(Block_1913917266276c49fc7eda2_90208078))
in smarty_internal_runtime_inheritance.php line 186
at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_1913917266276c49fc7eda2_90208078))
in smarty_internal_runtime_inheritance.php line 156
at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_1913917266276c49fc7eda2_90208078', 'content_wrapper')
in 86ade91fd030d1e3f38b7c3ca8b9c3ac8446b055_2.file.layout-both-columns.tpl.php line 95
at content_6276c49fc83f40_60912823(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()

Merci d'avance

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...