# Config-Exception beim Update von 5.2.27 auf 5.3.2

**URL:** <https://forum.shopware.com/t/config-exception-beim-update-von-5-2-27-auf-5-3-2/47881>\
**Category:** Administration\
**Created:** [28. August 2017 um 12:49 UTC](https://forum.shopware.com/t/config-exception-beim-update-von-5-2-27-auf-5-3-2/47881 "2017-08-28T12:49:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Synonymous](https://avatars.discourse-cdn.com/v4/letter/s/57b2e6/32.png) [@Synonymous](https://forum.shopware.com/u/Synonymous)\
**Post date:** [28. August 2017 um 12:49 UTC](https://forum.shopware.com/t/config-exception-beim-update-von-5-2-27-auf-5-3-2/47881/1 "2017-08-28T12:49:06Z")

</div>

Hallo alle,

Ich bin gerade dabei von **5.2.27 auf 5.3.2 via Backend** upzugraden. Das läuft soweit ganz gut:

- Download klappt
- File-Update klappt
- Datenbank-Update klappt

Dann jedoch gibt es folgendes Problem:  
Klicke ich bei der „Aufräumen“ Seite auf „Weiter“ erscheint nach einiger Zeit folgende Exception:

**Slim Application Error**  
**Type:** &nbsp;ErrorException  
**Code:** &nbsp;2  
**Message:** &nbsp;Invalid argument supplied for foreach()  
**File:** &nbsp;/www/shop/engine/Library/Enlight/Config.php  
**Line:** &nbsp;156

Der Source lässt darauf schließen, dass es irgendwie in Zusammenhang mit den Snippets steht.

Hat jemand eine Idee wo ich zu suchen beginnen kann?

Danke & LG

---

<div class="post-metadata">

**Author:** ![Synonymous](https://avatars.discourse-cdn.com/v4/letter/s/57b2e6/32.png) [@Synonymous](https://forum.shopware.com/u/Synonymous)\
**Post date:** [28. August 2017 um 13:02 UTC](https://forum.shopware.com/t/config-exception-beim-update-von-5-2-27-auf-5-3-2/47881/2 "2017-08-28T13:02:52Z")

</div>

Hier noch der Stacktrace der Exception:

```
#0 /sw_5.3.2/engine/Library/Enlight/Config.php(156): Slim\Slim::handleErrors(2, 'Invalid argumen...', '/Users/...', 156, Array)
#1 /sw_5.3.2/engine/Shopware/Components/Snippet/Manager.php(384): Enlight_Config->setData(NULL)
#2 /sw_5.3.2/engine/Shopware/Components/Snippet/Manager.php(146): Shopware_Components_Snippet_Manager->createIniNamespace('themes/bare/bac...')
#3 /sw_5.3.2/themes/Frontend/Bare/Theme.php(196): Shopware_Components_Snippet_Manager->getNamespace('themes/bare/bac...')
#4 /sw_5.3.2/themes/Frontend/Bare/Theme.php(161): Shopware\Themes\Bare\Theme->getLabelAttribute('apple_touch_ico...')
#5 /sw_5.3.2/engine/Shopware/Components/Theme/Configurator.php(122): Shopware\Themes\Bare\Theme->createConfig(Object(Shopware\Components\Form\Container\TabContainer))
#6 /sw_5.3.2/engine/Shopware/Components/Theme/Installer.php(153): Shopware\Components\Theme\Configurator->synchronize(Object(Shopware\Themes\Bare\Theme))
#7 /sw_5.3.2/engine/Shopware/Components/Theme/Installer.php(116): Shopware\Components\Theme\Installer->synchronizeThemes()
#8 /sw_5.3.2/recovery/update/src/app.php(170): Shopware\Components\Theme\Installer->synchronize()
#9 [internal function]: {closure}()
#10 /sw_5.3.2/recovery/common/vendor/slim/slim/Slim/Route.php(462): call_user_func_array(Object(Closure), Array)
#11 /sw_5.3.2/recovery/common/vendor/slim/slim/Slim/Slim.php(1326): Slim\Route->dispatch()
#12 /sw_5.3.2/recovery/common/vendor/slim/slim/Slim/Middleware/Flash.php(85): Slim\Slim->call()
#13 /sw_5.3.2/recovery/common/vendor/slim/slim/Slim/Middleware/MethodOverride.php(92): Slim\Middleware\Flash->call()
#14 /sw_5.3.2/recovery/common/vendor/slim/slim/Slim/Middleware/PrettyExceptions.php(67): Slim\Middleware\MethodOverride->call()
#15 /sw_5.3.2/recovery/common/vendor/slim/slim/Slim/Slim.php(1271): Slim\Middleware\PrettyExceptions->call()
#16 /sw_5.3.2/recovery/update/index.php(69): Slim\Slim->run()
#17 {main}

```

&nbsp;

---

<div class="post-metadata">

**Author:** ![Synonymous](https://avatars.discourse-cdn.com/v4/letter/s/57b2e6/32.png) [@Synonymous](https://forum.shopware.com/u/Synonymous)\
**Post date:** [28. August 2017 um 13:42 UTC](https://forum.shopware.com/t/config-exception-beim-update-von-5-2-27-auf-5-3-2/47881/3 "2017-08-28T13:42:43Z")

</div>

Ursache gefunden - snippet config mag der Update-Wizard nicht:

```
    'snippet' => [
        'readFromDb' => true,
        'writeToDb' => false,
        'readFromIni' => true,
        'writeToIni' => false,
        'showSnippetPlaceholder' => false //introduced in Shopware 5.0.2
    ],

```

&nbsp;
