Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in /home/redbox1/domains/redbox.pl/public_html/modules/dbproductvariants/dbproductvariants.php:79 Stack trace: #0 [internal function]: DbProductVariants->{closure}(Array) #1 /home/redbox1/domains/redbox.pl/public_html/modules/dbproductvariants/dbproductvariants.php(80): array_map(Object(Closure), Array) #2 /home/redbox1/domains/redbox.pl/public_html/classes/Hook.php(1043): DbProductVariants->hookDisplayProductVariants(Array) #3 /home/redbox1/domains/redbox.pl/public_html/classes/Hook.php(418): HookCore::coreCallHook(Object(DbProductVariants), 'hookDisplayProd...', Array) #4 /home/redbox1/domains/redbox.pl/public_html/classes/Hook.php(981): HookCore::callHookOn(Object(DbProductVariants), 'displayProductV...', Array) #5 /home/redbox1/domains/redbox.pl/public_html/config/smarty.config.inc.php(198): HookCore::exec('displayProductV...', Array, NULL) #6 /home/redbox1/domains/redbox.pl/public_html/classes/Smarty/SmartyLazyRegister.php(81): smartyHook(Array, Object(SmartyDevTemplate)) #7 /home/redbox1/domains/redbox.pl/public_html/var/cache/dev/smarty/compile/redbox/b6/a4/94/b6a494d8bfdb7af4802cb32962e6a0a4a532bf12_2.file.product-nocart.tpl.cache.php(279): SmartyLazyRegister->__call('smartyHook', Array) #8 /home/redbox1/domains/redbox.pl/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(248): Block_110828980165f8bf062dbb02_59276530->callBlock(Object(SmartyDevTemplate)) #9 /home/redbox1/domains/redbox.pl/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(184): Smarty_Internal_Runtime_Inheritance->callBlock(Object(Block_110828980165f8bf062dbb02_59276530), Object(SmartyDevTemplate)) #10 /home/redbox1/domains/redbox.pl/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(156): Smarty_Internal_Runtime_Inheritance->process(Object(SmartyDevTemplate), Object(Block_110828980165f8bf062dbb02_59276530)) #11 /home/redbox1/domains/redbox.pl/public_html/var/cache/dev/smarty/compile/redbox/b6/a4/94/b6a494d8bfdb7af4802cb32962e6a0a4a532bf12_2.file.product-nocart.tpl.cache.php(29): Smarty_Internal_Runtime_Inheritance->instanceBlock(Object(SmartyDevTemplate), 'Block_110828980...', 'product_miniatu...') #12 /home/redbox1/domains/redbox.pl/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_65f8bf062f0418_31049593(Object(SmartyDevTemplate)) #13 /home/redbox1/domains/redbox.pl/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode(Object(SmartyDevTemplate)) #14 /home/redbox1/domains/redbox.pl/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(384): Smarty_Template_Compiled->render(Object(SmartyDevTemplate)) #15 /home/redbox1/domains/redbox.pl/public_html/var/cache/dev/smarty/compile/redbox/39/d3/1a/39d31a599d73c039735add7bd5dc7a2a3a72c0ba_2.module.ps_categoryproductsviewstemplateshookps_categoryproducts.tpl.cache.php(56): Smarty_Internal_Template->_subTemplateRender('file:catalog/_p...', 'ps_categoryprod...', 'redbox', 9999, 31536000, Array, 0, true) #16 /home/redbox1/domains/redbox.pl/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_65f8bf062d7d56_64936965(Object(SmartyDevTemplate)) #17 /home/redbox1/domains/redbox.pl/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode(Object(SmartyDevTemplate)) #18 /home/redbox1/domains/redbox.pl/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_updatecache.php(38): Smarty_Template_Compiled->render(Object(SmartyDevTemplate)) #19 /home/redbox1/domains/redbox.pl/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_template_cached.php(143): Smarty_Internal_Runtime_UpdateCache->updateCache(Object(Smarty_Template_Cached), Object(SmartyDevTemplate), false) #20 /home/redbox1/domains/redbox.pl/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(212): Smarty_Template_Cached->render(Object(SmartyDevTemplate), false) #21 /home/redbox1/domains/redbox.pl/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(238): Smarty_Internal_Template->render(false, 0) #22 /home/redbox1/domains/redbox.pl/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(116): Smarty_Internal_TemplateBase->_execute(Object(SmartyDevTemplate), NULL, NULL, NULL, 0) #23 /home/redbox1/domains/redbox.pl/public_html/classes/Smarty/SmartyDevTemplate.php(55): Smarty_Internal_TemplateBase->fetch(NULL, NULL, NULL, NULL) #24 /home/redbox1/domains/redbox.pl/public_html/classes/module/Module.php(2273): SmartyDevTemplateCore->fetch() #25 /home/redbox1/domains/redbox.pl/public_html/modules/ps_categoryproducts/ps_categoryproducts.php(256): ModuleCore->fetch('module:ps_categ...', 'ps_categoryprod...') #26 /home/redbox1/domains/redbox.pl/public_html/classes/Hook.php(1054): Ps_Categoryproducts->renderWidget('displayFooterPr...', Array) #27 /home/redbox1/domains/redbox.pl/public_html/classes/Hook.php(1000): HookCore::coreRenderWidget(Object(Ps_Categoryproducts), 'displayFooterPr...', Array) #28 /home/redbox1/domains/redbox.pl/public_html/config/smarty.config.inc.php(198): HookCore::exec('displayFooterPr...', Array, NULL) #29 /home/redbox1/domains/redbox.pl/public_html/classes/Smarty/SmartyLazyRegister.php(81): smartyHook(Array, Object(SmartyDevTemplate)) #30 /home/redbox1/domains/redbox.pl/public_html/var/cache/dev/smarty/compile/redboxlayouts_layout_full_width_tpl/35/2e/99/352e9965977a8893cafb130fb19bbb5d5af762e5_2.file.product.tpl.php(666): SmartyLazyRegister->__call('smartyHook', Array) #31 /home/redbox1/domains/redbox.pl/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(248): Block_165732783165f8bf05d82510_04051535->callBlock(Object(SmartyDevTemplate)) #32 /home/redbox1/domains/redbox.pl/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(184): Smarty_Internal_Runtime_Inheritance->callBlock(Object(Block_165732783165f8bf05d82510_04051535), Object(SmartyDevTemplate)) #33 /home/redbox1/domains/redbox.pl/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(156): Smarty_Internal_Runtime_Inheritance->process(Object(SmartyDevTemplate), Object(Block_165732783165f8bf05d82510_04051535)) #34 /home/redbox1/domains/redbox.pl/public_html/var/cache/dev/smarty/compile/redboxlayouts_layout_full_width_tpl/35/2e/99/352e9965977a8893cafb130fb19bbb5d5af762e5_2.file.product.tpl.php(906): Smarty_Internal_Runtime_Inheritance->instanceBlock(Object(SmartyDevTemplate), 'Block_165732783...', 'product_footer', 0) #35 /home/redbox1/domains/redbox.pl/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(248): Block_5163156965f8bf05d63a38_93520209->callBlock(Object(SmartyDevTemplate)) #36 /home/redbox1/domains/redbox.pl/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(184): Smarty_Internal_Runtime_Inheritance->callBlock(Object(Block_5163156965f8bf05d63a38_93520209), Object(SmartyDevTemplate)) #37 /home/redbox1/domains/redbox.pl/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(186): Smarty_Internal_Runtime_Inheritance->process(Object(SmartyDevTemplate), Object(Block_5163156965f8bf05d63a38_93520209), Object(Block_170744252665f8befba2d763_26947462)) #38 /home/redbox1/domains/redbox.pl/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(156): Smarty_Internal_Runtime_Inheritance->process(Object(SmartyDevTemplate), Object(Block_170744252665f8befba2d763_26947462)) #39 /home/redbox1/domains/redbox.pl/public_html/var/cache/dev/smarty/compile/redboxlayouts_layout_full_width_tpl/ee/7b/2c/ee7b2c5b145a350a4db9d504139bf85689cf3106_2.file.layout-full-width.tpl.php(101): Smarty_Internal_Runtime_Inheritance->instanceBlock(Object(SmartyDevTemplate), 'Block_170744252...', 'content', 1) #40 /home/redbox1/domains/redbox.pl/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(248): Block_182453529265f8befba2ccc3_47004445->callBlock(Object(SmartyDevTemplate)) #41 /home/redbox1/domains/redbox.pl/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(184): Smarty_Internal_Runtime_Inheritance->callBlock(Object(Block_182453529265f8befba2ccc3_47004445), Object(SmartyDevTemplate)) #42 /home/redbox1/domains/redbox.pl/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(186): Smarty_Internal_Runtime_Inheritance->process(Object(SmartyDevTemplate), Object(Block_182453529265f8befba2ccc3_47004445), Object(Block_116970980665f8befba3b0f1_14320618)) #43 /home/redbox1/domains/redbox.pl/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(156): Smarty_Internal_Runtime_Inheritance->process(Object(SmartyDevTemplate), Object(Block_116970980665f8befba3b0f1_14320618)) #44 /home/redbox1/domains/redbox.pl/public_html/var/cache/dev/smarty/compile/redboxlayouts_layout_full_width_tpl/82/f2/57/82f257a3b872570b20f7c3a3c6a6f840d443cdd5_2.file.layout-both-columns.tpl.php(96): Smarty_Internal_Runtime_Inheritance->instanceBlock(Object(SmartyDevTemplate), 'Block_116970980...', 'content_wrapper') #45 /home/redbox1/domains/redbox.pl/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_65f8befba3fc53_17484107(Object(SmartyDevTemplate)) #46 /home/redbox1/domains/redbox.pl/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode(Object(SmartyDevTemplate)) #47 /home/redbox1/domains/redbox.pl/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(217): Smarty_Template_Compiled->render(Object(SmartyDevTemplate)) #48 /home/redbox1/domains/redbox.pl/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(386): Smarty_Internal_Template->render() #49 /home/redbox1/domains/redbox.pl/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(116): Smarty_Internal_Template->_subTemplateRender('layouts/layout-...', NULL, 'redboxlayouts/l...', 0, 3600, Array, 2, false, NULL, NULL) #50 /home/redbox1/domains/redbox.pl/public_html/var/cache/dev/smarty/compile/redboxlayouts_layout_full_width_tpl/ee/7b/2c/ee7b2c5b145a350a4db9d504139bf85689cf3106_2.file.layout-full-width.tpl.php(42): Smarty_Internal_Runtime_Inheritance->endChild(Object(SmartyDevTemplate), 'layouts/layout-...') #51 /home/redbox1/domains/redbox.pl/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_65f8befba2e150_24703881(Object(SmartyDevTemplate)) #52 /home/redbox1/domains/redbox.pl/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode(Object(SmartyDevTemplate)) #53 /home/redbox1/domains/redbox.pl/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(217): Smarty_Template_Compiled->render(Object(SmartyDevTemplate)) #54 /home/redbox1/domains/redbox.pl/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(386): Smarty_Internal_Template->render() #55 /home/redbox1/domains/redbox.pl/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(116): Smarty_Internal_Template->_subTemplateRender('layouts/layout-...', NULL, 'redboxlayouts/l...', 0, 3600, Array, 2, false, NULL, NULL) #56 /home/redbox1/domains/redbox.pl/public_html/var/cache/dev/smarty/compile/redboxlayouts_layout_full_width_tpl/35/2e/99/352e9965977a8893cafb130fb19bbb5d5af762e5_2.file.product.tpl.php(56): Smarty_Internal_Runtime_Inheritance->endChild(Object(SmartyDevTemplate), 'layouts/layout-...') #57 /home/redbox1/domains/redbox.pl/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_65f8bf05d84271_27327321(Object(SmartyDevTemplate)) #58 /home/redbox1/domains/redbox.pl/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode(Object(SmartyDevTemplate)) #59 /home/redbox1/domains/redbox.pl/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(217): Smarty_Template_Compiled->render(Object(SmartyDevTemplate)) #60 /home/redbox1/domains/redbox.pl/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(238): Smarty_Internal_Template->render(false, 0) #61 /home/redbox1/domains/redbox.pl/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(116): Smarty_Internal_TemplateBase->_execute(Object(SmartyDevTemplate), NULL, 'redboxlayouts/l...', NULL, 0) #62 /home/redbox1/domains/redbox.pl/public_html/classes/Smarty/SmartyDev.php(40): Smarty_Internal_TemplateBase->fetch('catalog/product...', NULL, 'redboxlayouts/l...', NULL) #63 /home/redbox1/domains/redbox.pl/public_html/classes/controller/FrontController.php(754): SmartyDev->fetch('catalog/product...', NULL, 'redboxlayouts/l...') #64 /home/redbox1/domains/redbox.pl/public_html/classes/controller/FrontController.php(736): FrontControllerCore->smartyOutputContent('catalog/product...') #65 /home/redbox1/domains/redbox.pl/public_html/classes/controller/Controller.php(339): FrontControllerCore->display() #66 /home/redbox1/domains/redbox.pl/public_html/classes/Dispatcher.php(510): ControllerCore->run() #67 /home/redbox1/domains/redbox.pl/public_html/index.php(28): DispatcherCore->dispatch() #68 {main} thrown in /home/redbox1/domains/redbox.pl/public_html/modules/dbproductvariants/dbproductvariants.php on line 79