Customer can't add images to the products for shopping.
Site: liekieskadokus.nl
prestashop version 8.1.5
Example: here
Logs:
Fatal error: Uncaught TypeError: PrestaShop\Module\ProductComment\Repository\ProductCommentCriterionRepository::getByProduct(): Argument #1 ($idProduct) must be of type int, null given, called in /var/www/vhosts/liekieskadokus.nl/httpdocs/modules/productcomments/productcomments.php on line 1023 and defined in /var/www/vhosts/liekieskadokus.nl/httpdocs/modules/productcomments/src/Repository/ProductCommentCriterionRepository.php:238 Stack trace: #0 /var/www/vhosts/liekieskadokus.nl/httpdocs/modules/productcomments/productcomments.php(1023): PrestaShop\Module\ProductComment\Repository\ProductCommentCriterionRepository->getByProduct() #1 /var/www/vhosts/liekieskadokus.nl/httpdocs/modules/productcomments/productcomments.php(934): ProductComments->renderProductCommentModal() #2 /var/www/vhosts/liekieskadokus.nl/httpdocs/classes/Hook.php(1043): ProductComments->hookDisplayFooterProduct() #3 /var/www/vhosts/liekieskadokus.nl/httpdocs/tools/profiling/Hook.php(35): HookCore::coreCallHook() #4 /var/www/vhosts/liekieskadokus.nl/httpdocs/classes/Hook.php(418): Hook::coreCallHook() #5 /var/www/vhosts/liekieskadokus.nl/httpdocs/classes/Hook.php(981): HookCore::callHookOn() #6 /var/www/vhosts/liekieskadokus.nl/httpdocs/config/smarty.config.inc.php(198): HookCore::exec() #7 /var/www/vhosts/liekieskadokus.nl/httpdocs/classes/Smarty/SmartyLazyRegister.php(81): smartyHook() #8 /var/www/vhosts/liekieskadokus.nl/httpdocs/var/cache/dev/smarty/compile/classiclayouts_layout_full_width_tpl/fc/9a/05/fc9a05ff519b63c7c02517e3c6035f80fd709dc0_2.file.product.tpl.php(616): SmartyLazyRegister->__call() #9 /var/www/vhosts/liekieskadokus.nl/httpdocs/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(248): Block_1080647436662ec91050da86_23917937->callBlock() #10 /var/www/vhosts/liekieskadokus.nl/httpdocs/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(184): Smarty_Internal_Runtime_Inheritance->callBlock() #11 /var/www/vhosts/liekieskadokus.nl/httpdocs/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(156): Smarty_Internal_Runtime_Inheritance->process() #12 /var/www/vhosts/liekieskadokus.nl/httpdocs/var/cache/dev/smarty/compile/classiclayouts_layout_full_width_tpl/fc/9a/05/fc9a05ff519b63c7c02517e3c6035f80fd709dc0_2.file.product.tpl.php(844): Smarty_Internal_Runtime_Inheritance->instanceBlock() #13 /var/www/vhosts/liekieskadokus.nl/httpdocs/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(248): Block_987397804662ec9104ef651_73429324->callBlock() #14 /var/www/vhosts/liekieskadokus.nl/httpdocs/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(184): Smarty_Internal_Runtime_Inheritance->callBlock() #15 /var/www/vhosts/liekieskadokus.nl/httpdocs/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(186): Smarty_Internal_Runtime_Inheritance->process() #16 /var/www/vhosts/liekieskadokus.nl/httpdocs/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(156): Smarty_Internal_Runtime_Inheritance->process() #17 /var/www/vhosts/liekieskadokus.nl/httpdocs/var/cache/dev/smarty/compile/classiclayouts_layout_full_width_tpl/6d/af/49/6daf499e72b0b70ff9cc5a951a5894312ebd7981_2.file.layout-full-width.tpl.php(101): Smarty_Internal_Runtime_Inheritance->instanceBlock() #18 /var/www/vhosts/liekieskadokus.nl/httpdocs/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(248): Block_1637551608662ec91051b8d2_86586305->callBlock() #19 /var/www/vhosts/liekieskadokus.nl/httpdocs/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(184): Smarty_Internal_Runtime_Inheritance->callBlock() #20 /var/www/vhosts/liekieskadokus.nl/httpdocs/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(186): Smarty_Internal_Runtime_Inheritance->process() #21 /var/www/vhosts/liekieskadokus.nl/httpdocs/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(156): Smarty_Internal_Runtime_Inheritance->process() #22 /var/www/vhosts/liekieskadokus.nl/httpdocs/var/cache/dev/smarty/compile/classiclayouts_layout_full_width_tpl/12/49/7d/12497d7112fbcb096c6efe53c1cc152c843411da_2.file.layout-both-columns.tpl.php(94): Smarty_Internal_Runtime_Inheritance->instanceBlock() #23 /var/www/vhosts/liekieskadokus.nl/httpdocs/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_662ec91052d8d3_88421270() #24 /var/www/vhosts/liekieskadokus.nl/httpdocs/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode() #25 /var/www/vhosts/liekieskadokus.nl/httpdocs/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(217): Smarty_Template_Compiled->render() #26 /var/www/vhosts/liekieskadokus.nl/httpdocs/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(386): Smarty_Internal_Template->render() #27 /var/www/vhosts/liekieskadokus.nl/httpdocs/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(116): Smarty_Internal_Template->_subTemplateRender() #28 /var/www/vhosts/liekieskadokus.nl/httpdocs/var/cache/dev/smarty/compile/classiclayouts_layout_full_width_tpl/6d/af/49/6daf499e72b0b70ff9cc5a951a5894312ebd7981_2.file.layout-full-width.tpl.php(42): Smarty_Internal_Runtime_Inheritance->endChild() #29 /var/www/vhosts/liekieskadokus.nl/httpdocs/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_662ec91051cb41_98241453() #30 /var/www/vhosts/liekieskadokus.nl/httpdocs/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode() #31 /var/www/vhosts/liekieskadokus.nl/httpdocs/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(217): Smarty_Template_Compiled->render() #32 /var/www/vhosts/liekieskadokus.nl/httpdocs/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(386): Smarty_Internal_Template->render() #33 /var/www/vhosts/liekieskadokus.nl/httpdocs/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(116): Smarty_Internal_Template->_subTemplateRender() #34 /var/www/vhosts/liekieskadokus.nl/httpdocs/var/cache/dev/smarty/compile/classiclayouts_layout_full_width_tpl/fc/9a/05/fc9a05ff519b63c7c02517e3c6035f80fd709dc0_2.file.product.tpl.php(56): Smarty_Internal_Runtime_Inheritance->endChild() #35 /var/www/vhosts/liekieskadokus.nl/httpdocs/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_662ec91050f5d7_01634037() #36 /var/www/vhosts/liekieskadokus.nl/httpdocs/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode() #37 /var/www/vhosts/liekieskadokus.nl/httpdocs/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(217): Smarty_Template_Compiled->render() #38 /var/www/vhosts/liekieskadokus.nl/httpdocs/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(238): Smarty_Internal_Template->render() #39 /var/www/vhosts/liekieskadokus.nl/httpdocs/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(116): Smarty_Internal_TemplateBase->_execute() #40 /var/www/vhosts/liekieskadokus.nl/httpdocs/classes/Smarty/SmartyDev.php(40): Smarty_Internal_TemplateBase->fetch() #41 /var/www/vhosts/liekieskadokus.nl/httpdocs/classes/controller/FrontController.php(760): SmartyDev->fetch() #42 /var/www/vhosts/liekieskadokus.nl/httpdocs/classes/controller/FrontController.php(742): FrontControllerCore->smartyOutputContent() #43 /var/www/vhosts/liekieskadokus.nl/httpdocs/tools/profiling/Controller.php(106): FrontControllerCore->display() #44 /var/www/vhosts/liekieskadokus.nl/httpdocs/tools/profiling/Controller.php(83): Controller->displayProfiling() #45 /var/www/vhosts/liekieskadokus.nl/httpdocs/classes/Dispatcher.php(510): Controller->run() #46 /var/www/vhosts/liekieskadokus.nl/httpdocs/index.php(28): DispatcherCore->dispatch() #47 {main} thrown in /var/www/vhosts/liekieskadokus.nl/httpdocs/modules/productcomments/src/Repository/ProductCommentCriterionRepository.php on line 238