# Abgeleitetes Theme anlegen Error

**URL:** <https://forum.shopware.com/t/abgeleitetes-theme-anlegen-error/95612>\
**Category:** Shopware 5\
**Created:** [2. August 2022 um 11:34 UTC](https://forum.shopware.com/t/abgeleitetes-theme-anlegen-error/95612 "2022-08-02T11:34:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![AHD](https://avatars.discourse-cdn.com/v4/letter/a/e9a140/32.png) [@AHD](https://forum.shopware.com/u/AHD)\
**Post date:** [2. August 2022 um 11:34 UTC](https://forum.shopware.com/t/abgeleitetes-theme-anlegen-error/95612/1 "2022-08-02T11:34:27Z")

</div>

Servus,

wir wollten uns ein Testtheme anlegen welches wir von dem Responsive ableiten wollten.  
Als wir dies anlegen wollten erhielten wir folgende Error Meldung:

> **Zusammenfassung**
>
> Ups! Ein Fehler ist aufgetreten! Die nachfolgenden Hinweise sollten Ihnen weiterhelfen. An exception occurred while executing ‚INSERT INTO s\_core\_templates\_config\_elements (type, name, position, default\_value, selection, field\_label, support\_text, allow\_blank, less\_compatible, attributes, container\_id, template\_id) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)‘ with params [„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;}“, 116, 29]: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry ‚29-mobileLogo‘ for key ‚template\_id\_name‘ in vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php on line 179 Stack trace: #0 vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php(150): Doctrine\DBAL\DBALException::wrapException(Object(Doctrine\DBAL\Driver\PDOMySql\Driver), Object(PDOException), ‚An exception oc…‘) #1 vendor/doctrine/dbal/lib/Doctrine/DBAL/Statement.php(177): Doctrine\DBAL\DBALException::driverExceptionDuringQuery(Object(Doctrine\DBAL\Driver\PDOMySql\Driver), Object(PDOException), ‚INSERT INTO s\_c…‘, Array) #2 engine/Library/Doctrine/ORM/Persisters/Entity/BasicEntityPersister.php(285): Doctrine\DBAL\Statement-\>execute() #3 vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php(1073): Doctrine\ORM\Persisters\Entity\BasicEntityPersister-\>executeInserts() #4 vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php(386): Doctrine\ORM\UnitOfWork-\>executeInserts(Object(Doctrine\ORM\Mapping\ClassMetadata)) #5 vendor/doctrine/orm/lib/Doctrine/ORM/EntityManager.php(359): Doctrine\ORM\UnitOfWork-\>commit(NULL) #6 engine/Shopware/Components/Form/Persister/Theme.php(56): Doctrine\ORM\EntityManager-\>flush() #7 engine/Shopware/Components/Theme/Configurator.php(122): Shopware\Components\Form\Persister\Theme-\>save(Object(Shopware\Components\Form\Container\TabContainer), Object(Shopware\Models\Shop\Template)) #8 engine/Shopware/Components/Theme/Installer.php(156): Shopware\Components\Theme\Configurator-\>synchronize(Object(Shopware\Themes\Test\Theme)) #9 engine/Shopware/Components/Theme/Installer.php(117): Shopware\Components\Theme\Installer-\>synchronizeThemes() #10 engine/Shopware/Controllers/Backend/Theme.php(196): Shopware\Components\Theme\Installer-\>synchronize() #11 engine/Library/Enlight/Controller/Action.php(192): Shopware\_Controllers\_Backend\_Theme-\>listAction() #12 engine/Library/Enlight/Controller/Dispatcher/Default.php(478): Enlight\_Controller\_Action-\>dispatch(‚listAction‘) #13 engine/Library/Enlight/Controller/Front.php(228): Enlight\_Controller\_Dispatcher\_Default-\>dispatch(Object(Enlight\_Controller\_Request\_RequestHttp), Object(Enlight\_Controller\_Response\_ResponseHttp)) #14 engine/Shopware/Kernel.php(184): Enlight\_Controller\_Front-\>dispatch() #15 vendor/symfony/http-kernel/HttpCache/SubRequestHandler.php(102): Shopware\Kernel-\>handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #16 vendor/symfony/http-kernel/HttpCache/HttpCache.php(448): Symfony\Component\HttpKernel\HttpCache\SubRequestHandler::handle(Object(Shopware\Kernel), Object(Symfony\Component\HttpFoundation\Request), 1, true) #17 engine/Shopware/Components/HttpCache/AppCache.php(256): Symfony\Component\HttpKernel\HttpCache\HttpCache-\>forward(Object(Symfony\Component\HttpFoundation\Request), true, NULL) #18 vendor/symfony/http-kernel/HttpCache/HttpCache.php(238): Shopware\Components\HttpCache\AppCache-\>forward(Object(Symfony\Component\HttpFoundation\Request), true) #19 engine/Shopware/Components/HttpCache/AppCache.php(99): Symfony\Component\HttpKernel\HttpCache\HttpCache-\>pass(Object(Symfony\Component\HttpFoundation\Request), true) #20 shopware.php(122): Shopware\Components\HttpCache\AppCache-\>handle(Object(Symfony\Component\HttpFoundation\Request)) #21 {main}
