Fehler im (Kontakt)Formular seit Update auf SW 5.7.4

Hallo,
nach dem reibungslosem update von SW 5.7.3 auf 5.7.4 funktioniert das Kontaktformular nicht mehr (andere Formulare nutze ich nicht).
Folgende Fehlermeldung zeigt SW beim Versuch das Kontaktformular aufzurufen an:

Fatal error: Uncaught Doctrine\ORM\EntityNotFoundException: Unable to find "Shopware\Models\Form\Form" entity identifier associated with the UnitOfWork in /var/www/web/vendor/doctrine/orm/lib/Doctrine/ORM/EntityNotFoundException.php:59 Stack trace:
#0 /var/www/web/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php(3064): Doctrine\ORM\EntityNotFoundException::noIdentifierFound()
#1 /var/www/web/engine/Shopware/Components/Model/ModelManager.php(354): Doctrine\ORM\UnitOfWork->getEntityIdentifier()
#2 /var/www/web/engine/Shopware/Components/Model/ModelManager.php(127): Shopware\Components\Model\ModelManager->serializeEntity()
#3 /var/www/web/engine/Shopware/Controllers/Frontend/Forms.php(276): Shopware\Components\Model\ModelManager->toArray()
#4 /var/www/web/engine/Shopware/Controllers/Frontend/Forms.php(82): Shopware_Controllers_Frontend_Forms->getContent()
#5 /var/www/c in /var/www/web/vendor/doctrine/orm/lib/Doctrine/ORM/EntityNotFoundException.php on line 59

Hat jemand auch diesen Fehler und wichtiger, kann man das und wenn ja wie beheben?

Der Fehler tritt unter PHP 7.4. und 8 auf, sowohl mit dem eigenen als auch dem unveränderten responsive Template.

Testshop 5.7.4 PHP 8.0.10
Kein Fehler im „Kontakt“ Kontaktformular.

Tatsächlich funktioniert das Formular bei uns ebenfalls nicht: „Ups! Ein Fehler ist aufgetreten!

Wir wurden bereits über das Problem informiert und arbeiten an einer Lösung, bitte versuchen Sie es in Kürze erneut.“

Ich sehe gerade, dass es generell mit den Formularen ein Problem zu geben scheint, die anderen Formulare scheinen auch nicht korrekt zu funktionieren.

Hallo,
ich habe jetzt sämtliche Plugins deaktiviert und habe immer noch den gleichen Fehler. Die Fehlermeldung ist noch ein wenig länger, nachdem ich den Cacheordner im Dateisystem manuell gelöscht habe:

Fatal error: Uncaught Doctrine\ORM\EntityNotFoundException: Unable to find "Shopware\Models\Form\Form" entity identifier associated with the UnitOfWork in /var/www/web/vendor/doctrine/orm/lib/Doctrine/ORM/EntityNotFoundException.php:59 Stack trace: 
#0 /var/www/web/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php(3064): Doctrine\ORM\EntityNotFoundException::noIdentifierFound() 
#1 /var/www/web/engine/Shopware/Components/Model/ModelManager.php(354): Doctrine\ORM\UnitOfWork->getEntityIdentifier() 
#2 /var/www/web/engine/Shopware/Components/Model/ModelManager.php(127): Shopware\Components\Model\ModelManager->serializeEntity() 
#3 /var/www/web/engine/Shopware/Controllers/Frontend/Forms.php(276): Shopware\Components\Model\ModelManager->toArray() 
#4 /var/www/web/engine/Shopware/Controllers/Frontend/Forms.php(82): Shopware_Controllers_Frontend_Forms->getContent() 
#5 /var/www/web/engine/Library/Enlight/Controller/Action.php(182): Shopware_Controllers_Frontend_Forms->indexAction() 
#6 /var/www/web/engine/Library/Enlight/Controller/Dispatcher/Default.php(461): Enlight_Controller_Action->dispatch() 
#7 /var/www/web/engine/Library/Enlight/Controller/Front.php(225): Enlight_Controller_Dispatcher_Default->dispatch() 
#8 /var/www/web/engine/Shopware/Kernel.php(197): Enlight_Controller_Front->dispatch() 
#9 /var/www/web/vendor/symfony/http-kernel/HttpCache/SubRequestHandler.php(85): Shopware\Kernel->handle() 
#10 /var/www/web/vendor/symfony/http-kernel/HttpCache/HttpCache.php(479): Symfony\Component\HttpKernel\HttpCache\SubRequestHandler::handle() 
#11 /var/www/web/engine/Shopware/Components/HttpCache/AppCache.php(262): Symfony\Component\HttpKernel\HttpCache\HttpCache->forward() 
#12 /var/www/web/vendor/symfony/http-kernel/HttpCache/HttpCache.php(452): Shopware\Components\HttpCache\AppCache->forward() 
#13 /var/www/web/vendor/symfony/http-kernel/HttpCache/HttpCache.php(346): Symfony\Component\HttpKernel\HttpCache\HttpCache->fetch() 
#14 /var/www/web/engine/Shopware/Components/HttpCache/AppCache.php(189): Symfony\Component\HttpKernel\HttpCache\HttpCache->lookup() 
#15 /var/www/web/vendor/symfony/http-kernel/HttpCache/HttpCache.php(224): Shopware\Components\HttpCache\AppCache->lookup() 
#16 /var/www/web/engine/Shopware/Components/HttpCache/AppCache.php(114): Symfony\Component\HttpKernel\HttpCache\HttpCache->handle() 
#17 /var/www/web/shopware.php(122): Shopware\Components\HttpCache\AppCache->handle() 
#18 {main} thrown in /var/www/web/vendor/doctrine/orm/lib/Doctrine/ORM/EntityNotFoundException.php on line 59

@sonic Ist Dein Testshop neu installiert oder von einer früheren Version upgedateted?

PS Das zweite genutzte Formular im Shop, die Artikel-Anfrage unten auf der Artikel-Detailseite leitet zur selben Fehlermeldung

1 „Gefällt mir“

Asbach Uralt, ich glaube sogar, von 4.x bis 5.7.4 durchgeupdated.

Ich werde mich gleich auch weiter auf die Fehlersuche begeben, auch alles durchgeupdated.

Zweiter Shop: Frühjahr 2020 aufgesetzt, aber nie „online“ gegangen.
Gerade schnell auf 5.7.4 aktualisiert, PHP 7.4.23
Auch hier: kein Fehler.
Beide Shops bei All-Inkl. einmal „Private Plus“ und einmal „Business“

Edit: Auch die EMails aus beiden Shops sind angekommen.

Hallo in die Runde,
hier derselbe Fehler wie beschrieben.
5.7.4 PHP 8.0.11

Gruß Armin

Hallo zusammen,

wir können den Fehler bei uns aktuell auch nicht nachstellen.
Könntet ihr mal diese Änderungen testen? Try to fiix forms · mitelg/shopware@a38be68 · GitHub
Falls das euer Problem behebt, werden wir das in den Core übernehmen.

Viele Grüße aus Schöppingen
Michael Telgmann

2 „Gefällt mir“

Hallo @Michael_Telgmann , der Fix löst das Problem. Vielen Dank. :smiley:

In einem „frischen“ Shopware 5.7.3 → 5.7.4 aus September gibt es das Problem bei mir NICHT. Vll hilft es das Problem einzugrenzen.

Gleiches Problem, fix tut seinen Dienst!

Hallo zusammen,

auf Grund eures Feedback werden wir in Kürze eine Hotfix Version releasen.

Viele Grüße aus Schöppingen
Michael Telgmann

3 „Gefällt mir“

Ja, funktioniert wieder

Und hier ist auch schon das neue Patch-Release v5.7.5: Shopware Changelog.

Besten Dank für Eure Mitarbeit!

2 „Gefällt mir“