Spilter Posted November 13, 2022 Share Posted November 13, 2022 Hello, I have a problem with my Prestashop, when i try to acces product page in frontend gives me 500 error. I run it on debug mode and this shows to me. I doesn't modify templates in or something else in last period. If anyone can give me an opinon. Thanks all! (1/1) ContextErrorException Notice: Undefined index: allCategories in f62f07cee5bbb4f7dcff714c73964c344458cd04_2.file.product-details.tpl.php line 34 at content_6370d61a862e14_98281123(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/product-details.tpl', null, 'v1_autoparts_shoppicalayouts/layout-full-width.tpl', 0, 31536000, array(), 0, false)in ef48277a04bc48d08cd8a1b840e662ff521c82bf_2.file.product.tpl.php line 356 at Block_215136476370d61a5f9ec2_15783187->callBlock(object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 248 at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_215136476370d61a5f9ec2_15783187), object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 184 at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_215136476370d61a5f9ec2_15783187))in smarty_internal_runtime_inheritance.php line 156 at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_215136476370d61a5f9ec2_15783187', 'product_details', 0)in ef48277a04bc48d08cd8a1b840e662ff521c82bf_2.file.product.tpl.php line 407 at Block_4205063026370d61a5f1988_97286346->callBlock(object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 248 at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_4205063026370d61a5f1988_97286346), object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 184 at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_4205063026370d61a5f1988_97286346))in smarty_internal_runtime_inheritance.php line 156 at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_4205063026370d61a5f1988_97286346', 'product_tabs', 0)in ef48277a04bc48d08cd8a1b840e662ff521c82bf_2.file.product.tpl.php line 721 at Block_2206616796370d61a5be4d1_57301232->callBlock(object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 248 at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_2206616796370d61a5be4d1_57301232), object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 184 at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_2206616796370d61a5be4d1_57301232), object(Block_13329295536370d61a635316_78529232))in smarty_internal_runtime_inheritance.php line 186 at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_13329295536370d61a635316_78529232))in smarty_internal_runtime_inheritance.php line 156 at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_13329295536370d61a635316_78529232', 'content', 1)in c5155cbff56396fedc9c20dd62899b6cb781060f_2.file.layout-full-width.tpl.php line 84 at Block_5977063846370d61a634659_66313080->callBlock(object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 248 at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_5977063846370d61a634659_66313080), object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 184 at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_5977063846370d61a634659_66313080), object(Block_19122537016370d61a64fbf4_67260971))in smarty_internal_runtime_inheritance.php line 186 at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_19122537016370d61a64fbf4_67260971))in smarty_internal_runtime_inheritance.php line 156 at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_19122537016370d61a64fbf4_67260971', 'content_wrapper')in 9da41e97e7538e750e6ce996e0009ce25586edea_2.file.layout-both-columns.tpl.php line 80 at content_6370d61a65ae85_46057753(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, 'v1_autoparts_shoppicalayouts/layout-full-width.tpl', 0, 31536000, array(), 2, false, null, null)in smarty_internal_runtime_inheritance.php line 125 at Smarty_Internal_Runtime_Inheritance->endChild(object(SmartyDevTemplate), 'layouts/layout-both-columns.tpl')in c5155cbff56396fedc9c20dd62899b6cb781060f_2.file.layout-full-width.tpl.php line 31 at content_6370d61a636860_20510005(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-full-width.tpl', null, 'v1_autoparts_shoppicalayouts/layout-full-width.tpl', 0, 31536000, array(), 2, false, null, null)in smarty_internal_runtime_inheritance.php line 125 at Smarty_Internal_Runtime_Inheritance->endChild(object(SmartyDevTemplate), 'layouts/layout-full-width.tpl')in ef48277a04bc48d08cd8a1b840e662ff521c82bf_2.file.product.tpl.php line 42 at content_6370d61a627c21_45547707(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, 'v1_autoparts_shoppicalayouts/layout-full-width.tpl', null, 0)in smarty_internal_templatebase.php line 116 at Smarty_Internal_TemplateBase->fetch('catalog/product.tpl', null, 'v1_autoparts_shoppicalayouts/layout-full-width.tpl', null, false, true, false)in SmartyDev.php line 40 at SmartyDev->fetch('catalog/product.tpl', null, 'v1_autoparts_shoppicalayouts/layout-full-width.tpl')in FrontController.php line 727 at FrontControllerCore->smartyOutputContent('catalog/product.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 Dispatcher.php line 41 at Dispatcher->dispatch()in index.php line 28 Link to comment Share on other sites More sharing options...
QuickUpdate.net Posted November 13, 2022 Share Posted November 13, 2022 Normally a "Notice" should not trigger a 500 error - as it is mentions "allCategories" is a variable not defined in a controller that uses the "product-details.tpl.php" file 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