View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0007676 | module PayPal Checkout | module PayPal checkout - sub | public | 2024-06-18 06:41 | 2024-08-15 20:05 |
| Reporter | SimonGassenschmidt | Assigned To | |||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | resolved | Resolution | fixed | ||
| Product Version | 2.4.0 / 3.4.0 | ||||
| Fixed in Version | 2.5.0 | ||||
| Summary | 0007676: service in deactivate Event prevents deactivation due to error, if file gets corrupted. | ||||
| Description | In 2.4.X there is the services for Logger implemented. This Services is called in l. 168 of vendor/oxid-solution-catalysts/paypal-module/src/Core/Events/Events.php if generetad_servcies.yaml is corrupted or missing this may lead to error, e.g. redeployment of shop per pipeline. to my testing this would fix this issue: $logger = $container->get(Logger::class); -> $psrLogger = $container->get(\Psr\Log\LoggerInterface::class); $logger = new Logger($psrLogger) | ||||
| Steps To Reproduce | 1. installment Shop 6.3 - 6.5, 2. installation PPC 2.4.X 3. activation of PPC 4. deletion of generated_services.yaml 5. Clear cache -> ./vendor/bin/oe-console oe:cache:clear 6. try to deactivate PPC, you will get error down under. other modules with services can be deativated. | ||||
| Additional Information | [2024-06-17 13:49:30] OXID Logger.ERROR: You have requested a non-existent service "OxidSolutionCatalysts\PayPal\Service\Logger". ["[object] (Symfony\\Component\\DependencyInjection\\Exception\\ServiceNotFoundException(code: 0): You have requested a non-existent service \"OxidSolutionCatalysts\\PayPal\\Service\\Logger\". at /var/www/html/vendor/symfony/dependency-injection/Container.php:348)\n[stacktrace]\n#0 /var/www/html/vendor/oxid-solution-catalysts/paypal-module/src/Core/Events/Events.php(168): Symfony\\Component\\DependencyInjection\\Container->get('OxidSolutionCat...')\n#1 /var/www/html/vendor/oxid-solution-catalysts/paypal-module/src/Core/Events/Events.php(68): OxidSolutionCatalysts\\PayPal\\Core\\Events\\Events::getModuleSettingsService()\n#2 /var/www/html/vendor/oxid-esales/oxideshop-ce/source/Internal/Framework/Module/Setup/EventSubscriber/DispatchLegacyEventsSubscriber.php(83): OxidSolutionCatalysts\\PayPal\\Core\\Events\\Events::onDeactivate()\n#3 /var/www/html/vendor/oxid-esales/oxideshop-ce/source/Internal/Framework/Module/Setup/EventSubscriber/DispatchLegacyEventsSubscriber.php(62): OxidEsales\\EshopCommunity\\Internal\\Framework\\Module\\Setup\\EventSubscriber\\DispatchLegacyEventsSubscriber->executeMetadataEvent('onDeactivate', 'osc_paypal', 1)\n#4 [internal function]: OxidEsales\\EshopCommunity\\Internal\\Framework\\Module\\Setup\\EventSubscriber\\DispatchLegacyEventsSubscriber->executeMetadataOnDeactivationEvent(Object(OxidEsales\\EshopCommunity\\Internal\\Framework\\Module\\Setup\\Event\\BeforeModuleDeactivationEvent), 'OxidEsales\\\\Esho...', Object(OxidEsales\\EshopCommunity\\Internal\\Framework\\Event\\ShopAwareEventDispatcher))\n#5 /var/www/html/vendor/oxid-esales/oxideshop-ce/source/Internal/Framework/Event/ShopAwareEventDispatcher.php(36): call_user_func(Array, Object(OxidEsales\\EshopCommunity\\Internal\\Framework\\Module\\Setup\\Event\\BeforeModuleDeactivationEvent), 'OxidEsales\\\\Esho...', Object(OxidEsales\\EshopCommunity\\Internal\\Framework\\Event\\ShopAwareEventDispatcher))\n#6 /var/www/html/vendor/symfony/event-dispatcher/EventDispatcher.php(44): OxidEsales\\EshopCommunity\\Internal\\Framework\\Event\\ShopAwareEventDispatcher->doDispatch(Array, 'OxidEsales\\\\Esho...', Object(OxidEsales\\EshopCommunity\\Internal\\Framework\\Module\\Setup\\Event\\BeforeModuleDeactivationEvent))\n#7 /var/www/html/vendor/oxid-esales/oxideshop-ce/source/Internal/Framework/Module/Setup/Service/ModuleActivationService.php(126): Symfony\\Component\\EventDispatcher\\EventDispatcher->dispatch('OxidEsales\\\\Esho...', Object(OxidEsales\\EshopCommunity\\Internal\\Framework\\Module\\Setup\\Event\\BeforeModuleDeactivationEvent))\n#8 /var/www/html/vendor/oxid-esales/oxideshop-ce/source/Internal/Framework/Module/Setup/Bridge/ModuleActivationBridge.php(62): OxidEsales\\EshopCommunity\\Internal\\Framework\\Module\\Setup\\Service\\ModuleActivationService->deactivate('osc_paypal', 1)\n#9 /var/www/html/vendor/oxid-esales/oxideshop-ce/source/Application/Controller/Admin/ModuleMain.php(96): OxidEsales\\EshopCommunity\\Internal\\Framework\\Module\\Setup\\Bridge\\ModuleActivationBridge->deactivate('osc_paypal', 1)\n#10 /var/www/html/vendor/oxid-esales/oxideshop-ce/source/Core/Controller/BaseController.php(534): OxidEsales\\EshopCommunity\\Application\\Controller\\Admin\\ModuleMain->deactivateModule()\n#11 /var/www/html/vendor/oxid-esales/oxideshop-ce/source/Core/ShopControl.php(347): OxidEsales\\EshopCommunity\\Core\\Controller\\BaseController->executeFunction('deactivateModul...')\n#12 /var/www/html/vendor/oxid-esales/oxideshop-ce/source/Core/ShopControl.php(280): OxidEsales\\EshopCommunity\\Core\\ShopControl->executeAction(Object(OxidEsales\\Eshop\\Application\\Controller\\Admin\\ModuleMain), 'deactivateModul...')\n#13 /var/www/html/vendor/oxid-esales/oxideshop-ce/source/Core/ShopControl.php(142): OxidEsales\\EshopCommunity\\Core\\ShopControl->_process('OxidEsales\\\\Esho...', 'deactivateModul...', NULL, NULL)\n#14 /var/www/html/vendor/oxid-esales/oxideshop-ce/source/Core/Oxid.php(27): OxidEsales\\EshopCommunity\\Core\\ShopControl->start()\n#15 /var/www/html/source/index.php(16): OxidEsales\\EshopCommunity\\Core\\Oxid::run()\n#16 /var/www/html/source/admin/index.php(12): require_once('/var/www/html/s...')\n#17 {main}\n"] [] | ||||
| Tags | No tags attached. | ||||