# Nach Update auf 5.1 Fehler Fatal error: Cannot redeclare cla

**URL:** <https://forum.shopware.com/t/nach-update-auf-5-1-fehler-fatal-error-cannot-redeclare-cla/31488>\
**Category:** Installation/Einstieg\
**Created:** [19. Oktober 2015 um 22:51 UTC](https://forum.shopware.com/t/nach-update-auf-5-1-fehler-fatal-error-cannot-redeclare-cla/31488 "2015-10-19T22:51:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![shcshopware](https://avatars.discourse-cdn.com/v4/letter/s/46a35a/32.png) [@shcshopware](https://forum.shopware.com/u/shcshopware)\
**Post date:** [19. Oktober 2015 um 22:51 UTC](https://forum.shopware.com/t/nach-update-auf-5-1-fehler-fatal-error-cannot-redeclare-cla/31488/1 "2015-10-19T22:51:28Z")

</div>

Update von 5.0.4 auf 5.1 Voraussetzungen geprüft - ok Zuerst habe ich Autoupdater im Backend gestartet. Wartungsmodus ging nicht weg. Dann aufgerufen: [https://shc.ag/recovery/update/dbmigration](https://shc.ag/recovery/update/dbmigration) Nach dem Datenbankupdate (ohne Probleme) sollte ich nicht mehr benötigte Scripte löschen - getan Nun kam folgende Fehlermeldung: Fatal error: Cannot redeclare class Shopware\Models\Shop\Repository in /var/www/web1887/htdocs/proshop/engine/Shopware/Models/Shop/Repository\_mit\_hotfix.php on line 0 Was kann ich tun?

---

<div class="post-metadata">

**Author:** ![Moritz\_Naczenski](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/moritz_naczenski/32/7792_2.png) [@Moritz\_Naczenski](https://forum.shopware.com/u/Moritz_Naczenski)\
**Post date:** [19. Oktober 2015 um 23:08 UTC](https://forum.shopware.com/t/nach-update-auf-5-1-fehler-fatal-error-cannot-redeclare-cla/31488/2 "2015-10-19T23:08:30Z")

</div>

Hallo, also die Datei gibt es im Shopware-Standard garnicht. Hast du denn diese Datei bei dir? /var/www/web1887/htdocs/proshop/engine/Shopware/Models/Shop/Repository\_mit\_hotfix.php Entferne die mal aus dem Verzeichnis, die hat da nix zu suchen. Moritz

---

<div class="post-metadata">

**Author:** ![shcshopware](https://avatars.discourse-cdn.com/v4/letter/s/46a35a/32.png) [@shcshopware](https://forum.shopware.com/u/shcshopware)\
**Post date:** [20. Oktober 2015 um 03:00 UTC](https://forum.shopware.com/t/nach-update-auf-5-1-fehler-fatal-error-cannot-redeclare-cla/31488/3 "2015-10-20T03:00:46Z")

</div>

DANKE - Der Hinweis was sehr hilfreich.
