# Child Theme anlegen geht schief Fehler 503

**URL:** <https://forum.shopware.com/t/child-theme-anlegen-geht-schief-fehler-503/58849>\
**Category:** Installation/Einstieg\
**Created:** [31. März 2019 um 21:14 UTC](https://forum.shopware.com/t/child-theme-anlegen-geht-schief-fehler-503/58849 "2019-03-31T21:14:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![StefanGold](https://avatars.discourse-cdn.com/v4/letter/s/e19b73/32.png) [@StefanGold](https://forum.shopware.com/u/StefanGold)\
**Post date:** [31. März 2019 um 21:14 UTC](https://forum.shopware.com/t/child-theme-anlegen-geht-schief-fehler-503/58849/1 "2019-03-31T21:14:02Z")

</div>

Hallo,

bin ganz neu hier… wollte ein Child Theme anlegen, damit ich es modifizieren kann. Das geht gleich mal schief, siehe Bild.

Anschließend ist da zwar ein neues Theme, es hat jedoch definitiv Fehler im Layout.

Was tun? Kann man das vielleicht händisch anlegen?

LG Stefan

---

<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:** [1. April 2019 um 07:32 UTC](https://forum.shopware.com/t/child-theme-anlegen-geht-schief-fehler-503/58849/2 "2019-04-01T07:32:03Z")

</div>

SW Hilfe:

- Mittels Browser F12 (Entwicklerwerkzeuge) nach Fehlerausgaben schauen

- Fehlermeldungen in Shopware debuggen und untersuchen  
[http://community.shopware.com/Fehlermeldungen-in-Shopware-debuggen\_detail\_1880.html](http://community.shopware.com/Fehlermeldungen-in-Shopware-debuggen_detail_1880.html)

- Fehlermeldungen in error\_log auf Server untersuchen  
Bitte nicht mit Shopware Log verwechseln. Liegt meist außerhalb vom httpdocs-Order der Domain - ggf. beim Hoster anfragen.

&nbsp;

---

<div class="post-metadata">

**Author:** ![StefanGold](https://avatars.discourse-cdn.com/v4/letter/s/e19b73/32.png) [@StefanGold](https://forum.shopware.com/u/StefanGold)\
**Post date:** [1. April 2019 um 12:37 UTC](https://forum.shopware.com/t/child-theme-anlegen-geht-schief-fehler-503/58849/3 "2019-04-01T12:37:48Z")

</div>

Nachdem ich das erweiterte Debugging in der config.php aktiviert habe, läuft das jetzt ohne Fehler durch.

macht das irgendeinen Sinn?

LG Stefan

---

<div class="post-metadata">

**Author:** ![StefanGold](https://avatars.discourse-cdn.com/v4/letter/s/e19b73/32.png) [@StefanGold](https://forum.shopware.com/u/StefanGold)\
**Post date:** [1. April 2019 um 12:50 UTC](https://forum.shopware.com/t/child-theme-anlegen-geht-schief-fehler-503/58849/4 "2019-04-01T12:50:52Z")

</div>

OK, jetzt kam er wieder, hier mal das Log, das mir der Shop gesendet hat: Das Log vom Server bekomme ich erst morgen, weil ich die Subdomain nicht für das Log aktiviert hatte. Viielleicht kann man hier ja was erkennen???

&nbsp;

CRITICAL

Message:

```
 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;}", 157, 30]: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '30-mobileLogo' for key 'template\_id\_name'

```

Time:

```
 2019-04-01T14:44:41.221303+0200

```

Channel:

```
 core

```

request:

```
 { "uri": "/backend/Theme/list?\_dc=1554122678986&page=1&start=0&limit=20&group=%5B%7B%22property%22%3A%22version%22%2C%22direction%22%3A%22DESC%22%7D%5D&sort=%5B%7B%22property%22%3A%22version%22%2C%22direction%22%3A%22DESC%22%7D%5D", "method": "GET", "query": { "\_dc": "1554122678986", "page": "1", "start": "0", "limit": "20", "group": "[{\"property\":\"version\",\"direction\":\"DESC\"}]", "sort": "[{\"property\":\"version\",\"direction\":\"DESC\"}]", "module": "backend", "controller": "Theme", "action": "list" }, "post": [] }

```

shop:

```
 No shop data available

```

session:

```
 { "userId": "50", "roleId": "1" }

```

CRITICAL

Message:

```
 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;}", 157, 30]: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '30-mobileLogo' for key 'template\_id\_name'

```

Time:

```
 2019-04-01T14:44:41.225897+0200

```

Channel:

```
 core

```

request:

```
 { "uri": "/backend/Theme/list?\_dc=1554122678986&page=1&start=0&limit=20&group=%5B%7B%22property%22%3A%22version%22%2C%22direction%22%3A%22DESC%22%7D%5D&sort=%5B%7B%22property%22%3A%22version%22%2C%22direction%22%3A%22DESC%22%7D%5D", "method": "GET", "query": { "\_dc": "1554122678986", "page": "1", "start": "0", "limit": "20", "group": "[{\"property\":\"version\",\"direction\":\"DESC\"}]", "sort": "[{\"property\":\"version\",\"direction\":\"DESC\"}]", "module": "backend", "controller": "Theme", "action": "list" }, "post": [] }

```

shop:

```
 No shop data available

```

session:

```
 { "userId": "50", "roleId": "1" }

```

ERROR

Message:

```
 exception 'PDOException' with message 'SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '30-mobileLogo' for key 'template\_id\_name'' in /kunden/357897\_66583/projects/sw1/vendor/doctrine/dbal/lib/Doctrine/DBAL/Statement.php:168 Stack trace: #0 /kunden/357897\_66583/projects/sw1/vendor/doctrine/dbal/lib/Doctrine/DBAL/Statement.php(168): PDOStatement-\>execute(NULL) #1 /kunden/357897\_66583/projects/sw1/engine/Library/Doctrine/ORM/Persisters/Entity/BasicEntityPersister.php(281): Doctrine\DBAL\Statement-\>execute() #2 /kunden/357897\_66583/projects/sw1/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php(1014): Doctrine\ORM\Persisters\Entity\BasicEntityPersister-\>executeInserts() #3 /kunden/357897\_66583/projects/sw1/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php(378): Doctrine\ORM\UnitOfWork-\>executeInserts(Object(Doctrine\ORM\Mapping\ClassMetadata)) #4 /kunden/357897\_66583/projects/sw1/vendor/doctrine/orm/lib/Doctrine/ORM/EntityManager.php(356): Doctrine\ORM\UnitOfWork-\>commit(NULL) #5 /kunden/357897\_66583/projects/sw1/engine/Shopware/Components/Form/Persister/Theme.php(61): Doctrine\ORM\EntityManager-\>flush() #6 /kunden/357897\_66583/projects/sw1/engine/Shopware/Components/Theme/Configurator.php(133): Shopware\Components\Form\Persister\Theme-\>save(Object(Shopware\Components\Form\Container\TabContainer), Object(Shopware\Models\Shop\Template)) #7 /kunden/357897\_66583/projects/sw1/engine/Shopware/Components/Theme/Installer.php(169): Shopware\Components\Theme\Configurator-\>synchronize(Object(Shopware\Themes\Test\Theme)) #8 /kunden/357897\_66583/projects/sw1/engine/Shopware/Components/Theme/Installer.php(130): Shopware\Components\Theme\Installer-\>synchronizeThemes() #9 /kunden/357897\_66583/projects/sw1/engine/Shopware/Controllers/Backend/Theme.php(203): Shopware\Components\Theme\Installer-\>synchronize() #10 /kunden/357897\_66583/projects/sw1/engine/Library/Enlight/Controller/Action.php(193): Shopware\_Controllers\_Backend\_Theme-\>listAction() #11 /kunden/357897\_66583/projects/sw1/engine/Library/Enlight/Controller/Dispatcher/Default.php(563): Enlight\_Controller\_Action-\>dispatch('listAction') #12 /kunden/357897\_66583/projects/sw1/engine/Library/Enlight/Controller/Front.php(222): Enlight\_Controller\_Dispatcher\_Default-\>dispatch(Object(Enlight\_Controller\_Request\_RequestHttp), Object(Enlight\_Controller\_Response\_ResponseHttp)) #13 /kunden/357897\_66583/projects/sw1/engine/Shopware/Kernel.php(202): Enlight\_Controller\_Front-\>dispatch() #14 /kunden/357897\_66583/projects/sw1/vendor/symfony/http-kernel/HttpCache/SubRequestHandler.php(102): Shopware\Kernel-\>handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #15 /kunden/357897\_66583/projects/sw1/vendor/symfony/http-kernel/HttpCache/HttpCache.php(448): Symfony\Component\HttpKernel\HttpCache\SubRequestHandler::handle(Object(Shopware\Kernel), Object(Symfony\Component\HttpFoundation\Request), 1, true) #16 /kunden/357897\_66583/projects/sw1/engine/Shopware/Components/HttpCache/AppCache.php(268): Symfony\Component\HttpKernel\HttpCache\HttpCache-\>forward(Object(Symfony\Component\HttpFoundation\Request), true, NULL) #17 /kunden/357897\_66583/projects/sw1/vendor/symfony/http-kernel/HttpCache/HttpCache.php(238): Shopware\Components\HttpCache\AppCache-\>forward(Object(Symfony\Component\HttpFoundation\Request), true) #18 /kunden/357897\_66583/projects/sw1/engine/Shopware/Components/HttpCache/AppCache.php(105): Symfony\Component\HttpKernel\HttpCache\HttpCache-\>pass(Object(Symfony\Component\HttpFoundation\Request), true) #19 /kunden/357897\_66583/projects/sw1/shopware.php(122): Shopware\Components\HttpCache\AppCache-\>handle(Object(Symfony\Component\HttpFoundation\Request)) #20 {main} Next exception 'Doctrine\DBAL\DBALException' with message '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;}", 157, 30]:
```
