# HTTP Error 500 nach Update auf 5.6.2

**URL:** <https://forum.shopware.com/t/http-error-500-nach-update-auf-5-6-2/62561>\
**Category:** Allgemein\
**Created:** [23. Oktober 2019 um 09:53 UTC](https://forum.shopware.com/t/http-error-500-nach-update-auf-5-6-2/62561 "2019-10-23T09:53:39Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Freddy](https://avatars.discourse-cdn.com/v4/letter/f/3d9bf3/32.png) [@Freddy](https://forum.shopware.com/u/Freddy)\
**Post date:** [23. Oktober 2019 um 09:53 UTC](https://forum.shopware.com/t/http-error-500-nach-update-auf-5-6-2/62561/1 "2019-10-23T09:53:39Z")

</div>

Hallo,&nbsp;

wir bekommen aktuell den HTTP Error 500 nach Update von Shopware 5.5.10 auf 5.6

Das Update lief ohne Probleme durch.&nbsp;

Host ist Mittwald

Php7.2-latest FPM

&nbsp;

Folgendes steht in der Log Datei nach Aufruf des Backends:

_**217.237.163.0 - - [23/Oct/2019:11:28:50 +0200] “GET /backend HTTP/2.0” 200 100 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.120 Safari/537.36”&nbsp;www.**_

&nbsp;

&nbsp;

&nbsp;

---

<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:** [23. Oktober 2019 um 09:56 UTC](https://forum.shopware.com/t/http-error-500-nach-update-auf-5-6-2/62561/2 "2019-10-23T09:56:11Z")

</div>

Bei Error 500 muss hier eine andere Fehlermeldung stehen.

SW Hilfe:

- Devtools deines Browsers nutzen

- Browser F12 (Entwicklerwerkzeuge) nach Fehlerausgaben schauen

- Fehlermeldungen in Shopware debuggen und untersuchen  
[Shopware 5 - Tutorials & FAQs - Fehlermeldungen in Shopware debuggen](https://docs.shopware.com/de/shopware-5-de/tutorials-und-faq/fehlermeldungen-in-shopware-debuggen)

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

---

<div class="post-metadata">

**Author:** ![kulli](https://avatars.discourse-cdn.com/v4/letter/k/a3d4f5/32.png) [@kulli](https://forum.shopware.com/u/kulli)\
**Post date:** [23. Oktober 2019 um 09:56 UTC](https://forum.shopware.com/t/http-error-500-nach-update-auf-5-6-2/62561/3 "2019-10-23T09:56:32Z")

</div>

Am besten Du fragst Mittwald; ohne Server-Log kann da keiner helfen.

---

<div class="post-metadata">

**Author:** ![Freddy](https://avatars.discourse-cdn.com/v4/letter/f/3d9bf3/32.png) [@Freddy](https://forum.shopware.com/u/Freddy)\
**Post date:** [23. Oktober 2019 um 10:42 UTC](https://forum.shopware.com/t/http-error-500-nach-update-auf-5-6-2/62561/4 "2019-10-23T10:42:07Z")

</div>

Mittwald hat den Fehler gefunden. Es lag am Shopware Connect-Plugin, das offenbar nicht mit der Shopware Version kompatibel ist.&nbsp;

Folgender Fehler wurde im PHP-Errolog aufgezeichnet:

```
23-Oct-2019 12:10:20 Europe/Berlin] PHP Fatal error: Uncaught Error: Undefined class constant 'VERSION' in /html/shopware/engine/Shopware/Plugins/Community/Backend/SwagConnect/Components/ConnectFactory.php:303
Stack trace:
#0 /html/shopware/engine/Shopware/Plugins/Community/Backend/SwagConnect/Components/ConnectFactory.php(239): ShopwarePlugins\Connect\Components\ConnectFactory->getPluginVersion()
#1 /html/shopware/engine/Shopware/Plugins/Community/Backend/SwagConnect/Bootstrap.php(225): ShopwarePlugins\Connect\Components\ConnectFactory->createSDK()
#2 /html/shopware/engine/Library/Enlight/Event/Handler/Plugin.php(145): Shopware_Plugins_Backend_SwagConnect_Bootstrap->onInitResourceSDK(Object(Enlight_Event_EventArgs))
#3 /html/shopware/engine/Library/Enlight/Event/EventManager.php(251): Enlight_Event_Handler_Plugin->execute(Object(Enlight_Event_EventArgs))
#4 /html/shopware/engine/Shopware/Components/DependencyInjection/Container.php(203): Enlight_Event_EventManager->notifyUntil('Enlight_Bootstr...', Object(Enlight_Event_EventArgs))
#5 /html/shopware/engine/Shop in /html/shopware/engine/Shopware/Plugins/Community/Backend/SwagConnect/Components/ConnectFactory.php on line 303

```

&nbsp;

---

<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:** [23. Oktober 2019 um 11:32 UTC](https://forum.shopware.com/t/http-error-500-nach-update-auf-5-6-2/62561/5 "2019-10-23T11:32:54Z")

</div>

> Es lag am Shopware Connect-Plugin, das offenbar nicht mit der Shopware Version kompatibel ist.&nbsp;

Den Ärger könnte man sich ersparen wenn man **VORHER** die Plugins prüft.&nbsp;

> **[Shopware 5 - Update Guides - Shopware aktualisieren / updaten](https://docs.shopware.com/de/shopware-5-de/update-guides/shopware-aktualisieren-updaten)**
>
> Um immer alle möglichen Features und Fixes zu beinhalten sollte dein System per Update auf dem aktuellsten Stand gehalten werden. Um ein Update durchzuführen hast du verschiedene Wege die Dir hier näher erläutert werden.

---

<div class="post-metadata">

**Author:** ![Freddy](https://avatars.discourse-cdn.com/v4/letter/f/3d9bf3/32.png) [@Freddy](https://forum.shopware.com/u/Freddy)\
**Post date:** [24. Oktober 2019 um 05:56 UTC](https://forum.shopware.com/t/http-error-500-nach-update-auf-5-6-2/62561/6 "2019-10-24T05:56:06Z")

</div>

> [@R4M schrieb:](https://forum.shopware.com/profile/17170/R4M "R4M")
> 
> > Es lag am Shopware Connect-Plugin, das offenbar nicht mit der Shopware Version kompatibel ist.&nbsp;
> 
> Den Ärger könnte man sich ersparen wenn man **VORHER** die Plugins prüft.&nbsp;
> 
> [https://docs.shopware.com/de/shopware-5-de/update-guides/shopware-aktualisieren-updaten](https://docs.shopware.com/de/shopware-5-de/update-guides/shopware-aktualisieren-updaten)

&nbsp;

Plugins wurden selbstverständlich geprüft, aktualisiert&nbsp;;)&nbsp; Allerdings war dieses Plugin noch unter den „Deaktivierten“ und ist deshalb leider unter dem Radar gelaufen. 😑

---

<div class="post-metadata">

**Author:** ![abinjohnedamana](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/abinjohnedamana/32/17378_2.png) [@abinjohnedamana](https://forum.shopware.com/u/abinjohnedamana)\
**Post date:** [2. Dezember 2019 um 05:01 UTC](https://forum.shopware.com/t/http-error-500-nach-update-auf-5-6-2/62561/7 "2019-12-02T05:01:46Z")

</div>

Shopware::VERSION was removed from shopware version 5.6.&nbsp;

Replace $swVersion = \Shopware::VERSION; in engine/Shopware/Plugins/Community/Backend/SwagConnect/Components/ConnectFactory.php line number 303

With $swVersion = $this-\>getShopwareVersion();&nbsp;

&nbsp; &nbsp; public function getShopwareVersion()  
&nbsp; &nbsp; {  
&nbsp; &nbsp; &nbsp; &nbsp; if ($this-\>getContainer()-\>hasParameter(‚shopware.release.version‘)) {  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Get version from the shopware dic  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $version = $this-\>getContainer()-\>getParameter(‚shopware.release.version‘);  
&nbsp; &nbsp; &nbsp; &nbsp; } else {  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Get the version by the old const  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $version = \Shopware::VERSION;  
&nbsp; &nbsp; &nbsp; &nbsp; }

&nbsp; &nbsp; &nbsp; &nbsp; return $version;  
&nbsp; &nbsp; }
