Update von 5.6.2 auf 5.6.3 schlägt fehlt

Hallo zusammen,

beim Versuch das Update von 5.6.2 auf 5.6.3 in einer Testumgebung durchzuführen, kommt es beim aufräumen zu nachfolgendem Fehler.  Ich entnehme der Meldung, dass der Fehler offenbar mit dem Shopware Plugin Hide Prices zusammen hängt. Hat jemand anderes bereits den selben Fehler bei sich entdecken können?

Slim Application Error

The application could not run because of the following error:

Details

Type:  ErrorException

Code:  2

Message:  Declaration of SwagHidePrices\SwagHidePrices::install() should be compatible with Shopware\Components\Plugin::install(Shopware\Components\Plugin\Context\InstallContext $context)

File:  /html/shopware/swstaging/custom/plugins/SwagHidePrices/SwagHidePrices.php

Trace  

#0 [internal function]: Slim\Slim::handleErrors(2, ‘Declaration of …’, ‘/html/shopware/…’, 0, Array)

#1 /html/shopware/swstaging/engine/Shopware/Bundle/PluginInstallerBundle/Service/PluginInitializer.php(159): call_user_func(Array, 2, ‘Declaration of …’, ‘/html/shopware/…’, 0, Array)

#2 /html/shopware/swstaging/vendor/symfony/class-loader/Psr4ClassLoader.php(71): Shopware\Bundle\PluginInstallerBundle\Service\PluginInitializer->errorHandler(2, ‘Declaration of …’, ‘/html/shopware/…’, 0, Array)

#3 /html/shopware/swstaging/vendor/symfony/class-loader/Psr4ClassLoader.php(71): require()

#4 [internal function]: Symfony\Component\ClassLoader\Psr4ClassLoader->loadClass(‘SwagHidePrices\…’)

#5 [internal function]: spl_autoload_call(‘SwagHidePrices\…’)

#6 /html/shopware/swstaging/engine/Shopware/Bundle/PluginInstallerBundle/Service/PluginInitializer.php(118): class_exists(’\SwagHidePrices…’)

#7 /html/shopware/swstaging/engine/Shopware/Kernel.php(484): Shopware\Bundle\PluginInstallerBundle\Service\PluginInitializer->initializePlugins()

#8 /html/shopware/swstaging/engine/Shopware/Kernel.php(235): Shopware\Kernel->initializePlugins()

#9 /html/shopware/swstaging/recovery/update/src/DependencyInjection/Container.php(177): Shopware\Kernel->boot()

#10 /html/shopware/swstaging/recovery/common/vendor/pimple/pimple/src/Pimple/Container.php(118): Shopware\Recovery\Update\DependencyInjection\Container->Shopware\Recovery\Update\DependencyInjection{closure}(Object(Pimple\Container))

#11 /html/shopware/swstaging/recovery/update/src/DependencyInjection/Container.php(186): Pimple\Container->offsetGet(‘shopware.contai…’)

#12 /html/shopware/swstaging/recovery/common/vendor/pimple/pimple/src/Pimple/Container.php(118): Shopware\Recovery\Update\DependencyInjection\Container->Shopware\Recovery\Update\DependencyInjection{closure}(Object(Pimple\Container))

#13 /html/shopware/swstaging/recovery/common/src/DependencyInjection/Container.php(71): Pimple\Container->offsetGet(‘shopware.theme_…’)

#14 /html/shopware/swstaging/recovery/update/src/app.php(169): Shopware\Recovery\Common\DependencyInjection\Container->get(‘shopware.theme_…’)

#15 [internal function]: {closure}()

#16 /html/shopware/swstaging/recovery/common/vendor/slim/slim/Slim/Route.php(468): call_user_func_array(Object(Closure), Array)

#17 /html/shopware/swstaging/recovery/common/vendor/slim/slim/Slim/Slim.php(1355): Slim\Route->dispatch()

#18 /html/shopware/swstaging/recovery/common/vendor/slim/slim/Slim/Middleware/Flash.php(85): Slim\Slim->call()

#19 /html/shopware/swstaging/recovery/common/vendor/slim/slim/Slim/Middleware/MethodOverride.php(92): Slim\Middleware\Flash->call()

#20 /html/shopware/swstaging/recovery/common/vendor/slim/slim/Slim/Middleware/PrettyExceptions.php(67): Slim\Middleware\MethodOverride->call()

#21 /html/shopware/swstaging/recovery/common/vendor/slim/slim/Slim/Slim.php(1300): Slim\Middleware\PrettyExceptions->call()

#22 /html/shopware/swstaging/recovery/update/index.php(57): Slim\Slim->run()

#23 {main}

Bei dem Plugin steht dir wohl Support zu, also nutze ihn doch.

Dieser Quick-Fix tut’s bei mir:
 

diff --git a/custom/plugins/SwagHidePrices/SwagHidePrices.php b/custom/plugins/SwagHidePrices/SwagHidePrices.php
index 50a278af..aba31110 100644
--- a/custom/plugins/SwagHidePrices/SwagHidePrices.php
+++ b/custom/plugins/SwagHidePrices/SwagHidePrices.php
@@ -36,7 +36,7 @@ class SwagHidePrices extends Plugin
 
     public const DO_NOT_CACHE_PRICE_TAG = 'frontend/detail price';
 
- public function install()
+ public function install(Plugin\Context\InstallContext $context)
     {
         $this->installNoCacheTag();
     }

Ticket SW-24988

Happy selling

Geert

1 „Gefällt mir“