Ich habe einen Shopware 6 Onlineshop, der einwandfrei mit Version 6.5.8.7 läuft. Versuche ich diesen im Adminbereich mit Hilfe des Assistenten auf die 6.6.20 zu aktualisieren, wobei ich zuvor alle Extensions deaktiviert habe, schlägt die fast vollständige Aktualisierung fehl mit der Fehlermeldung
In EscaperExtension.php line 127:
[LogicException]
You must call "setEnvironment()" before calling "Twig\Extension\EscaperExte
nsion::setEscaper()".
Ich kann mir leider keinen Reim auf diese kryptische Meldung machen. Liegt hier ein Fehler vor? Wie kann ich ihn korrigieren oder gibt es hierfür einen Workaround?
Ich betreibe Shopware bei Webgo. PHP Version 8.2.
Hier der relevante Ausschnitt aus dem Fehler-Log:
---------- ----------------------
Action Number of migrations
---------- ----------------------
Migrated 4 out of 4
---------- ----------------------
all migrations for identifier: "core" executed
cleared the shopware cache
In EscaperExtension.php line 127:
[LogicException]
You must call "setEnvironment()" before calling "Twig\Extension\EscaperExte
nsion::setEscaper()".
Exception trace:
at /home/www/shopware6_prod/vendor/twig/twig/src/Extension/EscaperExtension.php:127
Twig\Extension\EscaperExtension->setEscaper() at /home/www/shopware6_prod/vendor/shopware/core/Content/Seo/SeoUrlTwigFactory.php:33
Shopware\Core\Content\Seo\SeoUrlTwigFactory->createTwigEnvironment() at /home/www/shopware6_prod/var/cache/prod_h31a2b0820cc6ca42b0641457d7c31846/ContainerWxlzV8x/Shopware_Core_KernelProdContainer.php:24447
ContainerWxlzV8x\Shopware_Core_KernelProdContainer::getSeoUrlGeneratorService() at /home/www/shopware6_prod/var/cache/prod_h31a2b0820cc6ca42b0641457d7c31846/ContainerWxlzV8x/Shopware_Core_KernelProdContainer.php:30227
ContainerWxlzV8x\Shopware_Core_KernelProdContainer::getSeoUrlUpdateListenerService() at /home/www/shopware6_prod/var/cache/prod_h31a2b0820cc6ca42b0641457d7c31846/ContainerWxlzV8x/Shopware_Core_KernelProdContainer.php:11342
ContainerWxlzV8x\Shopware_Core_KernelProdContainer::ContainerWxlzV8x\{closure}() at /home/www/shopware6_prod/vendor/symfony/event-dispatcher/EventDispatcher.php:243
Symfony\Component\EventDispatcher\EventDispatcher::Symfony\Component\EventDispatcher\{closure}() at /home/www/shopware6_prod/vendor/symfony/event-dispatcher/EventDispatcher.php:206
Symfony\Component\EventDispatcher\EventDispatcher->callListeners() at /home/www/shopware6_prod/vendor/symfony/event-dispatcher/EventDispatcher.php:56
Symfony\Component\EventDispatcher\EventDispatcher->dispatch() at /home/www/shopware6_prod/vendor/shopware/core/Content/Flow/Dispatching/FlowDispatcher.php:50
Shopware\Core\Content\Flow\Dispatching\FlowDispatcher->dispatch() at /home/www/shopware6_prod/vendor/shopware/core/Framework/Webhook/WebhookDispatcher.php:70
Shopware\Core\Framework\Webhook\WebhookDispatcher->dispatch() at /home/www/shopware6_prod/vendor/shopware/core/Framework/Event/NestedEventDispatcher.php:31
Shopware\Core\Framework\Event\NestedEventDispatcher->dispatch() at /home/www/shopware6_prod/vendor/shopware/core/Framework/DataAbstractionLayer/EntityRepository.php:109
Shopware\Core\Framework\DataAbstractionLayer\EntityRepository->upsert() at /home/www/shopware6_prod/vendor/shopware/storefront/Theme/ThemeLifecycleService.php:92
Shopware\Storefront\Theme\ThemeLifecycleService->refreshTheme() at /home/www/shopware6_prod/vendor/shopware/storefront/Theme/ThemeLifecycleService.php:60
Shopware\Storefront\Theme\ThemeLifecycleService->refreshThemes() at /home/www/shopware6_prod/vendor/shopware/storefront/Theme/Subscriber/UpdateSubscriber.php:56
Shopware\Storefront\Theme\Subscriber\UpdateSubscriber->updateFinished() at /home/www/shopware6_prod/vendor/symfony/event-dispatcher/EventDispatcher.php:246
Symfony\Component\EventDispatcher\EventDispatcher::Symfony\Component\EventDispatcher\{closure}() at /home/www/shopware6_prod/vendor/symfony/event-dispatcher/EventDispatcher.php:206
Symfony\Component\EventDispatcher\EventDispatcher->callListeners() at /home/www/shopware6_prod/vendor/symfony/event-dispatcher/EventDispatcher.php:56
Symfony\Component\EventDispatcher\EventDispatcher->dispatch() at /home/www/shopware6_prod/vendor/shopware/core/Content/Flow/Dispatching/FlowDispatcher.php:50
Shopware\Core\Content\Flow\Dispatching\FlowDispatcher->dispatch() at /home/www/shopware6_prod/vendor/shopware/core/Framework/Webhook/WebhookDispatcher.php:70
Shopware\Core\Framework\Webhook\WebhookDispatcher->dispatch() at /home/www/shopware6_prod/vendor/shopware/core/Framework/Event/NestedEventDispatcher.php:31
Shopware\Core\Framework\Event\NestedEventDispatcher->dispatch() at /home/www/shopware6_prod/vendor/shopware/core/Maintenance/System/Command/SystemUpdateFinishCommand.php:88
Shopware\Core\Maintenance\System\Command\SystemUpdateFinishCommand->execute() at /home/www/shopware6_prod/vendor/symfony/console/Command/Command.php:279
Symfony\Component\Console\Command\Command->run() at /home/www/shopware6_prod/vendor/symfony/console/Application.php:1049
Symfony\Component\Console\Application->doRunCommand() at /home/www/shopware6_prod/vendor/symfony/framework-bundle/Console/Application.php:125
Symfony\Bundle\FrameworkBundle\Console\Application->doRunCommand() at /home/www/shopware6_prod/vendor/symfony/console/Application.php:318
Symfony\Component\Console\Application->doRun() at /home/www/shopware6_prod/vendor/symfony/framework-bundle/Console/Application.php:79
Symfony\Bundle\FrameworkBundle\Console\Application->doRun() at /home/www/shopware6_prod/vendor/symfony/console/Application.php:169
Symfony\Component\Console\Application->run() at /home/www/shopware6_prod/vendor/symfony/runtime/Runner/Symfony/ConsoleApplicationRunner.php:49
Symfony\Component\Runtime\Runner\Symfony\ConsoleApplicationRunner->run() at /home/www/shopware6_prod/vendor/autoload_runtime.php:29
require_once() at /home/www/shopware6_prod/bin/console:17
Viele Grüße
Philipp