Fatal error: Uncaught TypeError: PrestaShop\Module\ProductComment\Repository\ProductCommentCriterionRepository::getByProduct(): Argument #1 ($idProduct) must be of type int, null given, called in /home/u285685514/domains/paygo.lt/public_html/modules/productcomments/productcomments.php on line 1023 and defined in /home/u285685514/domains/paygo.lt/public_html/modules/productcomments/src/Repository/ProductCommentCriterionRepository.php:200
Stack trace:
#0 /home/u285685514/domains/paygo.lt/public_html/modules/productcomments/productcomments.php(1023): PrestaShop\Module\ProductComment\Repository\ProductCommentCriterionRepository->getByProduct()
#1 /home/u285685514/domains/paygo.lt/public_html/modules/productcomments/productcomments.php(934): ProductComments->renderProductCommentModal()
#2 /home/u285685514/domains/paygo.lt/public_html/classes/Hook.php(1234): ProductComments->hookDisplayFooterProduct()
#3 /home/u285685514/domains/paygo.lt/public_html/classes/Hook.php(447): HookCore::coreCallHook()
#4 /home/u285685514/domains/paygo.lt/public_html/classes/Hook.php(1125): HookCore::callHookOn()
#5 /home/u285685514/domains/paygo.lt/public_html/config/smarty.config.inc.php(193): HookCore::exec()
#6 /home/u285685514/domains/paygo.lt/public_html/classes/Smarty/SmartyLazyRegister.php(61): smartyHook()
#7 /home/u285685514/domains/paygo.lt/public_html/var/cache/dev/smarty/compile/child_classiclayouts_layout_full_width_tpl/23/d7/94/23d7942c2675a97759506b86ae03e62357406d6d_2.file.product.tpl.php(623): SmartyLazyRegister->__call()
#8 /home/u285685514/domains/paygo.lt/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(248): Block_3010775016a2eb93e6525a5_51628589->callBlock()
#9 /home/u285685514/domains/paygo.lt/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(184): Smarty_Internal_Runtime_Inheritance->callBlock()
#10 /home/u285685514/domains/paygo.lt/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(156): Smarty_Internal_Runtime_Inheritance->process()
#11 /home/u285685514/domains/paygo.lt/public_html/var/cache/dev/smarty/compile/child_classiclayouts_layout_full_width_tpl/23/d7/94/23d7942c2675a97759506b86ae03e62357406d6d_2.file.product.tpl.php(851): Smarty_Internal_Runtime_Inheritance->instanceBlock()
#12 /home/u285685514/domains/paygo.lt/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(248): Block_11055582686a2eb93e636ec7_36050184->callBlock()
#13 /home/u285685514/domains/paygo.lt/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(184): Smarty_Internal_Runtime_Inheritance->callBlock()
#14 /home/u285685514/domains/paygo.lt/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(186): Smarty_Internal_Runtime_Inheritance->process()
#15 /home/u285685514/domains/paygo.lt/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(156): Smarty_Internal_Runtime_Inheritance->process()
#16 /home/u285685514/domains/paygo.lt/public_html/var/cache/dev/smarty/compile/child_classiclayouts_layout_full_width_tpl/68/29/bd/6829bda2a089d68b9beeea1840b027512dc21652_2.file.layout-full-width.tpl.php(101): Smarty_Internal_Runtime_Inheritance->instanceBlock()
#17 /home/u285685514/domains/paygo.lt/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(248): Block_5155142356a2eb93e65ff84_91172289->callBlock()
#18 /home/u285685514/domains/paygo.lt/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(184): Smarty_Internal_Runtime_Inheritance->callBlock()
#19 /home/u285685514/domains/paygo.lt/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(186): Smarty_Internal_Runtime_Inheritance->process()
#20 /home/u285685514/domains/paygo.lt/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(156): Smarty_Internal_Runtime_Inheritance->process()
#21 /home/u285685514/domains/paygo.lt/public_html/var/cache/dev/smarty/compile/child_classiclayouts_layout_full_width_tpl/d4/c5/03/d4c503758eedbd28a3196213d81c21b60e501659_2.file.layout-both-columns.tpl.php(103): Smarty_Internal_Runtime_Inheritance->instanceBlock()
#22 /home/u285685514/domains/paygo.lt/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_6a2eb93e6712b7_36131483()
#23 /home/u285685514/domains/paygo.lt/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode()
#24 /home/u285685514/domains/paygo.lt/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(217): Smarty_Template_Compiled->render()
#25 /home/u285685514/domains/paygo.lt/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(386): Smarty_Internal_Template->render()
#26 /home/u285685514/domains/paygo.lt/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(115): Smarty_Internal_Template->_subTemplateRender()
#27 /home/u285685514/domains/paygo.lt/public_html/var/cache/dev/smarty/compile/child_classiclayouts_layout_full_width_tpl/68/29/bd/6829bda2a089d68b9beeea1840b027512dc21652_2.file.layout-full-width.tpl.php(42): Smarty_Internal_Runtime_Inheritance->endChild()
#28 /home/u285685514/domains/paygo.lt/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_6a2eb93e6613a3_91728577()
#29 /home/u285685514/domains/paygo.lt/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode()
#30 /home/u285685514/domains/paygo.lt/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(217): Smarty_Template_Compiled->render()
#31 /home/u285685514/domains/paygo.lt/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(386): Smarty_Internal_Template->render()
#32 /home/u285685514/domains/paygo.lt/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(115): Smarty_Internal_Template->_subTemplateRender()
#33 /home/u285685514/domains/paygo.lt/public_html/var/cache/dev/smarty/compile/child_classiclayouts_layout_full_width_tpl/23/d7/94/23d7942c2675a97759506b86ae03e62357406d6d_2.file.product.tpl.php(56): Smarty_Internal_Runtime_Inheritance->endChild()
#34 /home/u285685514/domains/paygo.lt/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_6a2eb93e6543d1_46710899()
#35 /home/u285685514/domains/paygo.lt/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode()
#36 /home/u285685514/domains/paygo.lt/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(217): Smarty_Template_Compiled->render()
#37 /home/u285685514/domains/paygo.lt/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(386): Smarty_Internal_Template->render()
#38 /home/u285685514/domains/paygo.lt/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(115): Smarty_Internal_Template->_subTemplateRender()
#39 /home/u285685514/domains/paygo.lt/public_html/var/cache/dev/smarty/compile/child_classiclayouts_layout_full_width_tpl/b0/cc/2b/b0cc2be4f4adde87e870d52fb0d7012b8eea17f5_2.file.product.tpl.php(52): Smarty_Internal_Runtime_Inheritance->endChild()
#40 /home/u285685514/domains/paygo.lt/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_6a2eb93e629bb4_52593400()
#41 /home/u285685514/domains/paygo.lt/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode()
#42 /home/u285685514/domains/paygo.lt/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(217): Smarty_Template_Compiled->render()
#43 /home/u285685514/domains/paygo.lt/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(238): Smarty_Internal_Template->render()
#44 /home/u285685514/domains/paygo.lt/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(116): Smarty_Internal_TemplateBase->_execute()
#45 /home/u285685514/domains/paygo.lt/public_html/classes/Smarty/SmartyDev.php(20): Smarty_Internal_TemplateBase->fetch()
#46 /home/u285685514/domains/paygo.lt/public_html/classes/controller/FrontController.php(764): SmartyDev->fetch()
#47 /home/u285685514/domains/paygo.lt/public_html/classes/controller/FrontController.php(748): FrontControllerCore->smartyOutputContent()
#48 /home/u285685514/domains/paygo.lt/public_html/classes/controller/Controller.php(328): FrontControllerCore->display()
#49 /home/u285685514/domains/paygo.lt/public_html/classes/Dispatcher.php(468): ControllerCore->run()
#50 /home/u285685514/domains/paygo.lt/public_html/index.php(66): DispatcherCore->dispatch()
#51 {main}
thrown in /home/u285685514/domains/paygo.lt/public_html/modules/productcomments/src/Repository/ProductCommentCriterionRepository.php on line 200