# Slim Application Error beim Update von 5.1.1 auf 5.1.5

**URL:** <https://forum.shopware.com/t/slim-application-error-beim-update-von-5-1-1-auf-5-1-5/36789>\
**Category:** Administration\
**Created:** [17. Mai 2016 um 12:06 UTC](https://forum.shopware.com/t/slim-application-error-beim-update-von-5-1-1-auf-5-1-5/36789 "2016-05-17T12:06:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![R4M](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/r4m/32/9983_2.png) [@R4M](https://forum.shopware.com/u/R4M)\
**Post date:** [17. Mai 2016 um 12:06 UTC](https://forum.shopware.com/t/slim-application-error-beim-update-von-5-1-1-auf-5-1-5/36789/1 "2016-05-17T12:06:43Z")

</div>

Kacke was ist das denn nu wieder?  
&nbsp;

```
Slim Application Error

The application could not run because of the following error:
Details
Type: ErrorException
Code: 8
Message: Undefined index: permissions
File: /var/www/vhosts/xxx/httpdocs/engine/Shopware/Bundle/MediaBundle/Subscriber/ServiceSubscriber.php
Line: 105
Trace

#0 /var/www/vhosts/xxx/httpdocs/engine/Shopware/Bundle/MediaBundle/Subscriber/ServiceSubscriber.php(105): Slim\Slim::handleErrors(8, 'Undefined index...', '/var/www/vhosts...', 105, Array)
#1 [internal function]: Shopware\Bundle\MediaBundle\Subscriber\ServiceSubscriber->createLocalAdapter(Object(Enlight_Event_EventArgs))

```

&nbsp;

---

<div class="post-metadata">

**Author:** ![R4M](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/r4m/32/9983_2.png) [@R4M](https://forum.shopware.com/u/R4M)\
**Post date:** [17. Mai 2016 um 13:20 UTC](https://forum.shopware.com/t/slim-application-error-beim-update-von-5-1-1-auf-5-1-5/36789/2 "2016-05-17T13:20:50Z")

</div>

Versuch mit Update auf nur 5.1.4 -\> genau das selbe Problem ☹

Die komplette Fehlermeldung:

```
Slim Application Error

The application could not run because of the following error:
Details
Type: ErrorException
Code: 8
Message: Undefined index: permissions
File: /var/www/vhosts/xxx/httpdocs/engine/Shopware/Bundle/MediaBundle/Subscriber/ServiceSubscriber.php
Line: 105
Trace

#0 /var/www/vhosts/xxx/httpdocs/engine/Shopware/Bundle/MediaBundle/Subscriber/ServiceSubscriber.php(105): Slim\Slim::handleErrors(8, 'Undefined index...', '/var/www/vhosts...', 105, Array)
#1 [internal function]: Shopware\Bundle\MediaBundle\Subscriber\ServiceSubscriber->createLocalAdapter(Object(Enlight_Event_EventArgs))
#2 /var/www/vhosts/xxx/httpdocs/engine/Library/Enlight/Event/Handler/Default.php(91): call_user_func(Array, Object(Enlight_Event_EventArgs))
#3 /var/www/vhosts/xxx/httpdocs/engine/Library/Enlight/Event/EventManager.php(339): Enlight_Event_Handler_Default->execute(Object(Enlight_Event_EventArgs))
#4 /var/www/vhosts/xxx/httpdocs/engine/Shopware/Bundle/MediaBundle/MediaServiceFactory.php(95): Enlight_Event_EventManager->collect('Shopware_Collec...', Object(Doctrine\Common\Collections\ArrayCollection), Array)
#5 /var/www/vhosts/xxx/httpdocs/engine/Shopware/Bundle/MediaBundle/MediaServiceFactory.php(73): Shopware\Bundle\MediaBundle\MediaServiceFactory->collectAdapterByType(Array)
#6 /var/www/vhosts/xxx/httpdocs/var/cache/production_201603220913/proxies/ShopwareProductionProjectContainer.php(750): Shopware\Bundle\MediaBundle\MediaServiceFactory->factory('local')
#7 /var/www/vhosts/xxx/httpdocs/vendor/symfony/dependency-injection/Container.php(327): ShopwareProductionProjectContainer->getShopwareMedia_MediaServiceService()
#8 /var/www/vhosts/xxx/httpdocs/engine/Shopware/Components/DependencyInjection/Container.php(253): Symfony\Component\DependencyInjection\Container->get('shopware_media....')
#9 /var/www/vhosts/xxx/httpdocs/engine/Shopware/Components/DependencyInjection/Container.php(188): Shopware\Components\DependencyInjection\Container->load('shopware_media....')
#10 /var/www/vhosts/xxx/httpdocs/var/cache/production_201603220913/proxies/ShopwareProductionProjectContainer.php(1338): Shopware\Components\DependencyInjection\Container->get('shopware_media....')
#11 /var/www/vhosts/xxx/httpdocs/vendor/symfony/dependency-injection/Container.php(327): ShopwareProductionProjectContainer->getThemeServiceService()
#12 /var/www/vhosts/xxx/httpdocs/engine/Shopware/Components/DependencyInjection/Container.php(253): Symfony\Component\DependencyInjection\Container->get('theme_service')
#13 /var/www/vhosts/xxx/httpdocs/engine/Shopware/Components/DependencyInjection/Container.php(188): Shopware\Components\DependencyInjection\Container->load('theme_service')
#14 /var/www/vhosts/xxx/httpdocs/var/cache/production_201603220913/proxies/ShopwareProductionProjectContainer.php(1330): Shopware\Components\DependencyInjection\Container->get('theme_service')
#15 /var/www/vhosts/xxx/httpdocs/vendor/symfony/dependency-injection/Container.php(327): ShopwareProductionProjectContainer->getThemeInstallerService()
#16 /var/www/vhosts/xxx/httpdocs/engine/Shopware/Components/DependencyInjection/Container.php(253): Symfony\Component\DependencyInjection\Container->get('theme_installer')
#17 /var/www/vhosts/xxx/httpdocs/engine/Shopware/Components/DependencyInjection/Container.php(188): Shopware\Components\DependencyInjection\Container->load('theme_installer')
#18 /var/www/vhosts/xxx/httpdocs/recovery/update/src/DependencyInjection/Container.php(186): Shopware\Components\DependencyInjection\Container->get('theme_installer')
#19 /var/www/vhosts/xxx/httpdocs/recovery/common/vendor/pimple/pimple/src/Pimple/Container.php(112): Shopware\Recovery\Update\DependencyInjection\Container->Shopware\Recovery\Update\DependencyInjection\{closure}(Object(Pimple\Container))
#20 /var/www/vhosts/xxx/httpdocs/recovery/common/src/DependencyInjection/Container.php(80): Pimple\Container->offsetGet('shopware.theme_...')
#21 /var/www/vhosts/xxx/httpdocs/recovery/update/src/app.php(164): Shopware\Recovery\Common\DependencyInjection\Container->get('shopware.theme_...')
#22 [internal function]: {closure}()
#23 /var/www/vhosts/xxx/httpdocs/recovery/common/vendor/slim/slim/Slim/Route.php(462): call_user_func_array(Object(Closure), Array)
#24 /var/www/vhosts/xxx/httpdocs/recovery/common/vendor/slim/slim/Slim/Slim.php(1326): Slim\Route->dispatch()
#25 /var/www/vhosts/xxx/httpdocs/recovery/common/vendor/slim/slim/Slim/Middleware/Flash.php(85): Slim\Slim->call()
#26 /var/www/vhosts/xxx/httpdocs/recovery/common/vendor/slim/slim/Slim/Middleware/MethodOverride.php(92): Slim\Middleware\Flash->call()
#27 /var/www/vhosts/xxx/httpdocs/recovery/common/vendor/slim/slim/Slim/Middleware/PrettyExceptions.php(67): Slim\Middleware\MethodOverride->call()
#28 /var/www/vhosts/xxx/httpdocs/recovery/common/vendor/slim/slim/Slim/Slim.php(1271): Slim\Middleware\PrettyExceptions->call()
#29 /var/www/vhosts/xxx/httpdocs/recovery/update/index.php(46): Slim\Slim->run()
#30 {main}

```

&nbsp;

---

<div class="post-metadata">

**Author:** ![R4M](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/r4m/32/9983_2.png) [@R4M](https://forum.shopware.com/u/R4M)\
**Post date:** [17. Mai 2016 um 14:25 UTC](https://forum.shopware.com/t/slim-application-error-beim-update-von-5-1-1-auf-5-1-5/36789/3 "2016-05-17T14:25:35Z")

</div>

Hier wird der Inhalt dieser Funktion bemängelt:  
&nbsp;

```
    public function createLocalAdapter(\Enlight_Event_EventArgs $args)
    {
        $config = $args->get('config');

        return new ArrayCollection([
            new Local($config['path'])
        ]);
    }

```

Fehler bezieht sich auf $config[‚path‘], aber wie darf ich das verstehen? Am Shop wurde nichts verändert, also Standard.

---

<div class="post-metadata">

**Author:** ![R4M](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/r4m/32/9983_2.png) [@R4M](https://forum.shopware.com/u/R4M)\
**Post date:** [19. Mai 2016 um 10:52 UTC](https://forum.shopware.com/t/slim-application-error-beim-update-von-5-1-1-auf-5-1-5/36789/4 "2016-05-19T10:52:55Z")

</div>

Thema vorerst erledigt. Habe über Stunden hinweg Schrittweise die alte Version mit neuen Daten überschrieben. Nun geht geht alles.
