# Slim Application Error DBAL Exception

**URL:** https://forum.shopware.com/t/slim-application-error-dbal-exception/36909
**Category:** Installation/Einstieg
**Created:** [21. Mai 2016 um 18:33 UTC](https://forum.shopware.com/t/slim-application-error-dbal-exception/36909 "2016-05-21T18:33:40Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![GodGaming](https://avatars.discourse-cdn.com/v4/letter/g/bc79bd/32.png) [@GodGaming](https://forum.shopware.com/u/GodGaming)
#### Post date: [21. Mai 2016 um 18:33 UTC](https://forum.shopware.com/t/slim-application-error-dbal-exception/36909/1 "2016-05-21T18:33:40Z")

</div>

Hallo,  
ich wollte soeben auf die neue Version von Shopware updaten, 1.5.1, allerdings kam beim letzten Schritt der folgende Fehler.  
Ich befinde mich auf der Seite:&nbsp;[http://www.meineseite.de/recovery/update/index.php/done](http://www.meineseite.de/recovery/update/index.php/done)  
Die Seite, sowie das Backend, zeigen den Wartungsmodus an.  
Bitte um Hilfe :O&nbsp;

&nbsp;

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

Details

Type: Doctrine\DBAL\DBALException
Message: An exception occurred while executing 'INSERT INTO s_core_templates_config_elements (template_id, type, name, position, default_value, selection, field_label, support_text, allow_blank, less_compatible, attributes, container_id) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' with params [22, "theme-media-selection", "mobileLogo", 0, "s:47:\"frontend\/_public\/src\/img\/logos\/logo--mobile.png\";", "N;", " __smartphone__", null, 1, 0, "a:1:{s:14:\"lessCompatible\";b:0;}", 37]: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '22-mobileLogo' for key 'template_id_name'
File: /godnrulp/www.godgaming.de/vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php
Line: 119
Trace

#0 /godnrulp/www.godgaming.de/vendor/doctrine/dbal/lib/Doctrine/DBAL/Statement.php(172): Doctrine\DBAL\DBALException::driverExceptionDuringQuery(Object(Doctrine\DBAL\Driver\PDOMySql\Driver), Object(PDOException), 'INSERT INTO s_c...', Array)
#1 /godnrulp/www.godgaming.de/engine/Library/Doctrine/ORM/Persisters/Entity/BasicEntityPersister.php(281): Doctrine\DBAL\Statement->execute()
#2 /godnrulp/www.godgaming.de/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php(1018): Doctrine\ORM\Persisters\Entity\BasicEntityPersister->executeInserts()
#3 /godnrulp/www.godgaming.de/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php(378): Doctrine\ORM\UnitOfWork->executeInserts(Object(Doctrine\ORM\Mapping\ClassMetadata))
#4 /godnrulp/www.godgaming.de/vendor/doctrine/orm/lib/Doctrine/ORM/EntityManager.php(356): Doctrine\ORM\UnitOfWork->commit(NULL)
#5 /godnrulp/www.godgaming.de/engine/Shopware/Components/Form/Persister/Theme.php(63): Doctrine\ORM\EntityManager->flush()
#6 /godnrulp/www.godgaming.de/engine/Shopware/Components/Theme/Configurator.php(132): Shopware\Components\Form\Persister\Theme->save(Object(Shopware\Components\Form\Container\TabContainer), Object(Shopware\Models\Shop\Template))
#7 /godnrulp/www.godgaming.de/engine/Shopware/Components/Theme/Installer.php(156): Shopware\Components\Theme\Configurator->synchronize(Object(Shopware\Themes\Bare\Theme))
#8 /godnrulp/www.godgaming.de/engine/Shopware/Components/Theme/Installer.php(117): Shopware\Components\Theme\Installer->synchronizeThemes()
#9 /godnrulp/www.godgaming.de/recovery/update/src/app.php(165): Shopware\Components\Theme\Installer->synchronize()
#10 [internal function]: {closure}()
#11 /godnrulp/www.godgaming.de/recovery/common/vendor/slim/slim/Slim/Route.php(462): call_user_func_array(Object(Closure), Array)
#12 /godnrulp/www.godgaming.de/recovery/common/vendor/slim/slim/Slim/Slim.php(1326): Slim\Route->dispatch()
#13 /godnrulp/www.godgaming.de/recovery/common/vendor/slim/slim/Slim/Middleware/Flash.php(85): Slim\Slim->call()
#14 /godnrulp/www.godgaming.de/recovery/common/vendor/slim/slim/Slim/Middleware/MethodOverride.php(92): Slim\Middleware\Flash->call()
#15 /godnrulp/www.godgaming.de/recovery/common/vendor/slim/slim/Slim/Middleware/PrettyExceptions.php(67): Slim\Middleware\MethodOverride->call()
#16 /godnrulp/www.godgaming.de/recovery/common/vendor/slim/slim/Slim/Slim.php(1271): Slim\Middleware\PrettyExceptions->call()
#17 /godnrulp/www.godgaming.de/recovery/update/index.php(46): Slim\Slim->run()
#18 {main}

```

&nbsp;

---

<div class="post-metadata">

### Author: ![GodGaming](https://avatars.discourse-cdn.com/v4/letter/g/bc79bd/32.png) [@GodGaming](https://forum.shopware.com/u/GodGaming)
#### Post date: [21. Mai 2016 um 18:41 UTC](https://forum.shopware.com/t/slim-application-error-dbal-exception/36909/2 "2016-05-21T18:41:07Z")

</div>

Soeben erledigt:

Habe der Datei&nbsp;/vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php alle Rechte gegeben und die Seite mit F5 aktualisiert. Update beendet und es läuft.&nbsp;
