500 Error bei Login und Register Seite

Hallo liebes Forum,

ich habe ein merkwürdiges Problem. Auf den Seiten zum Login, Registrierung und allen anderen Seiten für den Kundenaccount hat der Shop derzeit eine 500er Fehlermeldung. Alle andern Seiten funktionieren.

Wie fange ich denn da am besten mit dem debuggen an?

Danke

Hallo @Marc_E ,

am besten fängst du mit dem Shopware-Logfile an beim Debuggen.

Viele Grüße
Marco Schäfer

Das sieht heute so aus:

[2025-02-08T17:21:54.428948+00:00] request.CRITICAL: Uncaught PHP Exception Shopware\Storefront\Controller\Exception\StorefrontException: "Can not render @Storefront/storefront/component/captcha/base.html.twig view: Unable to load template "storefront/component/captcha/moorlCaptchaBw.html.twig". (Looked into: SmeShopTheme, SwagAnalytics, CogiAppHint, FroshDevelopmentHelper, FroshTools, SwagPayPal, Elasticsearch, Administration, Framework, Profiling, Storefront) with these parameters: {"redirectTo":"frontend.checkout.confirm.page","errorRoute":"frontend.checkout.register.page","appShopId":"lGNhfX41ehLrC3Vv","themeIconConfig":[]}" at base.html.twig line 11 {"exception":"[object] (Shopware\\Storefront\\Controller\\Exception\\StorefrontException(code: 0): Can not render @Storefront/storefront/component/captcha/base.html.twig view: Unable to load template \"storefront/component/captcha/moorlCaptchaBw.html.twig\". (Looked into: SmeShopTheme, SwagAnalytics, CogiAppHint, FroshDevelopmentHelper, FroshTools, SwagPayPal, Elasticsearch, Administration, Framework, Profiling, Storefront) with these parameters: {\"redirectTo\":\"frontend.checkout.confirm.page\",\"errorRoute\":\"frontend.checkout.register.page\",\"appShopId\":\"lGNhfX41ehLrC3Vv\",\"themeIconConfig\":[]} at /html/shopware/vendor/shopware/storefront/Resources/views/storefront/component/captcha/base.html.twig:11)\n[previous exception] [object] (Twig\\Error\\LoaderError(code: 0): Unable to load template \"storefront/component/captcha/moorlCaptchaBw.html.twig\". (Looked into: SmeShopTheme, SwagAnalytics, CogiAppHint, FroshDevelopmentHelper, FroshTools, SwagPayPal, Elasticsearch, Administration, Framework, Profiling, Storefront) at /html/shopware/vendor/shopware/storefront/Resources/views/storefront/component/captcha/base.html.twig:11)"} []
[2025-02-08T17:21:54.432752+00:00] request.CRITICAL: Uncaught PHP Exception Shopware\Storefront\Controller\Exception\StorefrontException: "Can not render @Storefront/storefront/component/captcha/base.html.twig view: Unable to load template "storefront/component/captcha/moorlCaptchaBw.html.twig". (Looked into: SmeShopTheme, SwagAnalytics, CogiAppHint, FroshDevelopmentHelper, FroshTools, SwagPayPal, Elasticsearch, Administration, Framework, Profiling, Storefront) with these parameters: {"redirectTo":"frontend.checkout.confirm.page","errorRoute":"frontend.checkout.register.page","appShopId":"lGNhfX41ehLrC3Vv","themeIconConfig":[]}" at base.html.twig line 11 {"exception":"[object] (Shopware\\Storefront\\Controller\\Exception\\StorefrontException(code: 0): Can not render @Storefront/storefront/component/captcha/base.html.twig view: Unable to load template \"storefront/component/captcha/moorlCaptchaBw.html.twig\". (Looked into: SmeShopTheme, SwagAnalytics, CogiAppHint, FroshDevelopmentHelper, FroshTools, SwagPayPal, Elasticsearch, Administration, Framework, Profiling, Storefront) with these parameters: {\"redirectTo\":\"frontend.checkout.confirm.page\",\"errorRoute\":\"frontend.checkout.register.page\",\"appShopId\":\"lGNhfX41ehLrC3Vv\",\"themeIconConfig\":[]} at /html/shopware/vendor/shopware/storefront/Resources/views/storefront/component/captcha/base.html.twig:11)\n[previous exception] [object] (Twig\\Error\\LoaderError(code: 0): Unable to load template \"storefront/component/captcha/moorlCaptchaBw.html.twig\". (Looked into: SmeShopTheme, SwagAnalytics, CogiAppHint, FroshDevelopmentHelper, FroshTools, SwagPayPal, Elasticsearch, Administration, Framework, Profiling, Storefront) at /html/shopware/vendor/shopware/storefront/Resources/views/storefront/component/captcha/base.html.twig:11)"} []
[2025-02-08T17:21:58.110124+00:00] request.CRITICAL: Uncaught PHP Exception Shopware\Storefront\Controller\Exception\StorefrontException: "Can not render @Storefront/storefront/component/captcha/base.html.twig view: Unable to load template "storefront/component/captcha/moorlCaptchaBw.html.twig". (Looked into: SmeShopTheme, SwagAnalytics, CogiAppHint, FroshDevelopmentHelper, FroshTools, SwagPayPal, Elasticsearch, Administration, Framework, Profiling, Storefront) with these parameters: {"redirectTo":"frontend.checkout.confirm.page","errorRoute":"frontend.checkout.register.page","appShopId":"lGNhfX41ehLrC3Vv","themeIconConfig":[]}" at base.html.twig line 11 {"exception":"[object] (Shopware\\Storefront\\Controller\\Exception\\StorefrontException(code: 0): Can not render @Storefront/storefront/component/captcha/base.html.twig view: Unable to load template \"storefront/component/captcha/moorlCaptchaBw.html.twig\". (Looked into: SmeShopTheme, SwagAnalytics, CogiAppHint, FroshDevelopmentHelper, FroshTools, SwagPayPal, Elasticsearch, Administration, Framework, Profiling, Storefront) with these parameters: {\"redirectTo\":\"frontend.checkout.confirm.page\",\"errorRoute\":\"frontend.checkout.register.page\",\"appShopId\":\"lGNhfX41ehLrC3Vv\",\"themeIconConfig\":[]} at /html/shopware/vendor/shopware/storefront/Resources/views/storefront/component/captcha/base.html.twig:11)\n[previous exception] [object] (Twig\\Error\\LoaderError(code: 0): Unable to load template \"storefront/component/captcha/moorlCaptchaBw.html.twig\". (Looked into: SmeShopTheme, SwagAnalytics, CogiAppHint, FroshDevelopmentHelper, FroshTools, SwagPayPal, Elasticsearch, Administration, Framework, Profiling, Storefront) at /html/shopware/vendor/shopware/storefront/Resources/views/storefront/component/captcha/base.html.twig:11)"} []
[2025-02-08T17:21:58.112692+00:00] request.CRITICAL: Uncaught PHP Exception Shopware\Storefront\Controller\Exception\StorefrontException: "Can not render @Storefront/storefront/component/captcha/base.html.twig view: Unable to load template "storefront/component/captcha/moorlCaptchaBw.html.twig". (Looked into: SmeShopTheme, SwagAnalytics, CogiAppHint, FroshDevelopmentHelper, FroshTools, SwagPayPal, Elasticsearch, Administration, Framework, Profiling, Storefront) with these parameters: {"redirectTo":"frontend.checkout.confirm.page","errorRoute":"frontend.checkout.register.page","appShopId":"lGNhfX41ehLrC3Vv","themeIconConfig":[]}" at base.html.twig line 11 {"exception":"[object] (Shopware\\Storefront\\Controller\\Exception\\StorefrontException(code: 0): Can not render @Storefront/storefront/component/captcha/base.html.twig view: Unable to load template \"storefront/component/captcha/moorlCaptchaBw.html.twig\". (Looked into: SmeShopTheme, SwagAnalytics, CogiAppHint, FroshDevelopmentHelper, FroshTools, SwagPayPal, Elasticsearch, Administration, Framework, Profiling, Storefront) with these parameters: {\"redirectTo\":\"frontend.checkout.confirm.page\",\"errorRoute\":\"frontend.checkout.register.page\",\"appShopId\":\"lGNhfX41ehLrC3Vv\",\"themeIconConfig\":[]} at /html/shopware/vendor/shopware/storefront/Resources/views/storefront/component/captcha/base.html.twig:11)\n[previous exception] [object] (Twig\\Error\\LoaderError(code: 0): Unable to load template \"storefront/component/captcha/moorlCaptchaBw.html.twig\". (Looked into: SmeShopTheme, SwagAnalytics, CogiAppHint, FroshDevelopmentHelper, FroshTools, SwagPayPal, Elasticsearch, Administration, Framework, Profiling, Storefront) at /html/shopware/vendor/shopware/storefront/Resources/views/storefront/component/captcha/base.html.twig:11)"} []
[2025-02-08T17:22:11.203774+00:00] app.CRITICAL: Could not clear cache: Cannot find the "redis" extension nor the "predis/predis" package. [] []
[2025-02-08T17:22:23.568189+00:00] request.CRITICAL: Uncaught PHP Exception Shopware\Storefront\Controller\Exception\StorefrontException: "Can not render @Storefront/storefront/component/captcha/base.html.twig view: Unable to load template "storefront/component/captcha/moorlCaptchaBw.html.twig". (Looked into: SmeShopTheme, SwagAnalytics, CogiAppHint, FroshDevelopmentHelper, FroshTools, SwagPayPal, Elasticsearch, Administration, Framework, Profiling, Storefront) with these parameters: {"redirectTo":"frontend.checkout.confirm.page","errorRoute":"frontend.checkout.register.page","appShopId":"lGNhfX41ehLrC3Vv","themeIconConfig":[]}" at base.html.twig line 11 {"exception":"[object] (Shopware\\Storefront\\Controller\\Exception\\StorefrontException(code: 0): Can not render @Storefront/storefront/component/captcha/base.html.twig view: Unable to load template \"storefront/component/captcha/moorlCaptchaBw.html.twig\". (Looked into: SmeShopTheme, SwagAnalytics, CogiAppHint, FroshDevelopmentHelper, FroshTools, SwagPayPal, Elasticsearch, Administration, Framework, Profiling, Storefront) with these parameters: {\"redirectTo\":\"frontend.checkout.confirm.page\",\"errorRoute\":\"frontend.checkout.register.page\",\"appShopId\":\"lGNhfX41ehLrC3Vv\",\"themeIconConfig\":[]} at /html/shopware/vendor/shopware/storefront/Resources/views/storefront/component/captcha/base.html.twig:11)\n[previous exception] [object] (Twig\\Error\\LoaderError(code: 0): Unable to load template \"storefront/component/captcha/moorlCaptchaBw.html.twig\". (Looked into: SmeShopTheme, SwagAnalytics, CogiAppHint, FroshDevelopmentHelper, FroshTools, SwagPayPal, Elasticsearch, Administration, Framework, Profiling, Storefront) at /html/shopware/vendor/shopware/storefront/Resources/views/storefront/component/captcha/base.html.twig:11)"} []
[2025-02-08T17:22:23.570825+00:00] request.CRITICAL: Uncaught PHP Exception Shopware\Storefront\Controller\Exception\StorefrontException: "Can not render @Storefront/storefront/component/captcha/base.html.twig view: Unable to load template "storefront/component/captcha/moorlCaptchaBw.html.twig". (Looked into: SmeShopTheme, SwagAnalytics, CogiAppHint, FroshDevelopmentHelper, FroshTools, SwagPayPal, Elasticsearch, Administration, Framework, Profiling, Storefront) with these parameters: {"redirectTo":"frontend.checkout.confirm.page","errorRoute":"frontend.checkout.register.page","appShopId":"lGNhfX41ehLrC3Vv","themeIconConfig":[]}" at base.html.twig line 11 {"exception":"[object] (Shopware\\Storefront\\Controller\\Exception\\StorefrontException(code: 0): Can not render @Storefront/storefront/component/captcha/base.html.twig view: Unable to load template \"storefront/component/captcha/moorlCaptchaBw.html.twig\". (Looked into: SmeShopTheme, SwagAnalytics, CogiAppHint, FroshDevelopmentHelper, FroshTools, SwagPayPal, Elasticsearch, Administration, Framework, Profiling, Storefront) with these parameters: {\"redirectTo\":\"frontend.checkout.confirm.page\",\"errorRoute\":\"frontend.checkout.register.page\",\"appShopId\":\"lGNhfX41ehLrC3Vv\",\"themeIconConfig\":[]} at /html/shopware/vendor/shopware/storefront/Resources/views/storefront/component/captcha/base.html.twig:11)\n[previous exception] [object] (Twig\\Error\\LoaderError(code: 0): Unable to load template \"storefront/component/captcha/moorlCaptchaBw.html.twig\". (Looked into: SmeShopTheme, SwagAnalytics, CogiAppHint, FroshDevelopmentHelper, FroshTools, SwagPayPal, Elasticsearch, Administration, Framework, Profiling, Storefront) at /html/shopware/vendor/shopware/storefront/Resources/views/storefront/component/captcha/base.html.twig:11)"} []
[2025-02-08T17:22:44.622384+00:00] request.CRITICAL: Uncaught PHP Exception Shopware\Storefront\Controller\Exception\StorefrontException: "Can not render @Storefront/storefront/component/captcha/base.html.twig view: Unable to load template "storefront/component/captcha/moorlCaptchaBw.html.twig". (Looked into: SmeShopTheme, SwagAnalytics, CogiAppHint, FroshDevelopmentHelper, FroshTools, SwagPayPal, Elasticsearch, Administration, Framework, Profiling, Storefront) with these parameters: {"redirectTo":"frontend.account.home.page","redirectParameters":"[]","errorRoute":"frontend.account.login.page","loginError":false,"waitTime":null,"errorSnippet":null,"appShopId":"lGNhfX41ehLrC3Vv","themeIconConfig":[]}" at base.html.twig line 11 {"exception":"[object] (Shopware\\Storefront\\Controller\\Exception\\StorefrontException(code: 0): Can not render @Storefront/storefront/component/captcha/base.html.twig view: Unable to load template \"storefront/component/captcha/moorlCaptchaBw.html.twig\". (Looked into: SmeShopTheme, SwagAnalytics, CogiAppHint, FroshDevelopmentHelper, FroshTools, SwagPayPal, Elasticsearch, Administration, Framework, Profiling, Storefront) with these parameters: {\"redirectTo\":\"frontend.account.home.page\",\"redirectParameters\":\"[]\",\"errorRoute\":\"frontend.account.login.page\",\"loginError\":false,\"waitTime\":null,\"errorSnippet\":null,\"appShopId\":\"lGNhfX41ehLrC3Vv\",\"themeIconConfig\":[]} at /html/shopware/vendor/shopware/storefront/Resources/views/storefront/component/captcha/base.html.twig:11)\n[previous exception] [object] (Twig\\Error\\LoaderError(code: 0): Unable to load template \"storefront/component/captcha/moorlCaptchaBw.html.twig\". (Looked into: SmeShopTheme, SwagAnalytics, CogiAppHint, FroshDevelopmentHelper, FroshTools, SwagPayPal, Elasticsearch, Administration, Framework, Profiling, Storefront) at /html/shopware/vendor/shopware/storefront/Resources/views/storefront/component/captcha/base.html.twig:11)"} []
[2025-02-08T17:22:44.624550+00:00] request.CRITICAL: Uncaught PHP Exception Shopware\Storefront\Controller\Exception\StorefrontException: "Can not render @Storefront/storefront/component/captcha/base.html.twig view: Unable to load template "storefront/component/captcha/moorlCaptchaBw.html.twig". (Looked into: SmeShopTheme, SwagAnalytics, CogiAppHint, FroshDevelopmentHelper, FroshTools, SwagPayPal, Elasticsearch, Administration, Framework, Profiling, Storefront) with these parameters: {"redirectTo":"frontend.account.home.page","redirectParameters":"[]","errorRoute":"frontend.account.login.page","loginError":false,"waitTime":null,"errorSnippet":null,"appShopId":"lGNhfX41ehLrC3Vv","themeIconConfig":[]}" at base.html.twig line 11 {"exception":"[object] (Shopware\\Storefront\\Controller\\Exception\\StorefrontException(code: 0): Can not render @Storefront/storefront/component/captcha/base.html.twig view: Unable to load template \"storefront/component/captcha/moorlCaptchaBw.html.twig\". (Looked into: SmeShopTheme, SwagAnalytics, CogiAppHint, FroshDevelopmentHelper, FroshTools, SwagPayPal, Elasticsearch, Administration, Framework, Profiling, Storefront) with these parameters: {\"redirectTo\":\"frontend.account.home.page\",\"redirectParameters\":\"[]\",\"errorRoute\":\"frontend.account.login.page\",\"loginError\":false,\"waitTime\":null,\"errorSnippet\":null,\"appShopId\":\"lGNhfX41ehLrC3Vv\",\"themeIconConfig\":[]} at /html/

Kann mir irgendwie nicht vorstellen das diese Fehler was mit dem Login zu tun haben könnten.
Und wie ich diese Fehlermledungen wegbekomme weiß ich leider auch nicht.

Kannst Du bitte in der env.local den Wert für APP_ENV von prod auf dev setzen, anschließend nochmal auf die Registrierung gehen und den Fehler screenshotten?

@Marc_E ,

Hier scheint ein Captcha Plugin von Moori, glaube ich, nicht zu passen.
Am besten mal deaktivieren und nochmal testen.

Viele Grüße
Marco

Ps: das würde ich vermuten:

Ja, das Plugin das war es. Ich habe es aber vor einiger Zeit deinstalliert weil es kostenpflichtig wurde und ich derzeit noch keine Bedarf dafür habe.
Ich habe das Plugin bereits seit deinstalliert… Dennoch scheint es irgendwie auf dem System zu sein.
Ich weiß nicht wie es es vollständig weg bekomme.

Hast du evtl das Plugin in deinem Theme verwendet?
Ich hatte das Plugin noch nicht verwendet, kannte nur den Namen - kann das Captcha evtl. bei den Einstellungen ausgewählt werden? Falls ja dort vlt noch umstellen (falls beim Löschen etwas zurückgeblieben ist).

VG Marco

Wenn ich mich recht erinnere konnte man es in Einstellungen->Stammdaten konfigurieren.
Allerdings sehe ich hier keine zurückgebliebenen Daten:

Auf dem Bild erscheint es nicht mehr und in den Plugins ist es nicht mehr ausgeführt.

ok, zumindest ist die Ursache klar. Meld Dich einfach bei @WebentwicklSchaefer oder mir und wir fixen das gerade. Ist aber von außen Voodoo. Nicht vergessen, die Plugins von der wunderbaren @Moorleiche brauchen zumeist das Foundation Plugin.

Genau dort hatte ich vermutet.
Dann müsste das ganze einmal genauer debuggt werden.
Den Cache hast du sicherlich schonmal komplett gelöscht?

VG Marco

Ich konnte das Problem lösen, indem ich das Plugin nochmal neu erworben und installiert habe. Danach in Einstellungen->Stammdaten waren die alten Daten vom Plugin wieder da. Diese entfernt, danach das Plugin deinstalliert und entfernt.
Die Seiten kommen wieder…
Allerdings ganz weg ist das Plugin dennoch nicht, es erscheint jetzt in der Liste, obwohl es das nicht sollte und beim Klick auf die drei Punkte kommt… nichts.:
image

Sorry doch nicht behoben…
Problem besteh weiterhin wenn ich die .env wieder auf „prod“ setze.
In „dev“ geht es allerdings…
Ich muss das Plugin erstmal installiert lassen damit der SHop funktioniert.

@Marc_E - Melde dich gerne bei mir wenn ihr das Problem nicht hinbekommt zu lösen dann schaue ich gerne mal mit drüber.

Viele Grüße
Marco Schäfer

Hi, also erstens du musst es nicht deinstallieren, weil die kostenlosen Lizenzen bleiben kostenlos.

Wie hast du das Plugin bitte deinstalliert? Beim deinstallieren wird die Konfiguration in Shopware zurückgesetzt. Du hast das Plugin wahrscheinlich gelöscht, die Konfiguration ist aber erhalten geblieben.

Schau mal in der Datenbanktabelle „system_config“ der Name sollte „captcha“ enthalten. Da ist ein JSON String drin, dort musst du die stellen mit „moorl“ entfernen.

Alternative: Plugin wieder Installieren und in den Stammdaten von Shopware die moori captchas deaktivieren.

Vg

Edit: Hab gesehen du hast es gelöst bekommen. Wenn das Plugin in der Liste ist, musst du es im Shopware Account bei den Lizenzen archivieren oder wenn gekündigt warten bis die Frist abgelaufen ist.

2 „Gefällt mir“

Hallo @Moorleiche danke für Deine Antwort. Ich finde Dein Plugin eigentlich gut.

Und ja, ich verstehe Dich aber bei mir war folgendes Szenario:

Ich hatte das kostenlose Plugin damals unter einer anderen Domain und somit unter einem anderen Shop in meinem Shopware Account laufen.

Vor ein paar Wochen habe ich einen Domainwechsel durchgeführt und daraufhin einen neuen Shop in meinem Shopware Account angelegt. Das Plugin war da aber noch im System drin. Daraufhin hat mein Shopware-Account gemeckert, dass die Lizenz abgelaufen sei.
Als ich dann das Plugin nochmal neu für die neue Domain installieren wollte, habe ich gesehen, dass das Plugin allerdings neuerdings kostenpflichtig ist.
Also habe ich es einfach deinstalliert und gelöscht (Denke diese Reihenfolge habe ich eingehalten) und wollte es zu einem späteren Zeitpunkt vielleicht wieder installieren. Erst vor 3 Tagen ist mir dann aufgefallen, dass der gesamten Kundenlogin usw. zu einer 500er Errorseite führt.

Ich habe das Plugin von Dir wieder installiert mit dem kostenlosen Probemonat, denn wenn ich es entferne geht wieder nichts mehr im Shop. Hoffe Du kannst mir da helfen.

Gruß

Kann man kostenlose Lizenzen nicht übertragen?

Ich habe nun den Fehler einmal nachgestellt - moori Catcha aktiviert und das Plugin deaktivert. Die Templates für das Captcha können nicht geladen werden. Jedoch sobald ich das Plugin fachgerecht deinstalliere, ist der Fehler auch weg. Hier nochmal ein Auszug, welcher Schritt bei der Deinstallation relevant ist.

    private function uninstallCaptcha(): void
    {
        $systemConfigService = $this->container->get(SystemConfigService::class);
        $configKey = 'core.basicInformation.activeCaptchasV2';
        $configurationValue = $systemConfigService->get('core.basicInformation.activeCaptchasV2') ?: [];
        unset($configurationValue['moorlCaptchaTo']);
        unset($configurationValue['moorlCaptchaBw']);
        $systemConfigService->set($configKey, $configurationValue);
    }

Wie oben erwähnt: Schau in der Datenbanktabelle „system_config“ bei key „core.basicInformation.activeCaptchasV2“.

VG
Philipp

Und wenn der Fehler wieder auftaucht, liegt es am Cache. Wenn du den Cache leerst und es tut sich nichts, dann schau dir mal die Lese- und Schreibrechte an.

Ist z.B. bei einem Serverwechsel nichts ungewöhnliches.

Was genau soll ich denn jetzt als erstes machen? Mit

moori Catcha aktiviert und das Plugin deaktivert

verstehe ich nicht wie ich anfangen soll?

Derzeit sieht es so aus:

Deaktivieren bringt nichts, es muss deinstalliert werden.