# Update 5.0.0-5.2.21: Slim Application Error: Listener "onInitResourceShop" in"Shop" is not callable

**URL:** <https://forum.shopware.com/t/update-5-0-0-5-2-21-slim-application-error-listener-oninitresourceshop-in-shop-is-not-callable/44984>\
**Category:** Installation/Einstieg\
**Created:** [3. April 2017 um 14:36 UTC](https://forum.shopware.com/t/update-5-0-0-5-2-21-slim-application-error-listener-oninitresourceshop-in-shop-is-not-callable/44984 "2017-04-03T14:36:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![AR0x7E7](https://avatars.discourse-cdn.com/v4/letter/a/7ab992/32.png) [@AR0x7E7](https://forum.shopware.com/u/AR0x7E7)\
**Post date:** [3. April 2017 um 14:36 UTC](https://forum.shopware.com/t/update-5-0-0-5-2-21-slim-application-error-listener-oninitresourceshop-in-shop-is-not-callable/44984/1 "2017-04-03T14:36:41Z")

</div>

Guten Tag allerseits, wie im Titel beschrieben habe ich beim Update von 5.0.0 auf 5.2.21 über die Weboberfläche (./recovery/update), nach erfolgreicher Datenbankmigration, beim Aufrufen des “Aufräumen” Schrittes folgende Fehlermeldung:

```
Slim Application Error
The application could not run because of the following error:

Details

Type: ErrorException
Code: 256
Message: Listener "onInitResourceShop" in "Shop" is not callable.
File: /usr/www/users/swissmk/test.swissmobilia-parts.de/engine/Library/Enlight/Event/Handler/Plugin.php
Line: 145
Trace

#0 [internal function]: Slim\Slim::handleErrors(256, 'Listener "onIni...', '/usr/www/users/...', 145, Array)
#1 /usr/www/users/swissmk/test.swissmobilia-parts.de/engine/Library/Enlight/Event/Handler/Plugin.php(145): trigger_error('Listener "onIni...', 256)
#2 /usr/www/users/swissmk/test.swissmobilia-parts.de/engine/Library/Enlight/Event/EventManager.php(251): Enlight_Event_Handler_Plugin->execute(Object(Enlight_Event_EventArgs))
#3 /usr/www/users/swissmk/test.swissmobilia-parts.de/engine/Shopware/Components/DependencyInjection/Container.php(174): Enlight_Event_EventManager->notifyUntil('Enlight_Bootstr...', Array)
#4 /usr/www/users/swissmk/test.swissmobilia-parts.de/engine/Shopware/Components/DependencyInjection/Container.php(88): Shopware\Components\DependencyInjection\Container->doLoad('shop')
#5 /usr/www/users/swissmk/test.swissmobilia-parts.de/engine/Shopware/Bundle/MediaBundle/MediaService.php(220): Shopware\Components\DependencyInjection\Container->has('Shop')
#6 /usr/www/users/swissmk/test.swissmobilia-parts.de/engine/Shopware/Bundle/MediaBundle/MediaService.php(81): Shopware\Bundle\MediaBundle\MediaService->createFallbackMediaUrl()
#7 /usr/www/users/swissmk/test.swissmobilia-parts.de/engine/Shopware/Bundle/MediaBundle/MediaServiceFactory.php(89): Shopware\Bundle\MediaBundle\MediaService->__construct(Object(League\Flysystem\Filesystem), Object(Shopware\Bundle\MediaBundle\Strategy\Md5Strategy), Object(ShopwareProductionda39a3ee5e6b4b0d3255bfef95601890afd80709ProjectContainer), Array)
#8 /usr/www/users/swissmk/test.swissmobilia-parts.de/var/cache/production_201703211201/proxies/ShopwareProductionda39a3ee5e6b4b0d3255bfef95601890afd80709ProjectContainer.php(1269): Shopware\Bundle\MediaBundle\MediaServiceFactory->factory('local')
#9 /usr/www/users/swissmk/test.swissmobilia-parts.de/vendor/symfony/dependency-injection/Container.php(314): ShopwareProductionda39a3ee5e6b4b0d3255bfef95601890afd80709ProjectContainer->getShopwareMedia_MediaServiceService()
#10 /usr/www/users/swissmk/test.swissmobilia-parts.de/engine/Shopware/Components/DependencyInjection/Container.php(182): Symfony\Component\DependencyInjection\Container->get('shopware_media....', 1)
#11 /usr/www/users/swissmk/test.swissmobilia-parts.de/engine/Shopware/Components/DependencyInjection/Container.php(138): Shopware\Components\DependencyInjection\Container->doLoad('shopware_media....', 1)
#12 /usr/www/users/swissmk/test.swissmobilia-parts.de/var/cache/production_201703211201/proxies/ShopwareProductionda39a3ee5e6b4b0d3255bfef95601890afd80709ProjectContainer.php(2081): Shopware\Components\DependencyInjection\Container->get('shopware_media....')
#13 /usr/www/users/swissmk/test.swissmobilia-parts.de/vendor/symfony/dependency-injection/Container.php(314): ShopwareProductionda39a3ee5e6b4b0d3255bfef95601890afd80709ProjectContainer->getThemeServiceService()
#14 /usr/www/users/swissmk/test.swissmobilia-parts.de/engine/Shopware/Components/DependencyInjection/Container.php(182): Symfony\Component\DependencyInjection\Container->get('theme_service', 1)
#15 /usr/www/users/swissmk/test.swissmobilia-parts.de/engine/Shopware/Components/DependencyInjection/Container.php(138): Shopware\Components\DependencyInjection\Container->doLoad('theme_service', 1)
#16 /usr/www/users/swissmk/test.swissmobilia-parts.de/var/cache/production_201703211201/proxies/ShopwareProductionda39a3ee5e6b4b0d3255bfef95601890afd80709ProjectContainer.php(2073): Shopware\Components\DependencyInjection\Container->get('theme_service')
#17 /usr/www/users/swissmk/test.swissmobilia-parts.de/vendor/symfony/dependency-injection/Container.php(314): ShopwareProductionda39a3ee5e6b4b0d3255bfef95601890afd80709ProjectContainer->getThemeInstallerService()
#18 /usr/www/users/swissmk/test.swissmobilia-parts.de/engine/Shopware/Components/DependencyInjection/Container.php(182): Symfony\Component\DependencyInjection\Container->get('theme_installer', 1)
#19 /usr/www/users/swissmk/test.swissmobilia-parts.de/engine/Shopware/Components/DependencyInjection/Container.php(138): Shopware\Components\DependencyInjection\Container->doLoad('theme_installer', 1)
#20 /usr/www/users/swissmk/test.swissmobilia-parts.de/recovery/update/src/DependencyInjection/Container.php(192): Shopware\Components\DependencyInjection\Container->get('theme_installer')
#21 /usr/www/users/swissmk/test.swissmobilia-parts.de/recovery/common/vendor/pimple/pimple/src/Pimple/Container.php(113): Shopware\Recovery\Update\DependencyInjection\Container->Shopware\Recovery\Update\DependencyInjection\{closure}(Object(Pimple\Container))
#22 /usr/www/users/swissmk/test.swissmobilia-parts.de/recovery/common/src/DependencyInjection/Container.php(80): Pimple\Container->offsetGet('shopware.theme_...')
#23 /usr/www/users/swissmk/test.swissmobilia-parts.de/recovery/update/src/app.php(169): Shopware\Recovery\Common\DependencyInjection\Container->get('shopware.theme_...')
#24 [internal function]: {closure}()
#25 /usr/www/users/swissmk/test.swissmobilia-parts.de/recovery/common/vendor/slim/slim/Slim/Route.php(462): call_user_func_array(Object(Closure), Array)
#26 /usr/www/users/swissmk/test.swissmobilia-parts.de/recovery/common/vendor/slim/slim/Slim/Slim.php(1326): Slim\Route->dispatch()
#27 /usr/www/users/swissmk/test.swissmobilia-parts.de/recovery/common/vendor/slim/slim/Slim/Middleware/Flash.php(85): Slim\Slim->call()
#28 /usr/www/users/swissmk/test.swissmobilia-parts.de/recovery/common/vendor/slim/slim/Slim/Middleware/MethodOverride.php(92): Slim\Middleware\Flash->call()
#29 /usr/www/users/swissmk/test.swissmobilia-parts.de/recovery/common/vendor/slim/slim/Slim/Middleware/PrettyExceptions.php(67): Slim\Middleware\MethodOverride->call()
#30 /usr/www/users/swissmk/test.swissmobilia-parts.de/recovery/common/vendor/slim/slim/Slim/Slim.php(1271): Slim\Middleware\PrettyExceptions->call()
#31 /usr/www/users/swissmk/test.swissmobilia-parts.de/recovery/update/index.php(46): Slim\Slim->run()
#32 {main}

```

Habe im Forum bereits 2 Einträge mit ähnlicher Fehlermeldung gefunden - leider haben mir diese nicht weiterhelfen können (z.B. das löschen von Dateien auf dem Webserver hat nicht geholfen).

Kennt jemand dieses Verhalten und kann mir eine EMpfehlung geben, wie damit zu verfahren ist?  
Vielen Dank im Voraus!

Mit freundlichen Grüßen  
&nbsp;

---

<div class="post-metadata">

**Author:** ![Moritz\_Naczenski](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/moritz_naczenski/32/7792_2.png) [@Moritz\_Naczenski](https://forum.shopware.com/u/Moritz_Naczenski)\
**Post date:** [3. April 2017 um 16:13 UTC](https://forum.shopware.com/t/update-5-0-0-5-2-21-slim-application-error-listener-oninitresourceshop-in-shop-is-not-callable/44984/2 "2017-04-03T16:13:36Z")

</div>

Einfach den Eintrag aus der s\_core\_subscribes löschen. Dann läuft das.

---

<div class="post-metadata">

**Author:** ![AR0x7E7](https://avatars.discourse-cdn.com/v4/letter/a/7ab992/32.png) [@AR0x7E7](https://forum.shopware.com/u/AR0x7E7)\
**Post date:** [22. April 2017 um 07:38 UTC](https://forum.shopware.com/t/update-5-0-0-5-2-21-slim-application-error-listener-oninitresourceshop-in-shop-is-not-callable/44984/3 "2017-04-22T07:38:33Z")

</div>

Das gesuchte MySQL Statement:

&nbsp;

```
DELETE FROM s_core_subscribes WHERE listener="Shopware_Plugins_Core_Shop_Bootstrap::onInitResourceShop"

```

Danke Moritz
