# Fehler beim Ableiten eines Templates

**URL:** https://forum.shopware.com/t/fehler-beim-ableiten-eines-templates/37073
**Category:** Administration
**Created:** [30. Mai 2016 um 14:44 UTC](https://forum.shopware.com/t/fehler-beim-ableiten-eines-templates/37073 "2016-05-30T14:44:36Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Ahler](https://avatars.discourse-cdn.com/v4/letter/a/7bcc69/32.png) [@Ahler](https://forum.shopware.com/u/Ahler)
#### Post date: [30. Mai 2016 um 14:44 UTC](https://forum.shopware.com/t/fehler-beim-ableiten-eines-templates/37073/1 "2016-05-30T14:44:36Z")

</div>

Hallo Leute, ich kann in einem Shop kein “eigenes” Template anlegen, ich erhalte dann folgenden Fehlercode:

```
 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 [35, "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;}", 148]: SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction in vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php on line 119 Stack trace: #0 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 Doctrine/ORM/Persisters/Entity/BasicEntityPersister.php(281): Doctrine\DBAL\Statement->execute() #2 vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php(1018): Doctrine\ORM\Persisters\Entity\BasicEntityPersister->executeInserts() #3 vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php(378): Doctrine\ORM\UnitOfWork->executeInserts(Object(Doctrine\ORM\Mapping\ClassMetadata)) #4 vendor/doctrine/orm/lib/Doctrine/ORM/EntityManager.php(356): 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\Cahler\Theme)) #8 Shopware/Components/Theme/Installer.php(117): Shopware\Components\Theme\Installer->synchronizeThemes() #9 Shopware/Controllers/Backend/Theme.php(208): Shopware\Components\Theme\Installer->synchronize() #10 Enlight/Controller/Action.php(158): Shopware_Controllers_Backend_Theme->listAction() #11 Enlight/Controller/Dispatcher/Default.php(523): Enlight_Controller_Action->dispatch('listAction') #12 Enlight/Controller/Front.php(226): Enlight_Controller_Dispatcher_Default->dispatch(Object(Enlight_Controller_Request_RequestHttp), Object(Enlight_Controller_Response_ResponseHttp)) #13 Shopware/Kernel.php(153): Enlight_Controller_Front->dispatch() #14 vendor/symfony/http-kernel/HttpCache/HttpCache.php(492): Shopware\Kernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #15 Shopware/Components/HttpCache/AppCache.php(255): Symfony\Component\HttpKernel\HttpCache

```

Das Template erscheint dann zwar im Templatemanager, liefert aber Aktivierung nur ein “leeres” Template aus. Das entsprechende Verzeichnis kann ich via FTP ebenfalls sehen. Woran kann das liegen? Danke.

&nbsp;

---

<div class="post-metadata">

### Author: ![kitsch\_und\_kitty](https://avatars.discourse-cdn.com/v4/letter/k/e68b1a/32.png) [@kitsch\_und\_kitty](https://forum.shopware.com/u/kitsch_und_kitty)
#### Post date: [1. September 2016 um 11:30 UTC](https://forum.shopware.com/t/fehler-beim-ableiten-eines-templates/37073/2 "2016-09-01T11:30:04Z")

</div>

Hallo Ahler,

&nbsp;

konntest du das Problem lösen? Ich habe nämlich genau das gleiche… :-/

---

<div class="post-metadata">

### Author: ![Ahler](https://avatars.discourse-cdn.com/v4/letter/a/7bcc69/32.png) [@Ahler](https://forum.shopware.com/u/Ahler)
#### Post date: [18. Oktober 2016 um 16:27 UTC](https://forum.shopware.com/t/fehler-beim-ableiten-eines-templates/37073/3 "2016-10-18T16:27:04Z")

</div>

Wenn ich mich richtig erinnere, habe ich einfach das orginal Verzeichnis “Themes” noch einmal via FTP hochgeladen und vorhandene Daten überschrieben. Danach ging es dann.
