Jump to content

[SOLVED] Product with id * is not a pack


Thommen

Recommended Posts

I have an error in store 500. When entering some categories or brands of products I get an error.

In addition, I have errors when I enter the product. I am looking for a solution to this situation.


Fatal error: Uncaught PrestaShopException: Product with id 1872 is not a pack in /home/admin/web/x.x/public_html/classes/Pack.php:257 Stack trace:
#0 /home/admin/web/x.x/public_html/classes/Pack.php(222): PackCore::getQuantity()
#1 /home/admin/web/x.x/public_html/classes/Product.php(5676): PackCore::isInStock()
#2 /home/admin/web/x.x/public_html/classes/Product.php(5823): ProductCore::getProductProperties()
#3 /home/admin/web/x.x/public_html/classes/Category.php(1047): ProductCore::getProductsProperties()
#4 /home/admin/web/x.x/public_html/src/Adapter/Category/CategoryProductSearchProvider.php(79): CategoryCore->getProducts()
#5 /home/admin/web/x.x/public_html/src/Adapter/Category/CategoryProductSearchProvider.php(105): PrestaShop\PrestaShop\Adapter\Category\CategoryProductSearchProvider->getProductsOrCount()
#6 /home/admin/web/x.x/public_html/modules/ps_categoryproducts/ps_categoryproducts.php(288): PrestaShop\PrestaShop\Adapter\Category\CategoryProductSearchProvider->runQuery()
#7 /home/admin/web/x.x/public_html/modules/ps_categoryproducts/ps_categoryproducts.php(217): Ps_Categoryproducts->getCategoryProducts()
#8 /home/admin/web/x.x/public_html/modules/ps_categoryproducts/ps_categoryproducts.php(245): Ps_Categoryproducts->getWidgetVariables()
#9 /home/admin/web/x.x/public_html/classes/Hook.php(994): Ps_Categoryproducts->renderWidget()
#10 /home/admin/web/x.x/public_html/classes/Hook.php(938): HookCore::coreRenderWidget()
#11 /home/admin/web/x.x/public_html/config/smarty.config.inc.php(187): HookCore::exec()
#12 /home/admin/web/x.x/public_html/classes/Smarty/SmartyLazyRegister.php(81): smartyHook()
#13 /home/admin/web/x.x/public_html/var/cache/dev/smarty/compile/MegaShoplayouts_layout_full_width_tpl/73/bd/00/73bd0017686e20f1b6cedd00d0b8e69e16bdceeb_2.file.product.tpl.php(620): SmartyLazyRegister->__call()
#14 /home/admin/web/x.x/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(248): Block_125181634465d3747083bae0_00182226->callBlock()
#15 /home/admin/web/x.x/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(184): Smarty_Internal_Runtime_Inheritance->callBlock()
#16 /home/admin/web/x.x/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(156): Smarty_Internal_Runtime_Inheritance->process()
#17 /home/admin/web/x.x/public_html/var/cache/dev/smarty/compile/MegaShoplayouts_layout_full_width_tpl/73/bd/00/73bd0017686e20f1b6cedd00d0b8e69e16bdceeb_2.file.product.tpl.php(845): Smarty_Internal_Runtime_Inheritance->instanceBlock()
#18 /home/admin/web/x.x/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(248): Block_91553520265d3747081e671_68536777->callBlock()
#19 /home/admin/web/x.x/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(184): Smarty_Internal_Runtime_Inheritance->callBlock()
#20 /home/admin/web/x.x/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(186): Smarty_Internal_Runtime_Inheritance->process()
#21 /home/admin/web/x.x/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(156): Smarty_Internal_Runtime_Inheritance->process()
#22 /home/admin/web/x.x/public_html/var/cache/dev/smarty/compile/MegaShoplayouts_layout_full_width_tpl/7e/94/79/7e9479a89489669e5add7d3ef41ddff2448d7f7a_2.file.layout-full-width.tpl.php(101): Smarty_Internal_Runtime_Inheritance->instanceBlock()
#23 /home/admin/web/x.x/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(248): Block_57458526765d3734f3b0c76_51212809->callBlock()
#24 /home/admin/web/x.x/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(184): Smarty_Internal_Runtime_Inheritance->callBlock()
#25 /home/admin/web/x.x/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(186): Smarty_Internal_Runtime_Inheritance->process()
#26 /home/admin/web/x.x/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(156): Smarty_Internal_Runtime_Inheritance->process()
#27 /home/admin/web/x.x/public_html/var/cache/dev/smarty/compile/MegaShoplayouts_layout_full_width_tpl/f5/5c/fa/f55cfa0bae36e8947906c8813aa72a8110874e0d_2.file.layout-both-columns.tpl.php(94): Smarty_Internal_Runtime_Inheritance->instanceBlock()
#28 /home/admin/web/x.x/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_65d3734f3c3875_91083537()
#29 /home/admin/web/x.x/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode()
#30 /home/admin/web/x.x/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(217): Smarty_Template_Compiled->render()
#31 /home/admin/web/x.x/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(386): Smarty_Internal_Template->render()
#32 /home/admin/web/x.x/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(116): Smarty_Internal_Template->_subTemplateRender()
#33 /home/admin/web/x.x/public_html/var/cache/dev/smarty/compile/MegaShoplayouts_layout_full_width_tpl/7e/94/79/7e9479a89489669e5add7d3ef41ddff2448d7f7a_2.file.layout-full-width.tpl.php(42): Smarty_Internal_Runtime_Inheritance->endChild()
#34 /home/admin/web/x.x/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_65d3734f3b2f55_37803783()
#35 /home/admin/web/x.x/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode()
#36 /home/admin/web/x.x/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(217): Smarty_Template_Compiled->render()
#37 /home/admin/web/x.x/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(386): Smarty_Internal_Template->render()
#38 /home/admin/web/x.x/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(116): Smarty_Internal_Template->_subTemplateRender()
#39 /home/admin/web/x.x/public_html/var/cache/dev/smarty/compile/MegaShoplayouts_layout_full_width_tpl/73/bd/00/73bd0017686e20f1b6cedd00d0b8e69e16bdceeb_2.file.product.tpl.php(56): Smarty_Internal_Runtime_Inheritance->endChild()
#40 /home/admin/web/x.x/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_65d3747083d9f4_32509790()
#41 /home/admin/web/x.x/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode()
#42 /home/admin/web/x.x/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(217): Smarty_Template_Compiled->render()
#43 /home/admin/web/x.x/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(238): Smarty_Internal_Template->render()
#44 /home/admin/web/x.x/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(116): Smarty_Internal_TemplateBase->_execute()
#45 /home/admin/web/x.x/public_html/classes/Smarty/SmartyDev.php(40): Smarty_Internal_TemplateBase->fetch()
#46 /home/admin/web/x.x/public_html/classes/controller/FrontController.php(701): SmartyDev->fetch()
#47 /home/admin/web/x.x/public_html/classes/controller/FrontController.php(683): FrontControllerCore->smartyOutputContent()
#48 /home/admin/web/x.x/public_html/classes/controller/Controller.php(339): FrontControllerCore->display()
#49 /home/admin/web/x.x/public_html/classes/Dispatcher.php(510): ControllerCore->run()
#50 /home/admin/web/x.x/public_html/index.php(28): DispatcherCore->dispatch()
#51 {main} Next PrestaShop\PrestaShop\Core\Exception\CoreException: Product with id 1872 is not a pack in /home/admin/web/x.x/public_html/classes/Hook.php:998 Stack trace:
#0 /home/admin/web/x.x/public_html/classes/Hook.php(938): HookCore::coreRenderWidget()
#1 /home/admin/web/x.x/public_html/config/smarty.config.inc.php(187): HookCore::exec()
#2 /home/admin/web/x.x/public_html/classes/Smarty/SmartyLazyRegister.php(81): smartyHook()
#3 /home/admin/web/x.x/public_html/var/cache/dev/smarty/compile/MegaShoplayouts_layout_full_width_tpl/73/bd/00/73bd0017686e20f1b6cedd00d0b8e69e16bdceeb_2.file.product.tpl.php(620): SmartyLazyRegister->__call()
#4 /home/admin/web/x.x/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(248): Block_125181634465d3747083bae0_00182226->callBlock()
#5 /home/admin/web/x.x/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(184): Smarty_Internal_Runtime_Inheritance->callBlock()
#6 /home/admin/web/x.x/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(156): Smarty_Internal_Runtime_Inheritance->process()
#7 /home/admin/web/x.x/public_html/var/cache/dev/smarty/compile/MegaShoplayouts_layout_full_width_tpl/73/bd/00/73bd0017686e20f1b6cedd00d0b8e69e16bdceeb_2.file.product.tpl.php(845): Smarty_Internal_Runtime_Inheritance->instanceBlock()
#8 /home/admin/web/x.x/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(248): Block_91553520265d3747081e671_68536777->callBlock()
#9 /home/admin/web/x.x/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(184): Smarty_Internal_Runtime_Inheritance->callBlock()
#10 /home/admin/web/x.x/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(186): Smarty_Internal_Runtime_Inheritance->process()
#11 /home/admin/web/x.x/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(156): Smarty_Internal_Runtime_Inheritance->process()
#12 /home/admin/web/x.x/public_html/var/cache/dev/smarty/compile/MegaShoplayouts_layout_full_width_tpl/7e/94/79/7e9479a89489669e5add7d3ef41ddff2448d7f7a_2.file.layout-full-width.tpl.php(101): Smarty_Internal_Runtime_Inheritance->instanceBlock()
#13 /home/admin/web/x.x/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(248): Block_57458526765d3734f3b0c76_51212809->callBlock()
#14 /home/admin/web/x.x/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(184): Smarty_Internal_Runtime_Inheritance->callBlock()
#15 /home/admin/web/x.x/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(186): Smarty_Internal_Runtime_Inheritance->process()
#16 /home/admin/web/x.x/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(156): Smarty_Internal_Runtime_Inheritance->process()
#17 /home/admin/web/x.x/public_html/var/cache/dev/smarty/compile/MegaShoplayouts_layout_full_width_tpl/f5/5c/fa/f55cfa0bae36e8947906c8813aa72a8110874e0d_2.file.layout-both-columns.tpl.php(94): Smarty_Internal_Runtime_Inheritance->instanceBlock()
#18 /home/admin/web/x.x/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_65d3734f3c3875_91083537()
#19 /home/admin/web/x.x/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode()
#20 /home/admin/web/x.x/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(217): Smarty_Template_Compiled->render()
#21 /home/admin/web/x.x/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(386): Smarty_Internal_Template->render()
#22 /home/admin/web/x.x/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(116): Smarty_Internal_Template->_subTemplateRender()
#23 /home/admin/web/x.x/public_html/var/cache/dev/smarty/compile/MegaShoplayouts_layout_full_width_tpl/7e/94/79/7e9479a89489669e5add7d3ef41ddff2448d7f7a_2.file.layout-full-width.tpl.php(42): Smarty_Internal_Runtime_Inheritance->endChild()
#24 /home/admin/web/x.x/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_65d3734f3b2f55_37803783()
#25 /home/admin/web/x.x/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode()
#26 /home/admin/web/x.x/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(217): Smarty_Template_Compiled->render()
#27 /home/admin/web/x.x/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(386): Smarty_Internal_Template->render()
#28 /home/admin/web/x.x/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(116): Smarty_Internal_Template->_subTemplateRender()
#29 /home/admin/web/x.x/public_html/var/cache/dev/smarty/compile/MegaShoplayouts_layout_full_width_tpl/73/bd/00/73bd0017686e20f1b6cedd00d0b8e69e16bdceeb_2.file.product.tpl.php(56): Smarty_Internal_Runtime_Inheritance->endChild()
#30 /home/admin/web/x.x/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_65d3747083d9f4_32509790()
#31 /home/admin/web/x.x/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode()
#32 /home/admin/web/x.x/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(217): Smarty_Template_Compiled->render()
#33 /home/admin/web/x.x/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(238): Smarty_Internal_Template->render()
#34 /home/admin/web/x.x/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(116): Smarty_Internal_TemplateBase->_execute()
#35 /home/admin/web/x.x/public_html/classes/Smarty/SmartyDev.php(40): Smarty_Internal_TemplateBase->fetch()
#36 /home/admin/web/x.x/public_html/classes/controller/FrontController.php(701): SmartyDev->fetch()
#37 /home/admin/web/x.x/public_html/classes/controller/FrontController.php(683): FrontControllerCore->smartyOutputContent()
#38 /home/admin/web/x.x/public_html/classes/controller/Controller.php(339): FrontControllerCore->display()
#39 /home/admin/web/x.x/public_html/classes/Dispatcher.php(510): ControllerCore->run()
#40 /home/admin/web/x.x/public_html/index.php(28): DispatcherCore->dispatch()
#41 {main} thrown in /home/admin/web/x.x/public_html/classes/Hook.php on line 998

Edit

Solved ↓

Screenshot2024-02-19at16-34-49https__growshop_org.png.fafc995b07ef2f08ba5aefffea83016f.png

Edited by Thommen (see edit history)
Link to comment
Share on other sites

  • Thommen changed the title to [SOLVED] Product with id * is not a pack

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