Hallo seit geraumer Zeit kann ich keine Bestellbestätigung mehr verschicken, dies hat bis zur kurzem noch funktioniert. Ich bekomme jetzt immer eine Fehlermeldung: mail.sent.error (Fehler 400) in den Ereignis-Logs. Ich habe keine Veränderung an den Einstellungen vorgenommen. Der E-Mail Versand scheint aber auch zu funktionieren, wenn z.B. ein Kunde sein Passwort vergessen hat bekommt er eine Mail zum zurücksetzen.
Im Flow Builder habe ich dies eingetragen:
Hier noch die Log-Datei:
{
„source“: „core“,
„environment“: „prod“,
„additionalData“: {
„exception“: „Shopware\Core\Framework\Adapter\Twig\Exception\StringTemplateRenderingException: Failed rendering string template using Twig: Impossible to access an attribute ("translated") on a null variable in "d240c7eea7874c252b3528221238e53d" at line 2. in /var/www/web1732/htdocs/shopware6_Privat/vendor/shopware/core/Framework/Adapter/Twig/StringTemplateRenderer.php:78\nStack trace:\n#0 /var/www/web1732/htdocs/shopware6_Privat/vendor/shopware/core/Content/Mail/Service/MailService.php(127): Shopware\Core\Framework\Adapter\Twig\StringTemplateRenderer->render()\n#1 /var/www/web1732/htdocs/shopware6_Privat/vendor/shopware/core/Content/Flow/Dispatching/Action/SendMailAction.php(158): Shopware\Core\Content\Mail\Service\MailService->send()\n#2 /var/www/web1732/htdocs/shopware6_Privat/vendor/shopware/core/Content/Flow/Dispatching/Action/SendMailAction.php(148): Shopware\Core\Content\Flow\Dispatching\Action\SendMailAction->send()\n#3 /var/www/web1732/htdocs/shopware6_Privat/vendor/shopware/core/Content/Flow/Dispatching/FlowExecutor.php(133): Shopware\Core\Content\Flow\Dispatching\Action\SendMailAction->handleFlow()\n#4 /var/www/web1732/htdocs/shopware6_Privat/vendor/shopware/core/Content/Flow/Dispatching/FlowExecutor.php(98): Shopware\Core\Content\Flow\Dispatching\FlowExecutor->callHandle()\n#5 /var/www/web1732/htdocs/shopware6_Privat/vendor/shopware/core/Content/Flow/Dispatching/FlowExecutor.php(81): Shopware\Core\Content\Flow\Dispatching\FlowExecutor->executeAction()\n#6 /var/www/web1732/htdocs/shopware6_Privat/vendor/shopware/core/Content/Flow/Dispatching/FlowExecutor.php(55): Shopware\Core\Content\Flow\Dispatching\FlowExecutor->executeSequence()\n#7 /var/www/web1732/htdocs/shopware6_Privat/vendor/shopware/core/Content/Flow/Dispatching/FlowDispatcher.php(128): Shopware\Core\Content\Flow\Dispatching\FlowExecutor->execute()\n#8 /var/www/web1732/htdocs/shopware6_Privat/vendor/shopware/core/Content/Flow/Dispatching/FlowDispatcher.php(60): Shopware\Core\Content\Flow\Dispatching\FlowDispatcher->callFlowExecutor()\n#9 /var/www/web1732/htdocs/shopware6_Privat/vendor/shopware/core/Framework/Webhook/WebhookDispatcher.php(54): Shopware\Core\Content\Flow\Dispatching\FlowDispatcher->dispatch()\n#10 /var/www/web1732/htdocs/shopware6_Privat/vendor/shopware/core/Framework/Event/NestedEventDispatcher.php(31): Shopware\Core\Framework\Webhook\WebhookDispatcher->dispatch()\n#11 /var/www/web1732/htdocs/shopware6_Privat/vendor/shopware/core/Checkout/Cart/SalesChannel/CartOrderRoute.php(92): Shopware\Core\Framework\Event\NestedEventDispatcher->dispatch()\n#12 /var/www/web1732/htdocs/shopware6_Privat/vendor/shopware/core/Profiling/Profiler.php(59): Shopware\Core\Checkout\Cart\SalesChannel\CartOrderRoute->Shopware\Core\Checkout\Cart\SalesChannel\{closure}()\n#13 /var/www/web1732/htdocs/shopware6_Privat/vendor/shopware/core/Checkout/Cart/SalesChannel/CartOrderRoute.php(93): Shopware\Core\Profiling\Profiler::trace()\n#14 /var/www/web1732/htdocs/shopware6_Privat/vendor/shopware/core/Checkout/Cart/SalesChannel/CartService.php(122): Shopware\Core\Checkout\Cart\SalesChannel\CartOrderRoute->order()\n#15 /var/www/web1732/htdocs/shopware6_Privat/vendor/shopware/core/Checkout/Order/SalesChannel/OrderService.php(65): Shopware\Core\Checkout\Cart\SalesChannel\CartService->order()\n#16 /var/www/web1732/htdocs/shopware6_Privat/vendor/shopware/storefront/Controller/CheckoutController.php(168): Shopware\Core\Checkout\Order\SalesChannel\OrderService->createOrder()\n#17 /var/www/web1732/htdocs/shopware6_Privat/vendor/shopware/core/Profiling/Profiler.php(59): Shopware\Storefront\Controller\CheckoutController->Shopware\Storefront\Controller\{closure}()\n#18 /var/www/web1732/htdocs/shopware6_Privat/vendor/shopware/storefront/Controller/CheckoutController.php(168): Shopware\Core\Profiling\Profiler::trace()\n#19 /var/www/web1732/htdocs/shopware6_Privat/vendor/symfony/http-kernel/HttpKernel.php(163): Shopware\Storefront\Controller\CheckoutController->order()\n#20 /var/www/web1732/htdocs/shopware6_Privat/vendor/symfony/http-kernel/HttpKernel.php(74): Symfony\Component\HttpKernel\HttpKernel->handleRaw()\n#21 /var/www/web1732/htdocs/shopware6_Privat/vendor/symfony/http-kernel/Kernel.php(184): Symfony\Component\HttpKernel\HttpKernel->handle()\n#22 /var/www/web1732/htdocs/shopware6_Privat/vendor/symfony/http-kernel/HttpCache/SubRequestHandler.php(86): Symfony\Component\HttpKernel\Kernel->handle()\n#23 /var/www/web1732/htdocs/shopware6_Privat/vendor/symfony/http-kernel/HttpCache/HttpCache.php(464): Symfony\Component\HttpKernel\HttpCache\SubRequestHandler::handle()\n#24 /var/www/web1732/htdocs/shopware6_Privat/vendor/symfony/http-kernel/HttpCache/HttpCache.php(264): Symfony\Component\HttpKernel\HttpCache\HttpCache->forward()\n#25 /var/www/web1732/htdocs/shopware6_Privat/vendor/symfony/http-kernel/HttpCache/HttpCache.php(278): Symfony\Component\HttpKernel\HttpCache\HttpCache->pass()\n#26 /var/www/web1732/htdocs/shopware6_Privat/vendor/symfony/http-kernel/HttpCache/HttpCache.php(204): Symfony\Component\HttpKernel\HttpCache\HttpCache->invalidate()\n#27 /var/www/web1732/htdocs/shopware6_Privat/vendor/shopware/core/HttpKernel.php(139): Symfony\Component\HttpKernel\HttpCache\HttpCache->handle()\n#28 /var/www/web1732/htdocs/shopware6_Privat/vendor/shopware/core/HttpKernel.php(61): Shopware\Core\HttpKernel->doHandle()\n#29 /var/www/web1732/htdocs/shopware6_Privat/public/index.php(63): Shopware\Core\HttpKernel->handle()\n#30 /var/www/web1732/htdocs/shopware6_Privat/vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php(35): Symfony\Component\HttpKernel\HttpKernelInterface@anonymous->handle()\n#31 /var/www/web1732/htdocs/shopware6_Privat/vendor/autoload_runtime.php(29): Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run()\n#32 /var/www/web1732/htdocs/shopware6_Privat/public/index.php(12): require_once(‚…‘)\n#33 {main}“,
„message“: „Could not render Mail-Template with error message: Failed rendering string template using Twig: Impossible to access an attribute ("translated") on a null variable in "d240c7eea7874c252b3528221238e53d" at line 2.“,
„template“: „{% set currencyIsoCode = order.currency.isoCode %}\nHallo {{ order.orderCustomer.salutation.translated.letterName }} {{ order.orderCustomer.firstName }} {{ order.orderCustomer.lastName }},\n\nIhre Bestellung ist am {{ order.orderDateTime|format_datetime(‚medium‘, ‚short‘, locale=‚de-DE‘) }} bei uns eingegangen.\n\nBestellnummer: {{ order.orderNumber }}\n\nSobald ein Zahlungseingang erfolgt ist, erhalten Sie eine separate Benachrichtigung und Ihre Bestellung wird verarbeitet.\n\n\nDen aktuellen Status Ihrer Bestellung können Sie jederzeit über diesen Link abrufen: {{ rawUrl(‚frontend.account.order.single.page‘, { ‚deepLinkCode‘: order.deepLinkCode }, salesChannel.domains|first.url) }}\nÜber diesen Link können Sie auch die Bestellung bearbeiten, die Zahlungsart wechseln oder nachträglich eine Zahlung durchführen.\n\nInformationen zu Ihrer Bestellung:\n\nPos. Artikel-Nr.\t\t\tBeschreibung\t\t\tMenge\t\t\tPreis\t\t\tSumme\n{% for lineItem in order.lineItems %}\n{{ loop.index }} {% if lineItem.payload.productNumber is defined %}{{ lineItem.payload.productNumber|u.wordwrap(80) }}{% endif %}\t\t\t\t{{ lineItem.label|u.wordwrap(80) }}{% if lineItem.payload.options is defined and lineItem.payload.options|length >= 1 %}, {% for option in lineItem.payload.options %}{{ option.group }}: {{ option.option }}{% if lineItem.payload.options|last != option %}{{ " | " }}{% endif %}{% endfor %}{% endif %}{% if lineItem.payload.features is defined and lineItem.payload.features|length >= 1 %}{% set referencePriceFeatures = lineItem.payload.features|filter(feature => feature.type == ‚referencePrice‘) %}{% if referencePriceFeatures|length >= 1 %}{% set referencePriceFeature = referencePriceFeatures|first %}, {{ referencePriceFeature.value.purchaseUnit }} {{ referencePriceFeature.value.unitName }}({{ referencePriceFeature.value.price|currency(currencyIsoCode) }}* / {{ referencePriceFeature.value.referenceUnit }} {{ referencePriceFeature.value.unitName }}){% endif %}{% endif %}\n {{ lineItem.quantity }}\t\t\t{{ lineItem.unitPrice|currency(currencyIsoCode) }}\t\t\t{{ lineItem.totalPrice|currency(currencyIsoCode) }}\n{% endfor %}\n\n{% set delivery = order.deliveries.first %}\n\n{% set displayRounded = order.totalRounding.interval != 0.01 or order.totalRounding.decimals != order.itemRounding.decimals %}\n{% set decimals = order.totalRounding.decimals %}\n{% set total = order.price.totalPrice %}\n{% if displayRounded %}\n {% set total = order.price.rawTotal %}\n {% set decimals = order.itemRounding.decimals %}\n{% endif %}\n\nVersandkosten: {{ order.deliveries.first.shippingCosts.totalPrice|currency(currencyIsoCode) }}\nGesamtkosten Netto: {{ order.amountNet|currency(currencyIsoCode) }}\n{% for calculatedTax in order.price.calculatedTaxes %}\n{% if order.taxStatus is same as(‚net‘) %}zzgl.{% else %}inkl.{% endif %} {{ calculatedTax.taxRate }}% MwSt. {{ calculatedTax.tax|currency(currencyIsoCode) }}\n{% endfor %}\nGesamtkosten Brutto: {{ total|currency(currencyIsoCode,decimals=decimals) }}\n{% if displayRounded %}\nGesamtkosten Brutto gerundet: {{ order.price.totalPrice|currency(currencyIsoCode,decimals=order.totalRounding.decimals) }}\n{% endif %}\n\nGewählte Versandart: {{ delivery.shippingMethod.translated.name }}\n{{ delivery.shippingMethod.translated.description }}\n\n{% set billingAddress = order.addresses.get(order.billingAddressId) %}\nRechnungsadresse:\n{{ billingAddress.company }}\n{{ billingAddress.firstName }} {{ billingAddress.lastName }}\n{{ billingAddress.street }}\n{{ billingAddress.zipcode }} {{ billingAddress.city }}\n{{ billingAddress.country.translated.name }}\n\nLieferadresse:\n{{ delivery.shippingOrderAddress.company }}\n{{ delivery.shippingOrderAddress.firstName }} {{ delivery.shippingOrderAddress.lastName }}\n{{ delivery.shippingOrderAddress.street }}\n{{ delivery.shippingOrderAddress.zipcode}} {{ delivery.shippingOrderAddress.city }}\n{{ delivery.shippingOrderAddress.country.translated.name }}\n\n{% if order.orderCustomer.vatIds %}\nIhre Umsatzsteuer-ID: {{ order.orderCustomer.vatIds|first }}\nBei erfolgreicher Prüfung und sofern Sie aus dem EU-Ausland\nbestellen, erhalten Sie Ihre Ware umsatzsteuerbefreit.\n{% endif %}\n\nDen aktuellen Status Ihrer Bestellung können Sie auch jederzeit auf unserer Webseite im Bereich "Mein Konto" - "Meine Bestellungen" abrufen: {{ rawUrl(‚frontend.account.order.single.page‘, { ‚deepLinkCode‘: order.deepLinkCode }, salesChannel.domains|first.url) }}\nFür Rückfragen stehen wir Ihnen jederzeit gerne zur Verfügung.\n\n\n Addresse:\n\n {{ config(‚core.basicInformation.address‘)|striptags(‚‘)|replace({"":"\n"}) }}\n\n Bankverbindung:\n {{ config(‚core.basicInformation.bankAccount‘)|striptags(‚‘)|replace({"":"\n"}) }}\n“,
„eventName“: „checkout.order.placed“,
„templateData“: {
„eventName“: „checkout.order.placed“,
„order“: {
„extensions“: {
„foreignKeys“: {
„extensions“: ,
„apiAlias“: „order_foreign_keys_extension“
}