DHL Adapter - Snippet Manager - Fehler nach Update auf 5.6.1

Wir haben die Pickware Plugins DHL Adapter, Deutsche Post Adapter und Bankabgleich im Einsatz.

Nach dem Update auf Shopware 5.6.1 liefert der DHL Adapter folgende Fehlermeldung:

Directory name must not be empty. in engine/Shopware/Components/Snippet/Manager.php on line 337

#0 engine/Shopware/Components/Snippet/Manager.php(337): DirectoryIterator->__construct('')
#1 engine/Shopware/Components/Snippet/Manager.php(275): Shopware_Components_Snippet_Manager->getThemeDirs('')
#2 engine/Shopware/Components/Snippet/Manager.php(86): Shopware_Components_Snippet_Manager->getConfigDirs('')
#3 engine/Shopware/Plugins/Community/Backend/ViisonBankTransferMatching/ViisonCommon/Components/Localization/SnippetManagerService.php(27): Shopware_Components_Snippet_Manager->__construct(Object(Shopware\Components\Model\ModelManager), Array, Array, '')
#4 [internal function]: Shopware\Plugins\ViisonCommon\Components\Localization\SnippetManagerService->__construct(Object(ShopwareProduction28bc586ab4272951a1a70c4eee976c9e2abe7d11ProjectContainer), Object(Enlight_Config), '/var/www/natura...')
#5 engine/Library/Enlight/Class.php(183): ReflectionClass->newInstanceArgs(Array)
#6 engine/Shopware/Plugins/Community/Backend/ViisonBankTransferMatching/ViisonCommon/Classes/Subscribers/Services.php(79): Enlight_Class::Instance('Shopware\\Plugin...', Array)
#7 engine/Library/Enlight/Event/Handler/Default.php(87): Shopware\Plugins\ViisonCommon\Classes\Subscribers\Services->onInitService(Object(Enlight_Event_EventArgs))
#8 engine/Library/Enlight/Event/EventManager.php(251): Enlight_Event_Handler_Default->execute(Object(Enlight_Event_EventArgs))
#9 engine/Shopware/Components/DependencyInjection/Container.php(203): Enlight_Event_EventManager->notifyUntil('Enlight_Bootstr...', Object(Enlight_Event_EventArgs))
#10 engine/Shopware/Components/DependencyInjection/Container.php(140): Shopware\Components\DependencyInjection\Container->doLoad('viison_common.s...', 'viison_common.s...', 1)
#11 engine/Shopware/Plugins/Community/Backend/ViisonDHL/Subscribers/Services.php(28): Shopware\Components\DependencyInjection\Container->get('viison_common.s...')
#12 engine/Shopware/Plugins/Community/Backend/ViisonBankTransferMatching/ViisonCommon/Classes/Subscribers/Services.php(86): Shopware\Plugins\ViisonDHL\Subscribers\Services::Shopware\Plugins\ViisonDHL\Subscribers\{closure}(Object(ShopwareProduction28bc586ab4272951a1a70c4eee976c9e2abe7d11ProjectContainer), Object(Enlight_Config), '/var/www/natura...')
#13 engine/Library/Enlight/Event/Handler/Default.php(87): Shopware\Plugins\ViisonCommon\Classes\Subscribers\Services->onInitService(Object(Enlight_Event_EventArgs))
#14 engine/Library/Enlight/Event/EventManager.php(251): Enlight_Event_Handler_Default->execute(Object(Enlight_Event_EventArgs))
#15 engine/Shopware/Components/DependencyInjection/Container.php(203): Enlight_Event_EventManager->notifyUntil('Enlight_Bootstr...', Object(Enlight_Event_EventArgs))
#16 engine/Shopware/Components/DependencyInjection/Container.php(140): Shopware\Components\DependencyInjection\Container->doLoad('viison_dhl.ship...', 'viison_dhl.ship...', 1)
#17 engine/Shopware/Plugins/Community/Backend/ViisonDHL/Classes/DHLCommunication.php(69): Shopware\Components\DependencyInjection\Container->get('viison_dhl.ship...')
#18 engine/Shopware/Plugins/Community/Backend/ViisonDHL/Classes/ShippingLabelGenerator.php(36): Shopware\Plugins\ViisonDHL\Classes\DHLCommunication->__construct()
#19 engine/Shopware/Plugins/Community/Backend/ViisonDHL/Controllers/Backend/ViisonDHLOrder.php(30): Shopware\Plugins\ViisonDHL\Classes\ShippingLabelGenerator->__construct()
#20 [internal function]: Shopware_Controllers_Backend_ViisonDHLOrder->__construct(Object(Enlight_Controller_Request_RequestHttp), Object(Enlight_Controller_Response_ResponseHttp))
#21 engine/Library/Enlight/Class.php(183): ReflectionClass->newInstanceArgs(Array)
#22 engine/Shopware/Plugins/Community/Backend/ViisonBankTransferMatching/ViisonCommon/Components/ControllerFactoryService.php(52): Enlight_Class::Instance('Shopware_Proxie...', Array)
#23 engine/Shopware/Plugins/Community/Backend/ViisonBankTransferMatching/ViisonCommon/Components/SubApplicationLoading/SubApplicationCodeGenerator/AbstractSubApplicationCodeGenerator.php(137): Shopware\Plugins\ViisonCommon\Components\ControllerFactoryService->getController('Shopware_Contro...', Object(Enlight_Controller_Request_RequestHttp), Object(Enlight_Controller_Response_ResponseHttp))
#24 engine/Shopware/Plugins/Community/Backend/ViisonBankTransferMatching/ViisonCommon/Components/SubApplicationLoading/SubApplicationCodeGenerator/AbstractSubApplicationCodeGenerator.php(91): Shopware\Plugins\ViisonCommon\Components\SubApplicationLoading\SubApplicationCodeGenerator\AbstractSubApplicationCodeGenerator->loadBackendController()
#25 engine/Shopware/Plugins/Community/Backend/ViisonBankTransferMatching/ViisonCommon/Components/SubApplicationLoading/SubApplicationCodeGenerator/SmartySubApplicationCodeGenerator.php(64): Shopware\Plugins\ViisonCommon\Components\SubApplicationLoading\SubApplicationCodeGenerator\AbstractSubApplicationCodeGenerator->getViewParameters()
#26 engine/Shopware/Plugins/Community/Backend/ViisonBankTransferMatching/ViisonCommon/Components/SubApplicationLoading/SubApplication.php(56): Shopware\Plugins\ViisonCommon\Components\SubApplicationLoading\SubApplicationCodeGenerator\SmartySubApplicationCodeGenerator->generateSubApplicationCode()
#27 engine/Shopware/Plugins/Community/Backend/ViisonBankTransferMatching/ViisonCommon/Components/SubApplicationLoading/JsLoaderService.php(119): Shopware\Plugins\ViisonCommon\Components\SubApplicationLoading\SubApplication->getCode()
#28 engine/Shopware/Plugins/Community/Backend/ViisonBankTransferMatching/ViisonCommon/Components/SubApplicationLoading/JsLoaderService.php(127): Shopware\Plugins\ViisonCommon\Components\SubApplicationLoading\JsLoaderService->extendSubAppRequestRecursively('ViisonDHLOrder', '', Object(Shopware\Plugins\ViisonCommon\Components\SubApplicationLoading\SubApplicationRegistry), Array)
#29 engine/Shopware/Plugins/Community/Backend/ViisonBankTransferMatching/ViisonCommon/Components/SubApplicationLoading/JsLoaderService.php(74): Shopware\Plugins\ViisonCommon\Components\SubApplicationLoading\JsLoaderService->extendSubAppRequestRecursively('Order', 'Ext.define('Sho...', Object(Shopware\Plugins\ViisonCommon\Components\SubApplicationLoading\SubApplicationRegistry))
#30 engine/Shopware/Plugins/Community/Backend/ViisonBankTransferMatching/ViisonCommon/Subscriber/Common.php(272): Shopware\Plugins\ViisonCommon\Components\SubApplicationLoading\JsLoaderService->extendSubAppRequest('Order', 'Ext.define('Sho...')
#31 engine/Library/Enlight/Event/Handler/Default.php(87): Shopware\Plugins\ViisonCommon\Subscriber\Common->onViewRendererFilterRender(Object(Enlight_Event_EventArgs))
#32 engine/Library/Enlight/Event/EventManager.php(296): Enlight_Event_Handler_Default->execute(Object(Enlight_Event_EventArgs))
#33 engine/Library/Enlight/Controller/Plugins/ViewRenderer/Bootstrap.php(216): Enlight_Event_EventManager->filter('Enlight_Plugins...', '/**\n * Shopware...', Object(Enlight_Event_EventArgs))
#34 engine/Library/Enlight/Controller/Plugins/ViewRenderer/Bootstrap.php(238): Enlight_Controller_Plugins_ViewRenderer_Bootstrap->renderTemplate(Object(Enlight_Template_Default))
#35 engine/Library/Enlight/Controller/Plugins/ViewRenderer/Bootstrap.php(132): Enlight_Controller_Plugins_ViewRenderer_Bootstrap->render()
#36 engine/Library/Enlight/Event/Handler/Default.php(87): Enlight_Controller_Plugins_ViewRenderer_Bootstrap->onPostDispatch(Object(Enlight_Controller_ActionEventArgs))
#37 engine/Library/Enlight/Event/EventManager.php(214): Enlight_Event_Handler_Default->execute(Object(Enlight_Controller_ActionEventArgs))
#38 engine/Library/Enlight/Controller/Action.php(234): Enlight_Event_EventManager->notify('Enlight_Control...', Object(Enlight_Controller_ActionEventArgs))
#39 engine/Library/Enlight/Controller/Dispatcher/Default.php(478): Enlight_Controller_Action->dispatch('indexAction')
#40 engine/Library/Enlight/Controller/Front.php(228): Enlight_Controller_Dispatcher_Default->dispatch(Object(Enlight_Controller_Request_RequestHttp), Object(Enlight_Controller_Response_ResponseHttp))
#41 engine/Shopware/Kernel.php(185): Enlight_Controller_Front->dispatch()
#42 vendor/symfony/http-kernel/HttpCache/SubRequestHandler.php(102): Shopware\Kernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#43 vendor/symfony/http-kernel/HttpCache/HttpCache.php(448): Symfony\Component\HttpKernel\HttpCache\SubRequestHandler::handle(Object(Shopware\Kernel), Object(Symfony\Component\HttpFoundation\Request), 1, true)
#44 engine/Shopware/Components/HttpCache/AppCache.php(256): Symfony\Component\HttpKernel\HttpCache\HttpCache->forward(Object(Symfony\Component\HttpFoundation\Request), true, NULL)
#45 vendor/symfony/http-kernel/HttpCache/HttpCache.php(238): Shopware\Components\HttpCache\AppCache->forward(Object(Symfony\Component\HttpFoundation\Request), true)
#46 engine/Shopware/Components/HttpCache/AppCache.php(99): Symfony\Component\HttpKernel\HttpCache\HttpCache->pass(Object(Symfony\Component\HttpFoundation\Request), true)
#47 shopware.php(122): Shopware\Components\HttpCache\AppCache->handle(Object(Symfony\Component\HttpFoundation\Request))
#48 {main}

Offenbar gibt es ein Problem mit dem Snippet Manager?

Kennt jemand das Problem und kann mir eine Lösung anbieten? @Pickware

Vorerst konnte ich dem Problem aus dem Weg gehen, indem ich die Datei(en) unter engine/Shopware/Plugins/Community/Backend/ViisonPLUGIN/ViisonCommon/Components/Localization/SnippetManagerService.php wie folgt geändert habe:

# Line 27
parent::__construct($entityManager, $container->getParameter('shopware.plugin_directories'), $snippetParam, '');

geändert in

# Line 27
parent::__construct($entityManager, $container->getParameter('shopware.plugin_directories'), $snippetParam, null);

Das Problem ist hier der leere Parameter $themeDir 

# engine/Shopware/Components/Snippet/Manager.php
# Line 73
public function __construct(ModelManager $modelManager, array $pluginDirectories, array $snippetConfig, $themeDir = null)