# Fehler bei CMS-Extensions Update (CLI & WI)

**URL:** <https://forum.shopware.com/t/fehler-bei-cms-extensions-update-cli-wi/66546>\
**Category:** Allgemein\
**Created:** [28. April 2020 um 09:42 UTC](https://forum.shopware.com/t/fehler-bei-cms-extensions-update-cli-wi/66546 "2020-04-28T09:42:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![webdesign030](https://avatars.discourse-cdn.com/v4/letter/w/df788c/32.png) [@webdesign030](https://forum.shopware.com/u/webdesign030)\
**Post date:** [28. April 2020 um 09:42 UTC](https://forum.shopware.com/t/fehler-bei-cms-extensions-update-cli-wi/66546/1 "2020-04-28T09:42:29Z")

</div>

Hallo zusammen,

nach einem Plugin-Update per WI folgendes Problem:

- Stack Trace

ClassNotFoundError

&nbsp;

```
 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) 

```

&nbsp;

in /var/www/html/shopwarehundewelt/var/cache/prod\_h1e78252d7763902adb1a7951d20a1721/ContainerQPi0exg/ **srcShopware\_Production\_KernelProdContainer.php** (line 4136)

1. &nbsp;
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. &nbsp;
4. ` foreach ($this->getBundles() as $bundle) {`
5. ` $bundle->setContainer($this->container);`
6. ` $bundle->boot();`
7. ` }`
8. &nbsp;
9. ` $this->initializeDatabaseConnectionVariables();`
10. &nbsp;
11. ` $this->booted = true;`

&nbsp;

&nbsp;

Any ideas??

Per CLI :

&nbsp;

In srcShopware\_Production\_KernelProdContainer.php line 4136:

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

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

&nbsp;

Grüße

---

<div class="post-metadata">

**Author:** ![webdesign030](https://avatars.discourse-cdn.com/v4/letter/w/df788c/32.png) [@webdesign030](https://forum.shopware.com/u/webdesign030)\
**Post date:** [28. April 2020 um 10:59 UTC](https://forum.shopware.com/t/fehler-bei-cms-extensions-update-cli-wi/66546/2 "2020-04-28T10:59:39Z")

</div>

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

&nbsp;

Habe ein Bug-Ticket angelegt…

&nbsp;

Grüße

---

<div class="post-metadata">

**Author:** ![htkassner](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/htkassner/32/15625_2.png) [@htkassner](https://forum.shopware.com/u/htkassner)\
**Post date:** [28. April 2020 um 11:10 UTC](https://forum.shopware.com/t/fehler-bei-cms-extensions-update-cli-wi/66546/3 "2020-04-28T11:10:26Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![webdesign030](https://avatars.discourse-cdn.com/v4/letter/w/df788c/32.png) [@webdesign030](https://forum.shopware.com/u/webdesign030)\
**Post date:** [28. April 2020 um 11:12 UTC](https://forum.shopware.com/t/fehler-bei-cms-extensions-update-cli-wi/66546/4 "2020-04-28T11:12:52Z")

</div>

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.

&nbsp;

&nbsp;

&nbsp;
