Jump to content

Prestashop 1.7.0.5 errore annullamento ordini - InactiveScopeException


Recommended Posts

In prestashop 1.7.0.6 annullando un ordine ottengo errore 500 del server. 

 

Nel file di log vi è il seguente errore:

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

Attivando il Debug:

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

Ho provato a disattivare tutti i moduli non nativi e gli override, ma il problema permane

Link to comment
Share on other sites

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