# Fehlermeldung bei Erstellen eigener Themes

**URL:** <https://forum.shopware.com/t/fehlermeldung-bei-erstellen-eigener-themes/26878>\
**Category:** Themes & Design\
**Created:** [5. Mai 2015 um 00:07 UTC](https://forum.shopware.com/t/fehlermeldung-bei-erstellen-eigener-themes/26878 "2015-05-05T00:07:32Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![lhcummer1987](https://avatars.discourse-cdn.com/v4/letter/l/ed8c4c/32.png) [@lhcummer1987](https://forum.shopware.com/u/lhcummer1987)\
**Post date:** [5. Mai 2015 um 00:07 UTC](https://forum.shopware.com/t/fehlermeldung-bei-erstellen-eigener-themes/26878/1 "2015-05-05T00:07:32Z")

</div>

Hallo liebe Shopware-Community, nach einer frischen Installation ohne Import von Demodaten bekomme ich folgende Fehlermeldung bei der Erstellung eines eigenen Templates: Ups! Ein Fehler ist aufgetreten! Die nachfolgenden Hinweise sollten Ihnen weiterhelfen. 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 [36, “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;}”, 250]: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry ‘36-mobileLogo’ for key ‘template\_id\_name’ in vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php on line 91 Stack trace: #0 vendor/doctrine/dbal/lib/Doctrine/DBAL/Statement.php(167): Doctrine\DBAL\DBALException::driverExceptionDuringQuery(Object(PDOException), ‘INSERT INTO s\_c…’, Array) #1 Doctrine/ORM/Persisters/BasicEntityPersister.php(279): Doctrine\DBAL\Statement-\>execute() #2 vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php(966): Doctrine\ORM\Persisters\BasicEntityPersister-\>executeInserts() #3 vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php(335): Doctrine\ORM\UnitOfWork-\>executeInserts(Object(Doctrine\ORM\Mapping\ClassMetadata)) #4 vendor/doctrine/orm/lib/Doctrine/ORM/EntityManager.php(389): Doctrine\ORM\UnitOfWork-\>commit(NULL) #5 Shopware/Components/Form/Persister/Theme.php(63): Doctrine\ORM\EntityManager-\>flush() #6 Shopware/Components/Theme/Configurator.php(132): Shopware\Components\Form\Persister\Theme-\>save(Object(Shopware\Components\Form\Container\TabContainer), Object(Shopware\Models\Shop\Template)) #7 Shopware/Components/Theme/Installer.php(156): Shopware\Components\Theme\Configurator-\>synchronize(Object(Shopware\Themes\GHHX\Theme)) #8 Shopware/Components/Theme/Installer.php(117): Shopware\Components\Theme\Installer-\>synchronizeThemes() #9 Shopware/Controllers/Backend/Theme.php(182): Shopware\Components\Theme\Installer-\>synchronize() #10 Enlight/Controller/Action.php(159): Shopware\_Controllers\_Backend\_Theme-\>listAction() #11 Enlight/Controller/Dispatcher/Default.php(524): Enlight\_Controller\_Action-\>dispatch(‘listAction’) #12 Enlight/Controller/Front.php(227): Enlight\_Controller\_Dispatcher\_Default-\>dispatch(Object(Enlight\_Controller\_Request\_RequestHttp), Object(Enlight\_Controller\_Response\_ResponseHttp)) #13 Shopware/Kernel.php(143): Enlight\_Controller\_Front-\>dispatch() #14 vendor/symfony/http-kernel/Symfony/Component/HttpKernel/HttpCache/HttpCache.php(490): Shopware\Kernel-\>handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #15 Shopware/Components/HttpCache/AppCache.php(255): Symfony\Component\HttpKernel\HttpCache\HttpCache-\>forward(Object(Symfony\Component\HttpFoundation\Request), true, NULL) #16 vendor/symfony/http-kernel/Symfony/Component/HttpKernel/HttpCache/HttpCache.php(261): Shopware\Components\HttpCache\AppCache-\>forward(Object(Symfony\Component\HttpFoundation\Request), true) #17 Shopware/Components/HttpCache/AppCache.php(103): Symfony\Component\HttpKernel\HttpCache\HttpCache-\>pass(Object(Symfony\Component\HttpFoundation\Request), true) #18 shopware.php(101): Shopware\Components\HttpCache\AppCache-\>handle(Object(Symfony\Component\HttpFoundation\Request)) #19 {main} &nbsp; OK Wollte das eigene Template von Responsive ableiten. Rechte des Ordners themes\Frontend wurden rekursiv auf 777 gesetzt. Warum er in die Tabelle nichts eintragen kann verstehe ich nicht. Kann mir jemand helfen? Wo liegt der Fehler? Danke im Voraus.

---

<div class="post-metadata">

**Author:** ![thuryaz](https://avatars.discourse-cdn.com/v4/letter/t/43a26b/32.png) [@thuryaz](https://forum.shopware.com/u/thuryaz)\
**Post date:** [5. Mai 2015 um 10:41 UTC](https://forum.shopware.com/t/fehlermeldung-bei-erstellen-eigener-themes/26878/2 "2015-05-05T10:41:48Z")

</div>

ich habe das gleiche Problem, bei all-inkl

---

<div class="post-metadata">

**Author:** ![sonic](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/sonic/32/25728_2.png) [@sonic](https://forum.shopware.com/u/sonic)\
**Post date:** [5. Mai 2015 um 10:45 UTC](https://forum.shopware.com/t/fehlermeldung-bei-erstellen-eigener-themes/26878/3 "2015-05-05T10:45:27Z")

</div>

> [@thuryaz](#):
>
> ich habe das gleiche Problem, bei all-inkl

---

<div class="post-metadata">

**Author:** ![thuryaz](https://avatars.discourse-cdn.com/v4/letter/t/43a26b/32.png) [@thuryaz](https://forum.shopware.com/u/thuryaz)\
**Post date:** [5. Mai 2015 um 12:05 UTC](https://forum.shopware.com/t/fehlermeldung-bei-erstellen-eigener-themes/26878/4 "2015-05-05T12:05:53Z")

</div>

Danke Carsten hat funktioniert! die htaccess mit, AddHandler php5-cgi .php ergänzt und die Besitzrechte im KAS/FTP eingerichtet. Danke der Info deinerseits

---

<div class="post-metadata">

**Author:** ![lhcummer1987](https://avatars.discourse-cdn.com/v4/letter/l/ed8c4c/32.png) [@lhcummer1987](https://forum.shopware.com/u/lhcummer1987)\
**Post date:** [5. Mai 2015 um 22:11 UTC](https://forum.shopware.com/t/fehlermeldung-bei-erstellen-eigener-themes/26878/5 "2015-05-05T22:11:18Z")

</div>

Vielen Dank für die Infos. Ich würde allerdings gerne aus Performancegründen beim Apache Modul bleiben und nicht auf das CGI wechseln - gibt es dafür auch eine Lösung? Verwendete PHP-Version: 5.6.6 Hat jemand eine Idee?? Danke im Voraus.

---

<div class="post-metadata">

**Author:** ![spieler](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/spieler/32/14669_2.png) [@spieler](https://forum.shopware.com/u/spieler)\
**Post date:** [12. Mai 2015 um 18:14 UTC](https://forum.shopware.com/t/fehlermeldung-bei-erstellen-eigener-themes/26878/6 "2015-05-12T18:14:20Z")

</div>

Ja, das Problem hatte ich auch. Gut, dass ich nicht alleine bin.

---

<div class="post-metadata">

**Author:** ![it-brockmann](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/it-brockmann/32/9650_2.png) [@it-brockmann](https://forum.shopware.com/u/it-brockmann)\
**Post date:** [14. April 2016 um 09:45 UTC](https://forum.shopware.com/t/fehlermeldung-bei-erstellen-eigener-themes/26878/7 "2016-04-14T09:45:48Z")

</div>

Genau das Problem habe ich auch, allerdings auf einem Virtual Server von Hosteurope.  
Shopware läuft bereits unter FastCGI mit PHP 5.6.19.

Mich irritiert allerdings die Lösung. Die Rechte auf Dateiebene haben doch erstmal nicht viel mit den SQL Rechten zu tun.  
Zumal er den Eintrag, zumindestens bei mir, gemacht. Wenn man sich die Fehlermeldung vom TE anschaut, hat er, übrigens auch wie bei mir, ein Problem mit einem „Duplicate entry“ für das mobile\_logo.

&nbsp;

---

<div class="post-metadata">

**Author:** ![it-brockmann](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/it-brockmann/32/9650_2.png) [@it-brockmann](https://forum.shopware.com/u/it-brockmann)\
**Post date:** [10. Mai 2016 um 15:29 UTC](https://forum.shopware.com/t/fehlermeldung-bei-erstellen-eigener-themes/26878/8 "2016-05-10T15:29:03Z")

</div>

Da per PN angefragt, hier meine Lösung - ohne Gewähr:

Die Spalte _name_ in der Tabelle _s\_core\_templates\_config\_elements_&nbsp;war unique. Ich habe den Index entfernt, seitdem läuft alles wunderbar.&nbsp;Allerdings habe ich nicht weiter verfolgt woher der Fehler kam/kommt.

```
DROP INDEX name ON s_core_templates_config_elements

```

&nbsp;
