PHP Exception bzgl. robots.txt

Hi zusammen,

ich bekomme seit einiger Zeit ständig folgende beiden PHPExceptions im Log:

Uncaught PHP Exception Error: "Call to a member function getSource() on null" at ApiRouteScope.php line 29 {"exception":"[object] (Error(code: 0): Call to a member function getSource() on null at /var/www/vendor/shopware/core/Framework/Routing/ApiRouteScope.php:29)"} []

und

Uncaught PHP Exception InvalidArgumentException: "The controller for URI "/robots.txt" is not callable: Controller "Shopware\Storefront\Controller\RobotsController" has required constructor arguments and does not exist in the container. Did you forget to define the controller as a service?" at ControllerResolver.php line 97 {"exception":"[object] (InvalidArgumentException(code: 0): The controller for URI \"/robots.txt\" is not callable: Controller \"Shopware\\Storefront\\Controller\\RobotsController\" has required constructor arguments and does not exist in the container. Did you forget to define the controller as a service? at /var/www/domet.de/vendor/symfony/http-kernel/Controller/ControllerResolver.php:97)\n[previous exception] [object] (InvalidArgumentException(code: 0): Controller \"Shopware\\Storefront\\Controller\\RobotsController\" has required constructor arguments and does not exist in the container. Did you forget to define the controller as a service? at /var/www/domet.de/vendor/symfony/http-kernel/Controller/ContainerControllerResolver.php:49)\n[previous exception] [object] (ArgumentCountError(code: 0): Too few arguments to function Shopware\\Storefront\\Controller\\RobotsController::__construct(), 0 passed in /var/www/domet.de/vendor/symfony/http-kernel/Controller/ControllerResolver.php on line 152 and exactly 1 expected at /var/www/domet.de/vendor/shopware/storefront/Controller/RobotsController.php:21)"} []

Wir haben den Shop aus Kundennot heraus im September übernommen und Betriebssystem und Shopware auf die aktuellste Version gebracht. Ich habe mich so gut es geht eingearbeitet aber bei manchen Themen hapert es noch.
Der Shop läuft auf Debian 13 mit Apache, MariaDB und PHP8.4

Könnt ihr mir helfen?

Viele Grüße;
BJ

stell mal die php version um wenn es geht

nach meinem wissen wird PHP8.5 erst seit SW 6.7.6.2 richtig unterstützt :melting_face:

SW 6.7.6.x unterstützt laut Changelog bereits PHP 8.5.
PHP 8.4. wird bereits seit gefühlten Ewigkeiten unterstützt.

1 „Gefällt mir“

ups soory etwas verwechselt sorry jungs :melting_face:

probier mal php 8.3 aus

Vielen Dank für eure Rückmeldung!

Mir war nicht klar, dass wir bereits bei Shopware 6.7 sind. Wenn ich versuche über das Webinterface zu aktualisieren, bekommen ich die Meldung “Du bist auf dem aktuellsten Stand”.

Gibt’s dafür einen bestimmten Grund?

Danke Max, das war tatsächlich aktiviert. Leider trotz Serverneustart, bleibt die Meldung gleich.
Wir sind aktuell auf Version 6.6.10.6, falls das von Belang ist.

Cache in Shopware muss nach Änderung von YAML Dateien geleert werden. Geht über die Administration oder auf der CLI über bin/console cache:clear

Das Update auf 6.7 ist ein Breaking Update und bringt zahlreiche Änderungen sowohl in der Storefront als auch in der Administration mit sich. Sehr viele Plugins müssen dafür aktualisiert werden. Also vorab lieber in Ruhe in einer Testumgebung das Update testen.