Fehler bei CMS-Extensions Update (CLI & WI)

Hallo zusammen,

nach einem Plugin-Update per WI folgendes Problem:

  • Stack Trace

ClassNotFoundError

 

 Symfony\Component\ErrorHandler\Error\ClassNotFoundError: Attempted to load class "CmsBlockEntityExtension" from namespace "Swag\CmsExtensions\Extension\Content\Cms\Aggregate\CmsBlock". Did you forget a "use" statement for "Swag\CmsExtensions\Extension\CmsBlockEntityExtension"? at /var/www/html/shopwarehundewelt/var/cache/prod\_h1e78252d7763902adb1a7951d20a1721/ContainerQPi0exg/srcShopware\_Production\_KernelProdContainer.php:4136 at ContainerQPi0exg\srcShopware\_Production\_KernelProdContainer-\>ContainerQPi0exg\{closure}() (/var/www/html/shopwarehundewelt/vendor/shopware/core/Framework/Framework.php:123) at Shopware\Core\Framework\Framework-\>registerEntityExtensions(object(DefinitionInstanceRegistry), object(SalesChannelDefinitionInstanceRegistry), object(ExtensionRegistry)) (/var/www/html/shopwarehundewelt/vendor/shopware/core/Framework/Framework.php:84) at Shopware\Core\Framework\Framework-\>boot() (/var/www/html/shopwarehundewelt/vendor/shopware/core/Kernel.php:143) at Shopware\Core\Kernel-\>boot() (/var/www/html/shopwarehundewelt/vendor/shopware/core/HttpKernel.php:133) at Shopware\Core\HttpKernel-\>doHandle(object(Request), 1, true) (/var/www/html/shopwarehundewelt/vendor/shopware/core/HttpKernel.php:77) at Shopware\Core\HttpKernel-\>handle(object(Request)) (/var/www/html/shopwarehundewelt/public/index.php:83) 

 

in /var/www/html/shopwarehundewelt/var/cache/prod_h1e78252d7763902adb1a7951d20a1721/ContainerQPi0exg/ srcShopware_Production_KernelProdContainer.php (line 4136)

  1.  
  2. return $this->services['Shopware\\Core\\Framework\\DataAbstractionLayer\\ExtensionRegistry'] = new \Shopware\Core\Framework\DataAbstractionLayer\ExtensionRegistry(new RewindableGenerator(function () {
  3. yield 0 => ($this->privates['Shopware\\Storefront\\Theme\\Extension\\SalesChannelExtension'] ?? ($this->privates['Shopware\\Storefront\\Theme\\Extension\\SalesChannelExtension'] = new \Shopware\Storefront\Theme\Extension\SalesChannelExtension()));
  4. yield 1 => ($this->privates['Shopware\\Storefront\\Theme\\Extension\\LanguageExtension'] ?? ($this->privates['Shopware\\Storefront\\Theme\\Extension\\LanguageExtension'] = new \Shopware\Storefront\Theme\Extension\LanguageExtension()));
  5. yield 2 => ($this->privates['Shopware\\Storefront\\Theme\\Extension\\MediaExtension'] ?? ($this->privates['Shopware\\Storefront\\Theme\\Extension\\MediaExtension'] = new \Shopware\Storefront\Theme\Extension\MediaExtension()));
  6. yield 3 => ($this->privates['Swag\\CmsExtensions\\Extension\\Content\\Cms\\Aggregate\\CmsBlock\\CmsBlockEntityExtension'] ?? ($this->privates['Swag\\CmsExtensions\\Extension\\Content\\Cms\\Aggregate\\CmsBlock\\CmsBlockEntityExtension'] = new \Swag\CmsExtensions\Extension\Content\Cms\Aggregate\CmsBlock\CmsBlockEntityExtension()));
  7. yield 4 => ($this->privates['Swag\\CustomizedProducts\\Extension\\CurrencyExtension'] ?? ($this->privates['Swag\\CustomizedProducts\\Extension\\CurrencyExtension'] = new \Swag\CustomizedProducts\Extension\CurrencyExtension()));
  8. yield 5 => ($this->privates['Swag\\CustomizedProducts\\Extension\\LanguageExtension'] ?? ($this->privates['Swag\\CustomizedProducts\\Extension\\LanguageExtension'] = new \Swag\CustomizedProducts\Extension\LanguageExtension()));
  9. yield 6 => ($this->privates['Swag\\CustomizedProducts\\Extension\\MediaExtension'] ?? ($this->privates['Swag\\CustomizedProducts\\Extension\\MediaExtension'] = new \Swag\CustomizedProducts\Extension\MediaExtension()));
  10. yield 7 => ($this->privates['Swag\\CustomizedProducts\\Extension\\ProductExtension'] ?? ($this->privates['Swag\\CustomizedProducts\\Extension\\ProductExtension'] = new \Swag\CustomizedProducts\Extension\ProductExtension()));
  11. yield 8 => ($this->privates['Swag\\CustomizedProducts\\Extension\\RuleExtension'] ?? ($this->privates['Swag\\CustomizedProducts\\Extension\\RuleExtension'] = new \Swag\CustomizedProducts\Extension\RuleExtension()));

in /var/www/html/shopwarehundewelt/vendor/shopware/core/ Kernel.php -> boot (line 143)

  1. // init container
  2. $this->initializeContainer();
  3.  
  4. foreach ($this->getBundles() as $bundle) {
  5. $bundle->setContainer($this->container);
  6. $bundle->boot();
  7. }
  8.  
  9. $this->initializeDatabaseConnectionVariables();
  10.  
  11. $this->booted = true;

 

 

Any ideas??

Per CLI :

 

In srcShopware_Production_KernelProdContainer.php line 4136:

  Attempted to load class „CmsBlockEntityExtension“ from namespace „Swag\CmsE
  xtensions\Extension\Content\Cms\Aggregate\CmsBlock“.
  Did you forget a „use“ statement for „Swag\CmsExtensions\Extension\CmsBlock
  EntityExtension“?

Kann ich das per Konsole regeln, und wenn ja wie?

 

Grüße

Fehler gefunden, die Update Datei von Shopware ist fehlerhaft (Ordner fehlen…)

 

Habe ein Bug-Ticket angelegt…

 

Grüße

Das sind Namespaces geändert worden. Normal reicht es den Cache zu leeren. Das wird momentan noch nicht automatisch getriggert. Kommt aber mit der finalen 6.2.

Gruß
Holger

Den Cache kann ich aber aufgrund der Fehlermeldung nicht mehr leeren, die Meldung überlagert alles in der Konsole.

Lösung war, manuell das Plugin zu verschieben und die alte Version hochzuladen - manuelle Install der neuen Version schlug

mit dem gleichen Ergebnis fehl, Install über WI sowieso.