Jump to content

InactiveScopeException in appDevDebugProjectContainer.php


anreig

Recommended Posts

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 by anreig (see edit history)
Link to comment
Share on other sites

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

  1. in appDevDebugProjectContainer.php line 3794
  2. at appDevDebugProjectContainer->getRequestService() in bootstrap.php.cache line 2222
  3. at Container->get('request') in HookEvent.php line 67
  4. at HookEvent->getHookParameters() in LegacyHookSubscriber.php line 290
  5. at LegacyHookSubscriber->__call('call_5_57', array(object(RenderingHookEvent), 'actionUpdateQuantity', null))
  6. at LegacyHookSubscriber->call_5_57(object(RenderingHookEvent), 'actionUpdateQuantity', null)
  7. at call_user_func(array(object(LegacyHookSubscriber), 'call_5_57'), object(RenderingHookEvent), 'actionUpdateQuantity', null) in HookDispatcher.php line 87
  8. at HookDispatcher->doDispatch(array(array(object(LegacyHookSubscriber), 'call_5_57')), 'actionUpdateQuantity', object(RenderingHookEvent)) in classes.php line 1773
  9. at EventDispatcher->dispatch('actionUpdateQuantity', object(RenderingHookEvent)) in HookDispatcher.php line 57
  10. at HookDispatcher->dispatch('actionUpdateQuantity', object(RenderingHookEvent)) in HookDispatcher.php line 136
  11. at HookDispatcher->renderForParameters('actionUpdateQuantity', array('id_product' => '32', 'id_product_attribute' => '0', 'quantity' => '50')) in HookManager.php line 63
  12. at HookManager->exec('actionUpdateQuantity', array('id_product' => '32', 'id_product_attribute' => '0', 'quantity' => '50')) in StockManager.php line 153
  13. at StockManager->updateQuantity(object(Product), '0', '1', null) in StockAvailable.php line 472
  14. at StockAvailableCore::updateQuantity('32', '0', '1', '1') in OrderHistory.php line 224
  15. at OrderHistoryCore->changeIdOrderState('6', object(Order), false) in AdminOrdersController.php line 578
  16. at AdminOrdersControllerCore->postProcess() in Controller.php line 190
  17. at ControllerCore->run() in Dispatcher.php line 366
  18. at DispatcherCore->dispatch() in index.php line 95
Edited by casiseb (see edit history)
Link to comment
Share on other sites


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

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

  • 2 weeks later...

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