# Upgrade auf SW 5.1 Fatal Error - Cannot redeclare Class.. ?

**URL:** https://forum.shopware.com/t/upgrade-auf-sw-5-1-fatal-error-cannot-redeclare-class/31534
**Category:** Installation/Einstieg
**Created:** [21. Oktober 2015 um 10:33 UTC](https://forum.shopware.com/t/upgrade-auf-sw-5-1-fatal-error-cannot-redeclare-class/31534 "2015-10-21T10:33:55Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![mohamedalhakim](https://avatars.discourse-cdn.com/v4/letter/m/8dc957/32.png) [@mohamedalhakim](https://forum.shopware.com/u/mohamedalhakim)
#### Post date: [21. Oktober 2015 um 10:33 UTC](https://forum.shopware.com/t/upgrade-auf-sw-5-1-fatal-error-cannot-redeclare-class/31534/1 "2015-10-21T10:33:55Z")

</div>

Hallo Ich habe von SW 5.04 auf SW5.1 upgraden wollen, folgende Fehlermeldung während des Upgrades: Fatal error: Cannot redeclare class Shopware\Models\Emotion\Template in /var/www/vhosts/schia-shop.de/httpdocs/engine/Shopware/Models/Emotion/\_Template.php on line 0 Ich komme nicht weiter im Upgrade Modus. Irgendwas stimmt nicht, aber was könnte es denn sein? Ich möchte nun nicht die Upgrade dateien alle löschen, dann zerhackt der shop und wird probleme geben, ich möchte es komplett durchziehen, damit es ein für alle male klappt. danke für jeden Hinweis.

---

<div class="post-metadata">

### Author: ![EikeBrandtWarneke](https://avatars.discourse-cdn.com/v4/letter/e/cdc98d/32.png) [@EikeBrandtWarneke](https://forum.shopware.com/u/EikeBrandtWarneke)
#### Post date: [21. Oktober 2015 um 10:39 UTC](https://forum.shopware.com/t/upgrade-auf-sw-5-1-fatal-error-cannot-redeclare-class/31534/2 "2015-10-21T10:39:02Z")

</div>

[quote=“mohamedalhakim”]/engine/Shopware/Models/Emotion/\_Template.php[/quote] Die Datei \_Template.php ist im standard nicht enthalten und wurde evtl. durch einen Programmierer von euch angelegt. Einfach Datei löschen und das Update erneut probieren. Viele Grüße

---

<div class="post-metadata">

### Author: ![mohamedalhakim](https://avatars.discourse-cdn.com/v4/letter/m/8dc957/32.png) [@mohamedalhakim](https://forum.shopware.com/u/mohamedalhakim)
#### Post date: [21. Oktober 2015 um 11:11 UTC](https://forum.shopware.com/t/upgrade-auf-sw-5-1-fatal-error-cannot-redeclare-class/31534/3 "2015-10-21T11:11:06Z")

</div>

ok super. danke, hat nun funktioniert, nun funktioniert der warenkorb nicht mehr [LINK zum SHOP](http://www.schia-shop.de) Der Shop lädt und lädt… aber es kommt nix?

---

<div class="post-metadata">

### Author: ![mipo12](https://avatars.discourse-cdn.com/v4/letter/m/7feea3/32.png) [@mipo12](https://forum.shopware.com/u/mipo12)
#### Post date: [17. Mai 2016 um 14:06 UTC](https://forum.shopware.com/t/upgrade-auf-sw-5-1-fatal-error-cannot-redeclare-class/31534/4 "2016-05-17T14:06:33Z")

</div>

Hallo hab auch ein Problem mit dem Warenkorb.

Es wurde folgender Fehler ausgegeben.

ERROR

Message: exception ‚Enlight\_Controller\_Exception‘ with message ‚Unauthorized‘ in /var/www/vhosts/vps6866.alfahosting-vps.de/heinicke.vps6866.alfahosting-vps.de/engine/Shopware/Plugins/Default/Backend/Auth/Bootstrap.php:202Stack trace:#0  
/var/www/vhosts/vps6866.alfahosting-vps.de/heinicke.vps6866.alfahosting-vps.de/engine/Library/Enlight/Event/Handler/Plugin.php(149): Shopware\_Plugins\_Backend\_Auth\_Bootstrap-\>onPreDispatchBackend(Object(Enlight\_Controller\_ActionEventArgs))#1  
/var/www/vhosts/vps6866.alfahosting-vps.de/heinicke.vps6866.alfahosting-vps.de/engine/Library/Enlight/Event/EventManager.php(213): Enlight\_Event\_Handler\_Plugin-\>execute(Object(Enlight\_Controller\_ActionEventArgs))#2  
/var/www/vhosts/vps6866.alfahosting-vps.de/heinicke.vps6866.alfahosting-vps.de/engine/Library/Enlight/Controller/Action.php(137): Enlight\_Event\_EventManager-\>notify(‚Enlight\_Control…‘, Object(Enlight\_Controller\_ActionEventArgs))#3  
/var/www/vhosts/vps6866.alfahosting-vps.de/heinicke.vps6866.alfahosting-vps.de/engine/Library/Enlight/Controller/Dispatcher/Default.php(523): Enlight\_Controller\_Action-\>dispatch(‚indexAction‘)#4  
/var/www/vhosts/vps6866.alfahosting-vps.de/heinicke.vps6866.alfahosting-vps.de/engine/Library/Enlight/Controller/Front.php(226): Enlight\_Controller\_Dispatcher\_Default-\>dispatch(Object(Enlight\_Controller\_Request\_RequestHttp), Object(Enlight\_Controller\_Response\_ResponseHttp))#5  
/var/www/vhosts/vps6866.alfahosting-vps.de/heinicke.vps6866.alfahosting-vps.de/engine/Shopware/Kernel.php(153): Enlight\_Controller\_Front-\>dispatch()#6  
/var/www/vhosts/vps6866.alfahosting-vps.de/heinicke.vps6866.alfahosting-vps.de/vendor/symfony/http-kernel/HttpCache/HttpCache.php(492): Shopware\Kernel-\>handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)#7  
/var/www/vhosts/vps6866.alfahosting-vps.de/heinicke.vps6866.alfahosting-vps.de/engine/Shopware/Components/HttpCache/AppCache.php(255): Symfony\Component\HttpKernel\HttpCache\HttpCache-\>forward(Object(Symfony\Component\HttpFoundation\Request), true, NULL)#8  
/var/www/vhosts/vps6866.alfahosting-vps.de/heinicke.vps6866.alfahosting-vps.de/vendor/symfony/http-kernel/HttpCache/HttpCache.php(263): Shopware\Components\HttpCache\AppCache-\>forward(Object(Symfony\Component\HttpFoundation\Request), true)#9  
/var/www/vhosts/vps6866.alfahosting-vps.de/heinicke.vps6866.alfahosting-vps.de/engine/Shopware/Components/HttpCache/AppCache.php(103): Symfony\Component\HttpKernel\HttpCache\HttpCache-\>pass(Object(Symfony\Component\HttpFoundation\Request), true)#10  
/var/www/vhosts/vps6866.alfahosting-vps.de/heinicke.vps6866.alfahosting-vps.de/shopware.php(101): Shopware\Components\HttpCache\AppCache-\>handle(Object(Symfony\Component\HttpFoundation\Request))#11 {main}  
&nbsp;  
Time: 2016-05-15T12:23:09.404701+0200  
&nbsp;  
Channel: core

Kann damit nicht wirklich was herauslesen. Kann Waren in den Korb legen,die auch angezeigt werden, sobald ich aber zum Warenkorb wechseln will …lädt er und lädt…

&nbsp;
