gfkk Posted September 10, 2022 Share Posted September 10, 2022 (edited) Hallo zusammen, ich bräuchte Mal wieder eure Unterstützung. Prestashop 1.7.8.7 mit PHP-Version 7.3.33 Leider habe ich Probleme mit manchen Kategorien und zwar beim anklicken bekommen ich folgende Fehlermeldung: (1/1) ContextErrorException Warning: Invalid argument supplied for foreach() in ProductLazyArray.php line 636 at ProductLazyArray->shouldShowOutOfStockLabel(object(ProductPresentationSettings), object(Product))in ProductLazyArray.php line 495 at ProductLazyArray->getFlags()in AbstractLazyArray.php line 257 at AbstractLazyArray->offsetGet('flags')in 896ad2fbdecbfc937256c6b19c7d851fbd191b46_2.file.product-flags.tpl.php line 44 at Block_362146900631c2cd6a64af6_09751740->callBlock(object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 248 at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_362146900631c2cd6a64af6_09751740), object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 184 at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_362146900631c2cd6a64af6_09751740))in smarty_internal_runtime_inheritance.php line 156 at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_362146900631c2cd6a64af6_09751740', 'product_flags')in 896ad2fbdecbfc937256c6b19c7d851fbd191b46_2.file.product-flags.tpl.php line 26 at content_631c2cd6a67094_48374093(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/product-flags.tpl', null, 'classiclayouts/layout-left-column.tpl', 0, 3600, array(), 0, false)in b81f1b8c24a444911756be73b99550a61ce6e5e3_2.file.product.tpl.php line 267 at Block_1900556073631c2cd6a3ac14_21124369->callBlock(object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 248 at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_1900556073631c2cd6a3ac14_21124369), object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 184 at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_1900556073631c2cd6a3ac14_21124369))in smarty_internal_runtime_inheritance.php line 156 at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_1900556073631c2cd6a3ac14_21124369', 'product_miniature_item')in b81f1b8c24a444911756be73b99550a61ce6e5e3_2.file.product.tpl.php line 28 at content_631c2cd6a50d03_17752132(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.tpl', null, 'classiclayouts/layout-left-column.tpl', 0, 3600, array('product' => object(ProductListingLazyArray), 'position' => 6, 'productClasses' => 'col-xs-6 col-xl-4'), 0, true)in 473423b02a1a8c8825640855dcf6874f39f80a60_2.file.productlist.tpl.php line 39 at content_631c2cd6a36206_72939011(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/productlist.tpl', null, 'classiclayouts/layout-left-column.tpl', 0, 3600, array('products' => array(object(ProductListingLazyArray), object(ProductListingLazyArray), object(ProductListingLazyArray), object(ProductListingLazyArray), object(ProductListingLazyArray), object(ProductListingLazyArray), object(ProductListingLazyArray), object(ProductListingLazyArray)), 'cssClass' => 'row'), 0, false)in 9905d5686c4d45acb1f59e5ec423af277f7c4dc5_2.file.products.tpl.php line 30 at content_631c2cd6a2f375_65832295(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, 'classiclayouts/layout-left-column.tpl', 0, 3600, array('listing' => array('result' => object(ProductSearchResult), 'label' => 'Kategorie: Einteiler', 'products' => array(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' => 'Relevanz', 'urlParameter' => 'product.position.asc', 'current' => true, 'url' => 'https://danlove-dessous.de/20-susa-einteiler?order=product.position.asc'), array('entity' => 'product', 'field' => 'name', 'direction' => 'asc', 'label' => 'Name (A bis Z)', 'urlParameter' => 'product.name.asc', 'current' => false, 'url' => 'https://danlove-dessous.de/20-susa-einteiler?order=product.name.asc'), array('entity' => 'product', 'field' => 'name', 'direction' => 'desc', 'label' => 'Name (Z bis A)', 'urlParameter' => 'product.name.desc', 'current' => false, 'url' => 'https://danlove-dessous.de/20-susa-einteiler?order=product.name.desc'), array('entity' => 'product', 'field' => 'price', 'direction' => 'asc', 'label' => 'Preis (aufsteigend)', 'urlParameter' => 'product.price.asc', 'current' => false, 'url' => 'https://danlove-dessous.de/20-susa-einteiler?order=product.price.asc'), array('entity' => 'product', 'field' => 'price', 'direction' => 'desc', 'label' => 'Preis (absteigend)', 'urlParameter' => 'product.price.desc', 'current' => false, 'url' => 'https://danlove-dessous.de/20-susa-einteiler?order=product.price.desc')), 'sort_selected' => 'Relevanz', 'pagination' => array('total_items' => 8, 'items_shown_from' => 1, 'items_shown_to' => 8, 'current_page' => 1, 'pages_count' => 1, 'pages' => array(array('type' => 'page', 'page' => 1, 'clickable' => false, 'current' => true, 'url' => 'https://danlove-dessous.de/20-susa-einteiler')), 'should_be_displayed' => false), 'rendered_facets' => '', 'rendered_active_filters' => '', 'js_enabled' => false, 'current_url' => 'https://danlove-dessous.de/20-susa-einteiler'), 'productClass' => 'col-xs-6 col-xl-4'), 0, false)in e3c2cc2d92b631ce527efa3dbb634888dc86aa2b_2.file.product-list.tpl.php line 120 at Block_1453759039631c2cd6925d07_36799306->callBlock(object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 248 at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_1453759039631c2cd6925d07_36799306), object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 184 at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_1453759039631c2cd6925d07_36799306))in smarty_internal_runtime_inheritance.php line 156 at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_1453759039631c2cd6925d07_36799306', 'product_list', 1)in e3c2cc2d92b631ce527efa3dbb634888dc86aa2b_2.file.product-list.tpl.php line 203 at Block_1816590799631c2cd6917cb8_82235480->callBlock(object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 248 at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_1816590799631c2cd6917cb8_82235480), object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 184 at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_1816590799631c2cd6917cb8_82235480), object(Block_818676514631c2cd69313f5_62123666))in smarty_internal_runtime_inheritance.php line 186 at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_818676514631c2cd69313f5_62123666))in smarty_internal_runtime_inheritance.php line 156 at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_818676514631c2cd69313f5_62123666', 'content', 2)in 8b18a96994bb39fb3de67c9a6675d2c432a94d83_2.file.layout-left-column.tpl.php line 84 at Block_900629568631c2cd6930ab0_82730920->callBlock(object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 248 at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_900629568631c2cd6930ab0_82730920), object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 184 at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_900629568631c2cd6930ab0_82730920), object(Block_1230716387631c2cd693cb28_21037355))in smarty_internal_runtime_inheritance.php line 186 at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_1230716387631c2cd693cb28_21037355))in smarty_internal_runtime_inheritance.php line 156 at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_1230716387631c2cd693cb28_21037355', 'content_wrapper')in 5f695266c41ecd440818c49ea29bef5414fd9a31_2.file.layout-both-columns.tpl.php line 92 at content_631c2cd69425f1_83887984(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, 'classiclayouts/layout-left-column.tpl', 0, 3600, array(), 2, false, null, null)in smarty_internal_runtime_inheritance.php line 116 at Smarty_Internal_Runtime_Inheritance->endChild(object(SmartyDevTemplate), 'layouts/layout-both-columns.tpl')in 8b18a96994bb39fb3de67c9a6675d2c432a94d83_2.file.layout-left-column.tpl.php line 38 at content_631c2cd69320c3_18830997(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-left-column.tpl', null, 'classiclayouts/layout-left-column.tpl', 0, 3600, array(), 2, false, null, null)in smarty_internal_runtime_inheritance.php line 116 at Smarty_Internal_Runtime_Inheritance->endChild(object(SmartyDevTemplate), 'layouts/layout-left-column.tpl')in e3c2cc2d92b631ce527efa3dbb634888dc86aa2b_2.file.product-list.tpl.php line 44 at content_631c2cd692b246_86550058(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('catalog/listing/product-list.tpl', null, 'classiclayouts/layout-left-column.tpl', 0, 3600, array(), 2, false, null, null)in smarty_internal_runtime_inheritance.php line 116 at Smarty_Internal_Runtime_Inheritance->endChild(object(SmartyDevTemplate), 'catalog/listing/product-list.tpl')in 91fcec2cf41eb8b9a5ee1c8a2b0b710f3cf31ef8_2.file.category.tpl.php line 34 at content_631c2cd690f1a1_92771938(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, 'classiclayouts/layout-left-column.tpl', null, 0)in smarty_internal_templatebase.php line 116 at Smarty_Internal_TemplateBase->fetch('catalog/listing/category.tpl', null, 'classiclayouts/layout-left-column.tpl', null, false, true, false)in SmartyDev.php line 40 at SmartyDev->fetch('catalog/listing/category.tpl', null, 'classiclayouts/layout-left-column.tpl')in FrontController.php line 727 at FrontControllerCore->smartyOutputContent('catalog/listing/category.tpl')in FrontController.php line 709 at FrontControllerCore->display()in Controller.php line 326 at ControllerCore->run()in Dispatcher.php line 518 at DispatcherCore->dispatch()in index.php line 28 Edited September 10, 2022 by gfkk (see edit history) Link to comment Share on other sites More sharing options...
gfkk Posted September 10, 2022 Author Share Posted September 10, 2022 Ich habe versucht eine neue Kategorie zu erstellen, auch das geht leider nicht. Sie wird zwar erstellt und angezeigt, beim Anklicken 1/1) ContextErrorException Notice: Undefined variable: category in CategoryController.php line 250 at CategoryControllerCore->getBreadcrumbLinks()in FrontController.php line 1736 at FrontControllerCore->getBreadcrumb()in FrontController.php line 533 at FrontControllerCore->assignGeneralPurposeVariables()in FrontController.php line 590 at FrontControllerCore->initContent()in CategoryController.php line 137 at CategoryControllerCore->initContent()in Controller.php line 306 at ControllerCore->run()in Dispatcher.php line 518 at DispatcherCore->dispatch()in index.php line 28 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