anreig Posted March 8, 2017 Share Posted March 8, 2017 (edited) Hi, When I'm trying to change order status i'm getting this error on Prestashop 1.7.0.4: InactiveScopeException in appDevDebugProjectContainer.php line 3794: You cannot create a service ("request") of an inactive scope ("request"). in appDevDebugProjectContainer.php line 3794 at appDevDebugProjectContainer->getRequestService() in bootstrap.php.cache line 2222 at Container->get('request') in HookEvent.php line 67 at HookEvent->getHookParameters() in LegacyHookSubscriber.php line 290 at LegacyHookSubscriber->__call('call_5_71', array(object(RenderingHookEvent), 'actionUpdateQuantity', null)) at LegacyHookSubscriber->call_5_71(object(RenderingHookEvent), 'actionUpdateQuantity', null) at call_user_func(array(object(LegacyHookSubscriber), 'call_5_71'), object(RenderingHookEvent), 'actionUpdateQuantity', null) in HookDispatcher.php line 87 at HookDispatcher->doDispatch(array(array(object(LegacyHookSubscriber), 'call_5_71')), 'actionUpdateQuantity', object(RenderingHookEvent)) in classes.php line 1773 at EventDispatcher->dispatch('actionUpdateQuantity', object(RenderingHookEvent)) in HookDispatcher.php line 57 at HookDispatcher->dispatch('actionUpdateQuantity', object(RenderingHookEvent)) in HookDispatcher.php line 136 at HookDispatcher->renderForParameters('actionUpdateQuantity', array('id_product' => '14', 'id_product_attribute' => '5', 'quantity' => '16')) in HookManager.php line 63 at HookManager->exec('actionUpdateQuantity', array('id_product' => '14', 'id_product_attribute' => '5', 'quantity' => '16')) in StockManager.php line 153 at StockManager->updateQuantity(object(Product), '5', '1', null) in StockAvailable.php line 472 at StockAvailableCore::updateQuantity('14', '5', '1', '1') in OrderHistory.php line 224 at OrderHistoryCore->changeIdOrderState('6', object(Order), false) in AdminOrdersController.php line 578 at AdminOrdersControllerCore->postProcess() in Controller.php line 190 at ControllerCore->run() in Dispatcher.php line 366 at DispatcherCore->dispatch() in index.php line 95 Any solution about this? Anyone knows who to solve it? Thank you very much. Edited March 8, 2017 by anreig (see edit history) Link to comment Share on other sites More sharing options...
casiseb Posted March 15, 2017 Share Posted March 15, 2017 (edited) Hello UP please help for this error. Impossible canceled order InactiveScopeException in appDevDebugProjectContainer.php line 3794: You cannot create a service ("request") of an inactive scope ("request"). in appDevDebugProjectContainer.php line 3794 at appDevDebugProjectContainer->getRequestService() in bootstrap.php.cache line 2222 at Container->get('request') in HookEvent.php line 67 at HookEvent->getHookParameters() in LegacyHookSubscriber.php line 290 at LegacyHookSubscriber->__call('call_5_57', array(object(RenderingHookEvent), 'actionUpdateQuantity', null)) at LegacyHookSubscriber->call_5_57(object(RenderingHookEvent), 'actionUpdateQuantity', null) at call_user_func(array(object(LegacyHookSubscriber), 'call_5_57'), object(RenderingHookEvent), 'actionUpdateQuantity', null) in HookDispatcher.php line 87 at HookDispatcher->doDispatch(array(array(object(LegacyHookSubscriber), 'call_5_57')), 'actionUpdateQuantity', object(RenderingHookEvent)) in classes.php line 1773 at EventDispatcher->dispatch('actionUpdateQuantity', object(RenderingHookEvent)) in HookDispatcher.php line 57 at HookDispatcher->dispatch('actionUpdateQuantity', object(RenderingHookEvent)) in HookDispatcher.php line 136 at HookDispatcher->renderForParameters('actionUpdateQuantity', array('id_product' => '32', 'id_product_attribute' => '0', 'quantity' => '50')) in HookManager.php line 63 at HookManager->exec('actionUpdateQuantity', array('id_product' => '32', 'id_product_attribute' => '0', 'quantity' => '50')) in StockManager.php line 153 at StockManager->updateQuantity(object(Product), '0', '1', null) in StockAvailable.php line 472 at StockAvailableCore::updateQuantity('32', '0', '1', '1') in OrderHistory.php line 224 at OrderHistoryCore->changeIdOrderState('6', object(Order), false) in AdminOrdersController.php line 578 at AdminOrdersControllerCore->postProcess() in Controller.php line 190 at ControllerCore->run() in Dispatcher.php line 366 at DispatcherCore->dispatch() in index.php line 95 Edited March 15, 2017 by casiseb (see edit history) Link to comment Share on other sites More sharing options...
Arteinfo Posted March 16, 2017 Share Posted March 16, 2017 InactiveScopeException in appDevDebugProjectContainer.php line 3794: You cannot create a service ("request") of an inactive scope ("request"). in appDevDebugProjectContainer.php line 3794 at appDevDebugProjectContainer->getRequestService() in bootstrap.php.cache line 2222 at Container->get('request') in HookEvent.php line 67 at HookEvent->getHookParameters() in LegacyHookSubscriber.php line 290 at LegacyHookSubscriber->__call('call_5_68', array(object(RenderingHookEvent), 'actionUpdateQuantity', null)) at LegacyHookSubscriber->call_5_68(object(RenderingHookEvent), 'actionUpdateQuantity', null) at call_user_func(array(object(LegacyHookSubscriber), 'call_5_68'), object(RenderingHookEvent), 'actionUpdateQuantity', null) in HookDispatcher.php line 87 at HookDispatcher->doDispatch(array(array(object(LegacyHookSubscriber), 'call_5_68')), 'actionUpdateQuantity', object(RenderingHookEvent)) in classes.php line 1773 at EventDispatcher->dispatch('actionUpdateQuantity', object(RenderingHookEvent)) in HookDispatcher.php line 57 at HookDispatcher->dispatch('actionUpdateQuantity', object(RenderingHookEvent)) in HookDispatcher.php line 136 at HookDispatcher->renderForParameters('actionUpdateQuantity', array('id_product' => '13', 'id_product_attribute' => '0', 'quantity' => '1000')) in HookManager.php line 63 at HookManager->exec('actionUpdateQuantity', array('id_product' => '13', 'id_product_attribute' => '0', 'quantity' => '1000')) in StockManager.php line 153 at StockManager->updateQuantity(object(Product), '0', '1', null) in StockAvailable.php line 472 at StockAvailableCore::updateQuantity('13', '0', '1', '1') in OrderHistory.php line 232 at OrderHistoryCore->changeIdOrderState('6', object(Order), false) in AdminOrdersController.php line 578 at AdminOrdersControllerCore->postProcess() in Controller.php line 190 at ControllerCore->run() in Dispatcher.php line 366 at DispatcherCore->dispatch() in index.php line 95 Same problem with PS 1.7.0.5 Link to comment Share on other sites More sharing options...
anreig Posted March 16, 2017 Author Share Posted March 16, 2017 I downgrade my PS to 1.6. 1.7 works very bad and a lot modules are not supported to this version. Link to comment Share on other sites More sharing options...
Arteinfo Posted March 16, 2017 Share Posted March 16, 2017 I downgrade my PS to 1.6. 1.7 works very bad and a lot modules are not supported to this version. Very true, but I'm trying to 1.7 of a small ecommerce to try it in real life. log error: mod_fcgid: stderr: PHP Fatal error: Uncaught exception 'Symfony\\Component\\DependencyInjection\\Exception\\InactiveScopeException' with message 'You cannot create a service ("request") of an inactive scope ("request").' in /var/www/vhosts/mydomain.com/httpdocs/app/cache/prod/appProdProjectContainer.php:3443, referer: http://www.mydomain.com/adminLEO/index.php?controller=AdminOrders&id_order=1&vieworder&token=2b6ce19d871b67828f2d7ebd564a6806 mod_fcgid: stderr: Stack trace:, referer: http://www.mydomain.com/adminLEO/index.php?controller=AdminOrders&id_order=1&vieworder&token=2b6ce19d871b67828f2d7ebd564a6806 mod_fcgid: stderr: #0 /var/www/vhosts/mydomain.com/httpdocs/app/bootstrap.php.cache(2222): appProdProjectContainer->getRequestService(), referer: http://www.mydomain.com/adminLEO/index.php?controller=AdminOrders&id_order=1&vieworder&token=2b6ce19d871b67828f2d7ebd564a6806 mod_fcgid: stderr: #1 /var/www/vhosts/mydomain.com/httpdocs/src/PrestaShopBundle/Service/Hook/HookEvent.php(67): Symfony\\Component\\DependencyInjection\\Container->get('request'), referer: http://www.mydomain.com/adminLEO/index.php?controller=AdminOrders&id_order=1&vieworder&token=2b6ce19d871b67828f2d7ebd564a6806 mod_fcgid: stderr: #2 /var/www/vhosts/mydomain.com/httpdocs/src/Adapter/LegacyHookSubscriber.php(290): PrestaShopBundle\\Service\\Hook\\HookEvent->getHookParameters(), referer: http://www.mydomain.com/adminLEO/index.php?controller=AdminOrders&id_order=1&vieworder&token=2b6ce19d871b67828f2d7ebd564a6806 mod_fcgid: stderr: #3 [internal function]: PrestaShop\\PrestaShop\\Adapter\\LegacyHookSubscriber->__call('call_5_68', Array), referer: http://www.mydomain.com/adminLEO/index.php?controller=AdminOrders&id_order=1&vieworder&token=2b6ce19d871b67828f2d7ebd564a6806 mod_fcgid: stderr: #4 [internal function]: PrestaShop\\PrestaShop\\Adapter\\LegacyHookSubscriber->call_5_68(Object(PrestaShopBundle\\Service\\Hook\\RenderingHookEvent), 'actionUpdateQua...', NULL), referer: http://www.mydomain.com/adminLEO/index.php?controller=AdminOrders&id_order=1&vieworder&token=2b6ce19d871b67828f2d7ebd564a6806 mod_fcgid: stderr: #5 /var/www/vhosts/mydomain.com/httpdocs/ in /var/www/vhosts/mydomain.com/httpdocs/app/bootstrap.php.cache on line 3216, referer: http://www.mydomain.com/adminLEO/index.php?controller=AdminOrders&id_order=1&vieworder&token=2b6ce19d871b67828f2d7ebd564a6806 Link to comment Share on other sites More sharing options...
anreig Posted March 16, 2017 Author Share Posted March 16, 2017 When occurs this error? Cancelling order too? Link to comment Share on other sites More sharing options...
anreig Posted March 16, 2017 Author Share Posted March 16, 2017 Will be fixed on next version PS 1.7.1.0. So we have to wait. Link to comment Share on other sites More sharing options...
kornwaikas Posted March 30, 2017 Share Posted March 30, 2017 It's a problem with module "Mail Alerts". If you disable it the problem disappeared Hope prestashop fix it soon 1 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