# Shopware 6.4.X mit PHP 8.1

**URL:** <https://forum.shopware.com/t/shopware-6-4-x-mit-php-8-1/91885>\
**Category:** Shopware 6 (German)\
**Created:** [9. Dezember 2021 um 09:28 UTC](https://forum.shopware.com/t/shopware-6-4-x-mit-php-8-1/91885 "2021-12-09T09:28:13Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![T7OM](https://avatars.discourse-cdn.com/v4/letter/t/2bfe46/32.png) [@T7OM](https://forum.shopware.com/u/T7OM)\
**Post date:** [9. Dezember 2021 um 09:28 UTC](https://forum.shopware.com/t/shopware-6-4-x-mit-php-8-1/91885/1 "2021-12-09T09:28:13Z")

</div>

Servus liebes Forum,

ich habe vorhin gesehen, dass ich mein Shopware 6 bei Mittwald noch auf der PHP 7.4-latest laufen habe. Shopware ist ja bereits mit PHP 8 kompatibel.

Läuft auch alles einwandfrei unter Shopware 8.1, wenn ich allerdings mein selbst geschriebenes Theme zuordnen möchte, dann kommt jedes Mal: Kann nicht zugeordnet werden…

Muss das in der composer.json irgendwie als kompatibel gekennzeichnet werden? Oder klappt das zurzeit einfach noch nicht?

Wäre über einen Tipp sehr dankbar! 😉  
Beste Grüße  
Tom

---

<div class="post-metadata">

**Author:** ![Federico](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/federico/32/14491_2.png) [@Federico](https://forum.shopware.com/u/Federico)\
**Post date:** [17. Februar 2022 um 14:27 UTC](https://forum.shopware.com/t/shopware-6-4-x-mit-php-8-1/91885/2 "2022-02-17T14:27:41Z")

</div>

Ich habe das gleiche Problem … schon zu einer Lösung gekommen? 🙂

---

<div class="post-metadata">

**Author:** ![T7OM](https://avatars.discourse-cdn.com/v4/letter/t/2bfe46/32.png) [@T7OM](https://forum.shopware.com/u/T7OM)\
**Post date:** [17. Februar 2022 um 14:39 UTC](https://forum.shopware.com/t/shopware-6-4-x-mit-php-8-1/91885/3 "2022-02-17T14:39:41Z")

</div>

Leider nicht, arbeite weiter mit der 7.4

---

<div class="post-metadata">

**Author:** ![Federico](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/federico/32/14491_2.png) [@Federico](https://forum.shopware.com/u/Federico)\
**Post date:** [17. Februar 2022 um 14:57 UTC](https://forum.shopware.com/t/shopware-6-4-x-mit-php-8-1/91885/4 "2022-02-17T14:57:33Z")

</div>

Schade, danke trotzdem. 🙂

---

<div class="post-metadata">

**Author:** ![olli.k](https://avatars.discourse-cdn.com/v4/letter/o/e99b99/32.png) [@olli.k](https://forum.shopware.com/u/olli.k)\
**Post date:** [21. Februar 2022 um 19:17 UTC](https://forum.shopware.com/t/shopware-6-4-x-mit-php-8-1/91885/5 "2022-02-21T19:17:03Z")

</div>

Hast du es mal versucht über die CLI Befehle zuzuweisen, da kommen in der Regel mehr Infos als über das Backend, vielleicht gibt dir das einen Hinweis, warum du es nicht zuweisen kannst.

---

<div class="post-metadata">

**Author:** ![Max\_Shop](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@Max\_Shop](https://forum.shopware.com/u/Max_Shop)\
**Post date:** [22. Februar 2022 um 11:49 UTC](https://forum.shopware.com/t/shopware-6-4-x-mit-php-8-1/91885/6 "2022-02-22T11:49:10Z")

</div>

In der error.log steht gewiss der Fehler drin. Einfach dort nachsehen. Bei mir läuft Shopware unter PHP 8.0 ohne Probleme.

---

<div class="post-metadata">

**Author:** ![sven-sw](https://avatars.discourse-cdn.com/v4/letter/s/8491ac/32.png) [@sven-sw](https://forum.shopware.com/u/sven-sw)\
**Post date:** [10. März 2022 um 07:16 UTC](https://forum.shopware.com/t/shopware-6-4-x-mit-php-8-1/91885/7 "2022-03-10T07:16:24Z")

</div>

Hallo, wird Shopware 6.4.8.1 von PHP 8.1.3 im März 2022 unterstützt?

> **[PHP 8.1 - Lohnt sich das Update?](https://maxcluster.de/blog/php-8-1-update-wechsel)**
>
> PHP 8.1 ist da. Erfahren Sie hier, welche neuen Features und Funktionen das neue Minor-Release mit sich bringt und wie der Wechsel gelingt.

Auszug: Shopware 6 ✗ Bisher keine Unterstützung von PHP 8.1

> **[System Requirements](https://developers.shopware.com/sysadmins-guide/system-requirements/)**
>
> System Requirements

Wie komme ich zu der Information?

MfG  
sven-sw

---

<div class="post-metadata">

**Author:** ![Max\_Shop](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@Max\_Shop](https://forum.shopware.com/u/Max_Shop)\
**Post date:** [10. März 2022 um 10:15 UTC](https://forum.shopware.com/t/shopware-6-4-x-mit-php-8-1/91885/8 "2022-03-10T10:15:05Z")

</div>

Shopware unterstützt PHP 8.1 sobald es im Changelog steht.

---

<div class="post-metadata">

**Author:** ![sven-sw](https://avatars.discourse-cdn.com/v4/letter/s/8491ac/32.png) [@sven-sw](https://forum.shopware.com/u/sven-sw)\
**Post date:** [10. März 2022 um 10:45 UTC](https://forum.shopware.com/t/shopware-6-4-x-mit-php-8-1/91885/9 "2022-03-10T10:45:17Z")

</div>

> **[Download Shopware](https://www.shopware.com/de/changelog/)**
>
> Hier findest Du alle Versionen unserer Software in chronologischer Reihenfolge und kannst Änderungen, Bugfixes und Anpassungen einsehen.

> **[Releases · shopware/platform](https://github.com/shopware/platform/releases)**
>
> Shopware 6 is an open commerce platform based on Symfony Framework and Vue and supported by a worldwide community and more then 1.500 community extensions - shopware/platform

Die Developer geben an: **PHP 7.2.0 or higher**

Wie hätte ich vorab feststellen das PHP 8.1 nicht unterstützt wird?

Wie finde ich die Changeloginformation zu der PHP 8.0 Unterstützung?

Wo wird Dokumentiert welche neueste PHP Version unterstützt wird?

---

<div class="post-metadata">

**Author:** ![Max\_Shop](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@Max\_Shop](https://forum.shopware.com/u/Max_Shop)\
**Post date:** [10. März 2022 um 13:43 UTC](https://forum.shopware.com/t/shopware-6-4-x-mit-php-8-1/91885/10 "2022-03-10T13:43:33Z")

</div>

Wenn man sich den Changelog durchliest, dann findet man entsprechende Informationen.

**[NEXT-10402](https://issues.shopware.com/issues/NEXT-10402) -** Mindest-PHP-Version auf PHP 7.4 angehoben  
**[NEXT-12242](https://issues.shopware.com/issues/NEXT-12242) -** PHP 8.0 Kompatibilität hinzugefügt

Für Software generell würde ich sagen, dass Aussagen wie **PHP 7.2.0 or higher** immer auf den Zeitpunkt der Veröffentlichung bezogen werden müssen. Sonst muss man an so viele Stellen die Dokumentation aktualisieren, wenn sich irgendeine Komponente, etc. geändert hat.

---

<div class="post-metadata">

**Author:** ![sven-sw](https://avatars.discourse-cdn.com/v4/letter/s/8491ac/32.png) [@sven-sw](https://forum.shopware.com/u/sven-sw)\
**Post date:** [10. März 2022 um 14:21 UTC](https://forum.shopware.com/t/shopware-6-4-x-mit-php-8-1/91885/11 "2022-03-10T14:21:14Z")

</div>

Das sind aber Tickets die Du verlinkt hast.

Wie findet ein Neueinsteiger das aktuellste PHP Release was mit Shopware 6.4.x funktioniert?

Erst installieren, dann feststellen oh funktioniert doch nicht, so wie bei mir?

---

<div class="post-metadata">

**Author:** ![marco.steinhaeuser](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/marco.steinhaeuser/32/14512_2.png) [@marco.steinhaeuser](https://forum.shopware.com/u/marco.steinhaeuser)\
**Post date:** [10. März 2022 um 15:45 UTC](https://forum.shopware.com/t/shopware-6-4-x-mit-php-8-1/91885/12 "2022-03-10T15:45:13Z")

</div>

Beim Durchlaufen der Installationsroutine gibt es gleich am Anfang einen Checker für die System Requiremnts. Der sagt Dir ziemlich genau, was geht und was nicht. [Shopware 6 - First Steps - Installation](https://docs.shopware.com/en/shopware-6-en/first-steps/installing-shopware-6?category=shopware-6-en/getting-started#Checking-the-system-requirements)

---

<div class="post-metadata">

**Author:** ![Max\_Shop](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@Max\_Shop](https://forum.shopware.com/u/Max_Shop)\
**Post date:** [10. März 2022 um 15:50 UTC](https://forum.shopware.com/t/shopware-6-4-x-mit-php-8-1/91885/13 "2022-03-10T15:50:51Z")

</div>

Die Tickets sind Bestandteil des Changelog.

@marco.steinhaeuser ohne es gerade getestet zu haben, ich glaube es wird nur die Minimum-Konfiguration für PHP angezeigt, nicht das Maximum.

---

<div class="post-metadata">

**Author:** ![sven-sw](https://avatars.discourse-cdn.com/v4/letter/s/8491ac/32.png) [@sven-sw](https://forum.shopware.com/u/sven-sw)\
**Post date:** [10. März 2022 um 15:53 UTC](https://forum.shopware.com/t/shopware-6-4-x-mit-php-8-1/91885/14 "2022-03-10T15:53:15Z")

</div>

> [@marco.steinhaeuser](#):
>
> Beim Durchlaufen der Installationsroutine gibt es gleich am Anfang einen Checker für die System Requiremnts. Der sagt Dir ziemlich genau, was geht und was nicht.

Richtig, dann ist der Server ab schon fertig.

> [@Dein System ist noch nicht bereit für Shopware 6 - PHP Versions Probleme](https://forum.shopware.com/t/dein-system-ist-noch-nicht-bereit-fuer-shopware-6-php-versions-probleme/93326):
>
> Hallo, wie löse ich folgende Fehlermeldung? [Bild] Vollständige Hinweise: Dateien und Verzeichnisse System Dein Server sollte die folgenden Systemvoraussetzungen erfüllen, um Shopware im ganzen Ausmaß nutzen zu können. Voraussetzung Status Erforderlich Dein System php Bereit 7.4.3 8.0.16 pdo Bereit 1 1 pdo\_mysql Fehler 1 0 phar Bereit 1 1 fileinfo Bereit 1 1 dom Bereit 1 1 gd Warnung 2.0.0 0 gd\_jpg Warnung 1 0 freetype Warnung 1 0 libxml Bereit 2.6.26 2.9…

Gewöhnlich schaue ich immer vorher was so benötigt, bzw. möglich ist.

---

<div class="post-metadata">

**Author:** ![marco.steinhaeuser](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/marco.steinhaeuser/32/14512_2.png) [@marco.steinhaeuser](https://forum.shopware.com/u/marco.steinhaeuser)\
**Post date:** [10. März 2022 um 16:17 UTC](https://forum.shopware.com/t/shopware-6-4-x-mit-php-8-1/91885/15 "2022-03-10T16:17:09Z")

</div>

Okay, ich hab mir das nochmal angeschaut und spüre, was Du fühlst 😃

Um Deine Frage(n) konkret zu beantworten: Ja, Shopware sollte in der aktuellen Version mit PHP 8.1 und MariaDB 10.7 laufen.

Ich fände es auch glücklicher, wenn man auf einen Ruck nicht nur die Minimalanforderungen in den Systemvoraussetzungen sieht sondern pro aktueller Version auch, auf welchen PHP- und Datenbankversionen _getestet_ wurde. Ich sehe zu, was ich da für die Zukunft machen kann.

---

<div class="post-metadata">

**Author:** ![sven-sw](https://avatars.discourse-cdn.com/v4/letter/s/8491ac/32.png) [@sven-sw](https://forum.shopware.com/u/sven-sw)\
**Post date:** [10. März 2022 um 16:19 UTC](https://forum.shopware.com/t/shopware-6-4-x-mit-php-8-1/91885/16 "2022-03-10T16:19:50Z")

</div>

PHP 8.1

Bist Du dir da sicher?

> [@Dein System ist noch nicht bereit für Shopware 6 - PHP Versions Probleme](https://forum.shopware.com/t/dein-system-ist-noch-nicht-bereit-fuer-shopware-6-php-versions-probleme/93326/13):
>
> Nö… sehe ich differenzierter. Ist es ein System, auf dem nur eine Umgebung läuft - z.B. ngingx mit PHP 8.0.x nehem ich für die Kommandozeile auch 8.0.x Ist es ein System mit zig unterschiedlichen vhost ist es eh egal - man sollte die Befehle dann eh angepasst auf den jeweiligen vhost mit ANgabe der php-Version im Befehl absetzen. Somit …

Da habe ich es nicht hinbekommen.

Was nicht umbedingt was heißen muss, ich bin ein noob.

---

<div class="post-metadata">

**Author:** ![marco.steinhaeuser](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/marco.steinhaeuser/32/14512_2.png) [@marco.steinhaeuser](https://forum.shopware.com/u/marco.steinhaeuser)\
**Post date:** [10. März 2022 um 16:23 UTC](https://forum.shopware.com/t/shopware-6-4-x-mit-php-8-1/91885/17 "2022-03-10T16:23:10Z")

</div>

Yep, seit 6.4.8.0: [Shopware Issuetracker](https://issues.shopware.com/issues/NEXT-19032)

---

<div class="post-metadata">

**Author:** ![m.lehberger](https://avatars.discourse-cdn.com/v4/letter/m/e99b99/32.png) [@m.lehberger](https://forum.shopware.com/u/m.lehberger)\
**Post date:** [14. März 2022 um 10:37 UTC](https://forum.shopware.com/t/shopware-6-4-x-mit-php-8-1/91885/18 "2022-03-14T10:37:17Z")

</div>

Ich habe einen Shop mit der Version 6.4.8.2 unter PHP 8.1.3 laufen. (Ubuntu 20.04)

Nun habe ich versucht auf die aktuelle Version 6.4.9.0 zu aktualisieren und erhalte folgende Fehler:

Deprecated: Return type of Pimple\Container::offsetExists($id) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/mastersoles-shop/vendor/shopware/recovery/Common/vendor/pimple/pimple/src/Pimple/Container.php on line 133

Deprecated: Return type of Pimple\Container::offsetGet($id) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/mastersoles-shop/vendor/shopware/recovery/Common/vendor/pimple/pimple/src/Pimple/Container.php on line 98

Deprecated: Return type of Pimple\Container::offsetSet($id, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/mastersoles-shop/vendor/shopware/recovery/Common/vendor/pimple/pimple/src/Pimple/Container.php on line 79

Deprecated: Return type of Pimple\Container::offsetUnset($id) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/mastersoles-shop/vendor/shopware/recovery/Common/vendor/pimple/pimple/src/Pimple/Container.php on line 143

Deprecated: Return type of Slim\Collection::offsetExists($key) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/mastersoles-shop/vendor/shopware/recovery/Common/vendor/slim/slim/Slim/Collection.php on line 112

Deprecated: Return type of Slim\Collection::offsetGet($key) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/mastersoles-shop/vendor/shopware/recovery/Common/vendor/slim/slim/Slim/Collection.php on line 124

Deprecated: Return type of Slim\Collection::offsetSet($key, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/mastersoles-shop/vendor/shopware/recovery/Common/vendor/slim/slim/Slim/Collection.php on line 135

Deprecated: Return type of Slim\Collection::offsetUnset($key) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/mastersoles-shop/vendor/shopware/recovery/Common/vendor/slim/slim/Slim/Collection.php on line 145

Deprecated: Return type of Slim\Collection::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/mastersoles-shop/vendor/shopware/recovery/Common/vendor/slim/slim/Slim/Collection.php on line 155

Deprecated: Return type of Slim\Collection::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/mastersoles-shop/vendor/shopware/recovery/Common/vendor/slim/slim/Slim/Collection.php on line 165

Deprecated: Return type of Slim\Collection::offsetExists($key) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/mastersoles-shop/vendor/shopware/recovery/Common/vendor/slim/slim/Slim/Collection.php on line 112

Deprecated: Return type of Slim\Collection::offsetGet($key) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/mastersoles-shop/vendor/shopware/recovery/Common/vendor/slim/slim/Slim/Collection.php on line 124

Deprecated: Return type of Slim\Collection::offsetSet($key, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/mastersoles-shop/vendor/shopware/recovery/Common/vendor/slim/slim/Slim/Collection.php on line 135

Deprecated: Return type of Slim\Collection::offsetUnset($key) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/mastersoles-shop/vendor/shopware/recovery/Common/vendor/slim/slim/Slim/Collection.php on line 145

Deprecated: Return type of Slim\Collection::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/mastersoles-shop/vendor/shopware/recovery/Common/vendor/slim/slim/Slim/Collection.php on line 155

Deprecated: Return type of Slim\Collection::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/mastersoles-shop/vendor/shopware/recovery/Common/vendor/slim/slim/Slim/Collection.php on line 165

Fatal error: Uncaught RuntimeException: Unexpected data in output buffer. Maybe you have characters before an opening \<?php tag? in /var/www/mastersoles-shop/vendor/shopware/recovery/Common/vendor/slim/slim/Slim/App.php:621 Stack trace: #0 /var/www/mastersoles-shop/vendor/shopware/recovery/Common/vendor/slim/slim/Slim/App.php(317): Slim\App-\>finalize() #1 /var/www/mastersoles-shop/vendor/shopware/recovery/Update/index.php(39): Slim\App-\>run() #2 /var/www/mastersoles-shop/public/recovery/update/index.php(6): require\_once(’…’) #3 {main} thrown in /var/www/mastersoles-shop/vendor/shopware/recovery/Common/vendor/slim/slim/Slim/App.php on line 621

Wenn ich das ganze aber mit php 8.0.16 oder 7.4.28 durchführe tritt dieser Fehler nicht auf.

Nachdem ich nun die php Version, nach dem Update, wieder auf die 8.1.3 gestellt habe,  
scheint der Shop aber richtig zu funktionieren.

Könnte das Problem mit der Updateroutine zusammen hängen?

Kann jemand dieses Problem nachvollziehen?

---

<div class="post-metadata">

**Author:** ![Max\_Shop](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@Max\_Shop](https://forum.shopware.com/u/Max_Shop)\
**Post date:** [14. März 2022 um 11:04 UTC](https://forum.shopware.com/t/shopware-6-4-x-mit-php-8-1/91885/19 "2022-03-14T11:04:55Z")

</div>

Shopware ist noch nich für PHP 8.1 ausgelegt.

Die Update-Routine ist anscheinend nicht 8.0 kompatibel, obwohl es so angegeben ist. Gab erst heute ein Forenbeitrag dazu.

---

<div class="post-metadata">

**Author:** ![User1](https://avatars.discourse-cdn.com/v4/letter/u/5daacb/32.png) [@User1](https://forum.shopware.com/u/User1)\
**Post date:** [7. Mai 2022 um 11:15 UTC](https://forum.shopware.com/t/shopware-6-4-x-mit-php-8-1/91885/20 "2022-05-07T11:15:26Z")

</div>

Problem mit den Update auf 6.4.11.1 unter PHP 8 besteht weiter, zurück auf 7.4.29 und das Update läuft problemlos durch.

[Nächste Seite](https://forum.shopware.com/t/shopware-6-4-x-mit-php-8-1/91885.md?page=2)
