wonderwebs Posted August 8, 2018 Share Posted August 8, 2018 Everything seems to be working fine in my online store and the Back Office apart from the 'Products' page in the BO which triggers this error following Prestashop upgrade from PS 1.7.3.2 to 1.7.4.2:- An exception has been thrown during the rendering of a template ("You have requested a non-existent service "request". Did you mean one of these: "data_collector.request", "monolog.logger.request", "request_stack", "router.request_context", "validate_request_listener", "argument_resolver.request", "argument_resolver.request_attribute", "security.request_matcher.zfhj2lw"?"). Twig_Error_Runtime in src/PrestaShopBundle/Resources/views/Admin/layout.html.twig (line 34) layoutHeaderToolbarBtn is defined ? layoutHeaderToolbarBtn : [], layoutDisplayType is defined ? layoutDisplayType : '', showContentHeader is defined ? showContentHeader : true, headerTabContent is defined ? headerTabContent : '', enableSidebar is defined ? enableSidebar : false, help_link is defined ? help_link : '' ) )) %} {% import 'PrestaShopBundle:Admin:macros.html.twig' as ps %} Link to comment Share on other sites More sharing options...
wonderwebs Posted August 10, 2018 Author Share Posted August 10, 2018 I have resolved the issue myself, it was not a error caused by Prestashop itself but the error was being thrown by the 'GiftCard' module https://addons.prestashop.com/en/wishlist-gift-card/19725-the-gift-card.html which is obviously not yet compatible with the latest version of Prestashop. Just disable the GiftCard module and hey presto! You can view the Products page once more. 1 Link to comment Share on other sites More sharing options...
kandalf Posted October 10, 2018 Share Posted October 10, 2018 I have the same problem but I don't have the gift card module, how do you find the problematic module? Link to comment Share on other sites More sharing options...
wonderwebs Posted October 11, 2018 Author Share Posted October 11, 2018 You can try activating 'debug mode' under Advanced Parameters -> Performance to see if that offers any clues, you will see error messages on screen. If that doesn't help, try disabling all modules, then gradually re-add them one at a time and check to see if your shop is still online. When it breaks you will know which module has caused the issue, disable it again and enable all the other modules. Link to comment Share on other sites More sharing options...
MortenH Posted October 9, 2019 Share Posted October 9, 2019 I have the same problem with products under catalog giving a 500 error. I tried to disable all module with no luck, everything but the product page is working fine. I get the same twig run time error as wonderwebs. On top of the twig run time error i also get this: Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException You have requested a non-existent service "request". Did you mean one of these: "data_collector.request", "monolog.logger.request", "request_stack", "router.request_context", "validate_request_listener", "argument_resolver.request". etc. etc. in vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Container.php (line 348) Container->get('request')in modules/relatedproducts/controllers/hook/admin/Header.php (line 26) LinevenRlpAdminHeaderController->indexAction()in modules/relatedproducts/src/Core/Controller.php (line 101) I have tried to disable all modules, included the relatedproducts one. I have also tried clearing the var/cache manually. Link to comment Share on other sites More sharing options...
Bartus Posted March 10, 2022 Share Posted March 10, 2022 On 10/9/2019 at 9:51 AM, MortenH said: I have the same problem with products under catalog giving a 500 error. I tried to disable all module with no luck, everything but the product page is working fine. I get the same twig run time error as wonderwebs. On top of the twig run time error i also get this: Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException You have requested a non-existent service "request". Did you mean one of these: "data_collector.request", "monolog.logger.request", "request_stack", "router.request_context", "validate_request_listener", "argument_resolver.request". etc. etc. in vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Container.php (line 348) Container->get('request')in modules/relatedproducts/controllers/hook/admin/Header.php (line 26) LinevenRlpAdminHeaderController->indexAction()in modules/relatedproducts/src/Core/Controller.php (line 101) I have tried to disable all modules, included the relatedproducts one. I have also tried clearing the var/cache manually. you have found the solution or problem? thanx Link to comment Share on other sites More sharing options...
JBW Posted March 11, 2022 Share Posted March 11, 2022 On 3/10/2022 at 8:41 AM, Bartus said: you have found the solution or problem? thanx This is a very old thread and the issues were caused by different 3rd party modules. Whats your error message? Link to comment Share on other sites More sharing options...
Bartus Posted March 11, 2022 Share Posted March 11, 2022 5 minutes ago, JBW said: This is a very old thread and the issues were caused by different 3rd party modules. Whats your error message? Yes, it was a prestashop module that come suddenly in my store and was not upgraded (v1.6) 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