Hallo zusammen, wir haben auch Probleme mit dem Kontaktformular in der aktuellen SW6.1.1 Stable Version.
Zuerst haben wir vermutet, dass es an unseren Modifikationen durch das Theme liegt, jedoch funktioniert das Formular auch nicht, wenn wir es auf einer nicht modifizierten Version durchführen die wir durch das Partnerportal erstellt haben.
Laut dem Log scheinen die Daten korrekt an den FormController übergeben worden zu sein:
[2020-02-06 08:14:37] request.INFO: Matched route "frontend.form.contact.send". {"route":"frontend.form.contact.send","route_parameters":{"_route":"frontend.form.contact.send","XmlHttpRequest":true,"_controller":"Shopware\\Storefront\\Controller\\FormController::sendContactForm"},"request_uri":"https://ditegra.shop/form/contact","method":"POST"} []
[2020-02-06 08:14:38] business_events.INFO: mail.sent {"source":"core","environment":"prod","additionalData":{"subject":"Contact form received - ","recipients":{"info@diterga.de":"info@diterga.de"},"contents":{"text/html":"\n \n Following Message was sent to you by dfsadffdsafasd fasdfasdfas via the contact form.\n \n Contact email address: sergej.riewe@ditegra.de\n Phone: 12345685425\n Subject: gfddgshhfgjhgjgfkkjhgf\n \n Message: gfsdfghdhgfdhfdhfdfdhjfhgd\n \n ","text/plain":"Following Message was sent to you by dfsadffdsafasd fasdfasdfas via the contact form.\n\n Contact email address: sergej.riewe@ditegra.de\n Phone: 12345685425\n \n Subject: gfddgshhfgjhgjgfkkjhgf\n \n Message: gfsdfghdhgfdhfdhfdfdhjfhgd"}}} []
[2020-02-06 08:14:38] business_events.DEBUG: contact_form.send {"source":"core","environment":"prod","additionalData":[]} []
Jedoch kommt danach eine null Exception im ContactFormService.php Zeile 97 weil diese wohl irgendwo nicht korrekt weitergegeben werden:
[2020-02-06 08:14:38] php.CRITICAL: Uncaught Error: Return value of Shopware\Core\Content\ContactForm\ContactFormService::sendContactForm() must be of the type string, null returned {"exception":"[object] (TypeError(code: 0): Return value of Shopware\\Core\\Content\\ContactForm\\ContactFormService::sendContactForm() must be of the type string, null returned at /home/ditdlxok/www.ditegra.shop/vendor/shopware/core/Content/ContactForm/ContactFormService.php:97)"} []
[2020-02-06 08:14:38] request.CRITICAL: Uncaught PHP Exception TypeError: "Return value of Shopware\Core\Content\ContactForm\ContactFormService::sendContactForm() must be of the type string, null returned" at /home/ditdlxok/www.ditegra.shop/vendor/shopware/core/Content/ContactForm/ContactFormService.php line 97 {"exception":"[object] (TypeError(code: 0): Return value of Shopware\\Core\\Content\\ContactForm\\ContactFormService::sendContactForm() must be of the type string, null returned at /home/ditdlxok/www.ditegra.shop/vendor/shopware/core/Content/ContactForm/ContactFormService.php:97)"} []
[2020-02-06 08:15:05] request.INFO: Matched route "frontend.form.contact.send". {"route":"frontend.form.contact.send","route_parameters":{"_route":"frontend.form.contact.send","XmlHttpRequest":true,"_controller":"Shopware\\Storefront\\Controller\\FormController::sendContactForm"},"request_uri":"https://ditegra.shop/form/contact","method":"POST"} []
In meiner dev Umgebung die auf der 6.1.9 Version läuft habe ich den Fehler nicht.
Jemand eine Idee für einen vorübergehenden Workaround oder wann ein Bugfix / Hotfix kommt?
Danke und Gruß