andylawler Posted June 3, 2023 Share Posted June 3, 2023 Hi Our back office doesn't show any products in the catalog but they ar there if I search for them. If I try and edit a product or add a new oine I get an error saying "unable to update settings" I've enabled debug mode but not sure what ot's telling me Any help would be appreciated please: RuntimeError HTTP 500 Internal Server Error Key "enable_subscription" for array with keys "id_product, reference, price, id_shop_default, is_virtual, name, link_rewrite, active, shopname, id_image, name_category, price_final, nb_downloadable, sav_quantity, badge_danger, position, total, image, image_link, url, unit_action_url, preview_url, url_v2" does not exist. Exception Logs 2 Stack Trace Twig\Error\RuntimeError in modules/trustpaymentmodule/views/PrestaShop/Admin/Product/CatalogPage/Lists/list.html.twig (line 52) <a href="{{ product.url|default('') }}#tab-step1">{{ product.name|default('N/A'|trans({}, 'Admin.Global')) }}</a> </td> <td> <a href="{{ product.url|default('') }}#tab-step1">{{ product.image|raw }}</a> </td> {% if product.enable_subscription == 1 %} <td class="text-center"> {% set action = product.is_subcription == 0 ? 'disabled' : 'enabled' %} {% set icon = action == 'disabled' ? 'clear' : 'check' %} <i class="material-icons action-{{ action }}">{{ icon }}</i> </td> Template->getAttribute()in var/cache/dev/twig/28/2862ba4ad8d63ed759757f3d37aba18d2dec40d5d752098e38cb85d8aeaa069d.php (line 107) __TwigTemplate_35d0b0edb82dd66089a3984594abb9f46d024e309089a9b4cce78d34df87ee8b->block_product_catalog_form_table_row()in vendor/twig/twig/src/Template.php (line 214) Template->displayBlock()in var/cache/dev/twig/3c/3ce81e1039292212a08d35ee1649cd8d6b083a731bb9fad9328239eb96a3a636.php (line 69) __TwigTemplate_6f1931d03cf26f0883858f3a1dc48eabd0359ab68f54e216d679d73da2a6115c->doDisplay()in vendor/twig/twig/src/Template.php (line 453) Template->displayWithErrorHandling()in vendor/twig/twig/src/Template.php (line 420) Template->display()in var/cache/dev/twig/28/2862ba4ad8d63ed759757f3d37aba18d2dec40d5d752098e38cb85d8aeaa069d.php (line 41) __TwigTemplate_35d0b0edb82dd66089a3984594abb9f46d024e309089a9b4cce78d34df87ee8b->doDisplay()in vendor/twig/twig/src/Template.php (line 453) Template->displayWithErrorHandling()in vendor/twig/twig/src/Template.php (line 420) Template->display()in vendor/twig/twig/src/Template.php (line 432) Template->render()in vendor/twig/twig/src/TemplateWrapper.php (line 47) TemplateWrapper->render()in vendor/twig/twig/src/Environment.php (line 384) Environment->render()in vendor/sensio/framework-extra-bundle/EventListener/TemplateListener.php (line 102) TemplateListener->onKernelView()in vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/Debug/WrappedListener.php (line 115) WrappedListener->__invoke()in vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php (line 214) EventDispatcher->doDispatch()in vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php (line 44) EventDispatcher->dispatch()in vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/Debug/TraceableEventDispatcher.php (line 143) TraceableEventDispatcher->dispatch()in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php (line 156) HttpKernel->handleRaw()in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php (line 68) HttpKernel->handle()in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpCache/SubRequestHandler.php (line 102) SubRequestHandler::handle()in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Fragment/InlineFragmentRenderer.php (line 80) InlineFragmentRenderer->render()in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Fragment/FragmentHandler.php (line 87) FragmentHandler->render()in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/DependencyInjection/LazyLoadingFragmentHandler.php (line 77) LazyLoadingFragmentHandler->render()in vendor/symfony/symfony/src/Symfony/Bridge/Twig/Extension/HttpKernelRuntime.php (line 46) HttpKernelRuntime->renderFragment()in var/cache/dev/twig/a5/a5f44bc5fe7ef0c9b86b2293b14e5769d3e312e555ab40837bf991cec179707f.php (line 427) __TwigTemplate_cdc3a237fb957bd49adf1b60fb8b99ce47c36a525b864cbe41c5522c62da5f29->block_product_catalog_form_table_items()in vendor/twig/twig/src/Template.php (line 214) Template->displayBlock()in var/cache/dev/twig/a5/a5f44bc5fe7ef0c9b86b2293b14e5769d3e312e555ab40837bf991cec179707f.php (line 67) __TwigTemplate_cdc3a237fb957bd49adf1b60fb8b99ce47c36a525b864cbe41c5522c62da5f29->doDisplay()in vendor/twig/twig/src/Template.php (line 453) Template->displayWithErrorHandling()in vendor/twig/twig/src/Template.php (line 420) Template->display()in vendor/twig/twig/src/Template.php (line 432) Template->render()in vendor/twig/twig/src/Extension/CoreExtension.php (line 1591) twig_include()in var/cache/dev/twig/1f/1f6239dceec5d8a1afc304ca245385e159411fcfef2070375e3e25aca1b68705.php (line 132) __TwigTemplate_f0e1786d62d44b5994dc9882b29dd97612634b19c073ba37fcd2125a32b081ba->block_product_catalog_form_table()in vendor/twig/twig/src/Template.php (line 214) Template->displayBlock()in var/cache/dev/twig/1f/1f6239dceec5d8a1afc304ca245385e159411fcfef2070375e3e25aca1b68705.php (line 67) __TwigTemplate_f0e1786d62d44b5994dc9882b29dd97612634b19c073ba37fcd2125a32b081ba->doDisplay()in vendor/twig/twig/src/Template.php (line 453) Template->displayWithErrorHandling()in vendor/twig/twig/src/Template.php (line 420) Template->display()in vendor/twig/twig/src/Template.php (line 432) Template->render()in vendor/twig/twig/src/Extension/CoreExtension.php (line 1591) twig_include()in var/cache/dev/twig/e3/e3beb3c4e5aa897bc49ed891603242b91bb089e4b32e2d2ce42c02d3d089c402.php (line 311) __TwigTemplate_d1b006c2a60ceb100b6615f347212b1175040c302b091877ff6d04ed68663cc8->block_product_catalog_form()in vendor/twig/twig/src/Template.php (line 214) Template->displayBlock()in var/cache/dev/twig/e3/e3beb3c4e5aa897bc49ed891603242b91bb089e4b32e2d2ce42c02d3d089c402.php (line 178) __TwigTemplate_d1b006c2a60ceb100b6615f347212b1175040c302b091877ff6d04ed68663cc8->block_content()in vendor/twig/twig/src/Template.php (line 214) Template->displayBlock()in var/cache/dev/twig/cb/cbbcc2578bd0d23d86c23f215c726c71144fba752c8bbca1f8fec9c599594c5e.php (line 1810) __TwigTemplate_f8a7117dbf2d41358ea9db083453f167ce8cc986963068ddc5a7b015aa9a7347->doDisplay()in vendor/twig/twig/src/Template.php (line 453) Template->displayWithErrorHandling()in vendor/twig/twig/src/Template.php (line 420) Template->display()in vendor/twig/twig/src/TemplateWrapper.php (line 59) TemplateWrapper->display()in var/cache/dev/twig/d9/d9749bc588219670c9a054207fc45f827351469228b86fa373e2a9dc4faeefbe.php (line 57) __TwigTemplate_bfb1872d950c32cea568018501683a3ee0f12804bec2de203b8e3fa0373e7de2->doDisplay()in vendor/twig/twig/src/Template.php (line 453) Template->displayWithErrorHandling()in vendor/twig/twig/src/Template.php (line 420) Template->display()in var/cache/dev/twig/e3/e3beb3c4e5aa897bc49ed891603242b91bb089e4b32e2d2ce42c02d3d089c402.php (line 49) __TwigTemplate_d1b006c2a60ceb100b6615f347212b1175040c302b091877ff6d04ed68663cc8->doDisplay()in vendor/twig/twig/src/Template.php (line 453) Template->displayWithErrorHandling()in vendor/twig/twig/src/Template.php (line 420) Template->display()in var/cache/dev/twig/0b/0b860eef2cc879e658f24f54654afb8af0f17411987b7a380699f96a14ed5599.php (line 40) __TwigTemplate_dcb3d334070b867e0cfa8c6599500e8643a8de1e12495801d602542b34085376->doDisplay()in vendor/twig/twig/src/Template.php (line 453) Template->displayWithErrorHandling()in vendor/twig/twig/src/Template.php (line 420) Template->display()in vendor/twig/twig/src/Template.php (line 432) Template->render()in vendor/twig/twig/src/TemplateWrapper.php (line 47) TemplateWrapper->render()in vendor/twig/twig/src/Environment.php (line 384) Environment->render()in vendor/sensio/framework-extra-bundle/EventListener/TemplateListener.php (line 102) TemplateListener->onKernelView()in vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/Debug/WrappedListener.php (line 115) WrappedListener->__invoke()in vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php (line 214) EventDispatcher->doDispatch()in vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php (line 44) EventDispatcher->dispatch()in vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/Debug/TraceableEventDispatcher.php (line 143) TraceableEventDispatcher->dispatch()in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php (line 156) HttpKernel->handleRaw()in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php (line 68) HttpKernel->handle()in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php (line 200) Kernel->handle()in backoffice/index.php (line 82) Link to comment Share on other sites More sharing options...
ComGrafPL Posted June 3, 2023 Share Posted June 3, 2023 Temporary disable "trustpaymentmodule", clear cache in VAR folder if its PS version 1.7+ Link to comment Share on other sites More sharing options...
AddWeb Solution Posted August 7, 2023 Share Posted August 7, 2023 On 6/3/2023 at 3:08 PM, andylawler said: Hi Our back office doesn't show any products in the catalog but they ar there if I search for them. If I try and edit a product or add a new oine I get an error saying "unable to update settings" I've enabled debug mode but not sure what ot's telling me Any help would be appreciated please: RuntimeError HTTP 500 Internal Server Error Key "enable_subscription" for array with keys "id_product, reference, price, id_shop_default, is_virtual, name, link_rewrite, active, shopname, id_image, name_category, price_final, nb_downloadable, sav_quantity, badge_danger, position, total, image, image_link, url, unit_action_url, preview_url, url_v2" does not exist. Exception Logs 2 Stack Trace Twig\Error\RuntimeError in modules/trustpaymentmodule/views/PrestaShop/Admin/Product/CatalogPage/Lists/list.html.twig (line 52) <a href="{{ product.url|default('') }}#tab-step1">{{ product.name|default('N/A'|trans({}, 'Admin.Global')) }}</a> </td> <td> <a href="{{ product.url|default('') }}#tab-step1">{{ product.image|raw }}</a> </td> {% if product.enable_subscription == 1 %} <td class="text-center"> {% set action = product.is_subcription == 0 ? 'disabled' : 'enabled' %} {% set icon = action == 'disabled' ? 'clear' : 'check' %} <i class="material-icons action-{{ action }}">{{ icon }}</i> </td> Template->getAttribute()in var/cache/dev/twig/28/2862ba4ad8d63ed759757f3d37aba18d2dec40d5d752098e38cb85d8aeaa069d.php (line 107) __TwigTemplate_35d0b0edb82dd66089a3984594abb9f46d024e309089a9b4cce78d34df87ee8b->block_product_catalog_form_table_row()in vendor/twig/twig/src/Template.php (line 214) Template->displayBlock()in var/cache/dev/twig/3c/3ce81e1039292212a08d35ee1649cd8d6b083a731bb9fad9328239eb96a3a636.php (line 69) __TwigTemplate_6f1931d03cf26f0883858f3a1dc48eabd0359ab68f54e216d679d73da2a6115c->doDisplay()in vendor/twig/twig/src/Template.php (line 453) Template->displayWithErrorHandling()in vendor/twig/twig/src/Template.php (line 420) Template->display()in var/cache/dev/twig/28/2862ba4ad8d63ed759757f3d37aba18d2dec40d5d752098e38cb85d8aeaa069d.php (line 41) __TwigTemplate_35d0b0edb82dd66089a3984594abb9f46d024e309089a9b4cce78d34df87ee8b->doDisplay()in vendor/twig/twig/src/Template.php (line 453) Template->displayWithErrorHandling()in vendor/twig/twig/src/Template.php (line 420) Template->display()in vendor/twig/twig/src/Template.php (line 432) Template->render()in vendor/twig/twig/src/TemplateWrapper.php (line 47) TemplateWrapper->render()in vendor/twig/twig/src/Environment.php (line 384) Environment->render()in vendor/sensio/framework-extra-bundle/EventListener/TemplateListener.php (line 102) TemplateListener->onKernelView()in vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/Debug/WrappedListener.php (line 115) WrappedListener->__invoke()in vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php (line 214) EventDispatcher->doDispatch()in vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php (line 44) EventDispatcher->dispatch()in vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/Debug/TraceableEventDispatcher.php (line 143) TraceableEventDispatcher->dispatch()in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php (line 156) HttpKernel->handleRaw()in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php (line 68) HttpKernel->handle()in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpCache/SubRequestHandler.php (line 102) SubRequestHandler::handle()in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Fragment/InlineFragmentRenderer.php (line 80) InlineFragmentRenderer->render()in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Fragment/FragmentHandler.php (line 87) FragmentHandler->render()in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/DependencyInjection/LazyLoadingFragmentHandler.php (line 77) LazyLoadingFragmentHandler->render()in vendor/symfony/symfony/src/Symfony/Bridge/Twig/Extension/HttpKernelRuntime.php (line 46) HttpKernelRuntime->renderFragment()in var/cache/dev/twig/a5/a5f44bc5fe7ef0c9b86b2293b14e5769d3e312e555ab40837bf991cec179707f.php (line 427) __TwigTemplate_cdc3a237fb957bd49adf1b60fb8b99ce47c36a525b864cbe41c5522c62da5f29->block_product_catalog_form_table_items()in vendor/twig/twig/src/Template.php (line 214) Template->displayBlock()in var/cache/dev/twig/a5/a5f44bc5fe7ef0c9b86b2293b14e5769d3e312e555ab40837bf991cec179707f.php (line 67) __TwigTemplate_cdc3a237fb957bd49adf1b60fb8b99ce47c36a525b864cbe41c5522c62da5f29->doDisplay()in vendor/twig/twig/src/Template.php (line 453) Template->displayWithErrorHandling()in vendor/twig/twig/src/Template.php (line 420) Template->display()in vendor/twig/twig/src/Template.php (line 432) Template->render()in vendor/twig/twig/src/Extension/CoreExtension.php (line 1591) twig_include()in var/cache/dev/twig/1f/1f6239dceec5d8a1afc304ca245385e159411fcfef2070375e3e25aca1b68705.php (line 132) __TwigTemplate_f0e1786d62d44b5994dc9882b29dd97612634b19c073ba37fcd2125a32b081ba->block_product_catalog_form_table()in vendor/twig/twig/src/Template.php (line 214) Template->displayBlock()in var/cache/dev/twig/1f/1f6239dceec5d8a1afc304ca245385e159411fcfef2070375e3e25aca1b68705.php (line 67) __TwigTemplate_f0e1786d62d44b5994dc9882b29dd97612634b19c073ba37fcd2125a32b081ba->doDisplay()in vendor/twig/twig/src/Template.php (line 453) Template->displayWithErrorHandling()in vendor/twig/twig/src/Template.php (line 420) Template->display()in vendor/twig/twig/src/Template.php (line 432) Template->render()in vendor/twig/twig/src/Extension/CoreExtension.php (line 1591) twig_include()in var/cache/dev/twig/e3/e3beb3c4e5aa897bc49ed891603242b91bb089e4b32e2d2ce42c02d3d089c402.php (line 311) __TwigTemplate_d1b006c2a60ceb100b6615f347212b1175040c302b091877ff6d04ed68663cc8->block_product_catalog_form()in vendor/twig/twig/src/Template.php (line 214) Template->displayBlock()in var/cache/dev/twig/e3/e3beb3c4e5aa897bc49ed891603242b91bb089e4b32e2d2ce42c02d3d089c402.php (line 178) __TwigTemplate_d1b006c2a60ceb100b6615f347212b1175040c302b091877ff6d04ed68663cc8->block_content()in vendor/twig/twig/src/Template.php (line 214) Template->displayBlock()in var/cache/dev/twig/cb/cbbcc2578bd0d23d86c23f215c726c71144fba752c8bbca1f8fec9c599594c5e.php (line 1810) __TwigTemplate_f8a7117dbf2d41358ea9db083453f167ce8cc986963068ddc5a7b015aa9a7347->doDisplay()in vendor/twig/twig/src/Template.php (line 453) Template->displayWithErrorHandling()in vendor/twig/twig/src/Template.php (line 420) Template->display()in vendor/twig/twig/src/TemplateWrapper.php (line 59) TemplateWrapper->display()in var/cache/dev/twig/d9/d9749bc588219670c9a054207fc45f827351469228b86fa373e2a9dc4faeefbe.php (line 57) __TwigTemplate_bfb1872d950c32cea568018501683a3ee0f12804bec2de203b8e3fa0373e7de2->doDisplay()in vendor/twig/twig/src/Template.php (line 453) Template->displayWithErrorHandling()in vendor/twig/twig/src/Template.php (line 420) Template->display()in var/cache/dev/twig/e3/e3beb3c4e5aa897bc49ed891603242b91bb089e4b32e2d2ce42c02d3d089c402.php (line 49) __TwigTemplate_d1b006c2a60ceb100b6615f347212b1175040c302b091877ff6d04ed68663cc8->doDisplay()in vendor/twig/twig/src/Template.php (line 453) Template->displayWithErrorHandling()in vendor/twig/twig/src/Template.php (line 420) Template->display()in var/cache/dev/twig/0b/0b860eef2cc879e658f24f54654afb8af0f17411987b7a380699f96a14ed5599.php (line 40) __TwigTemplate_dcb3d334070b867e0cfa8c6599500e8643a8de1e12495801d602542b34085376->doDisplay()in vendor/twig/twig/src/Template.php (line 453) Template->displayWithErrorHandling()in vendor/twig/twig/src/Template.php (line 420) Template->display()in vendor/twig/twig/src/Template.php (line 432) Template->render()in vendor/twig/twig/src/TemplateWrapper.php (line 47) TemplateWrapper->render()in vendor/twig/twig/src/Environment.php (line 384) Environment->render()in vendor/sensio/framework-extra-bundle/EventListener/TemplateListener.php (line 102) TemplateListener->onKernelView()in vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/Debug/WrappedListener.php (line 115) WrappedListener->__invoke()in vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php (line 214) EventDispatcher->doDispatch()in vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php (line 44) EventDispatcher->dispatch()in vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/Debug/TraceableEventDispatcher.php (line 143) TraceableEventDispatcher->dispatch()in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php (line 156) HttpKernel->handleRaw()in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php (line 68) HttpKernel->handle()in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php (line 200) Kernel->handle()in backoffice/index.php (line 82) Hi, Open the "list.html.twig" template file mentioned in the error message ("modules/trustpaymentmodule/views/PrestaShop/Admin/Product/CatalogPage/Lists/list.html.twig") and check if the "enable_subscription" key is being used correctly. Make sure it's defined in the array that you're trying to access. After making changes, clear the PrestaShop cache to ensure that the changes take effect. Thanks! 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