BugBuster1701 / contao-visitors-bundle

Contao 4/5 Visitors Bundle
GNU Lesser General Public License v3.0
2 stars 1 forks source link

Problem mit Wartungsmodus in der Vorschau #159

Open Anke opened 6 months ago

Anke commented 6 months ago

Hallöchen,

bei einer Contao 5.2.7-Installation werden mir im BE-Wartungsmodus mit Preview-Nutzung nachfolgende Fehlermeldungen (samt Fehlerhinweis im FE, und mein CSS wurde z.T. overruled) angezeigt. Nach dem Deaktivieren des Moduls im Seitenlayout war alles, wie es sein sollte - das muss man wissen ;-).

[2024-01-06T13:06:41.700415+01:00] request.CRITICAL: Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\ServiceUnavailableHttpException: "This website is in maintenance mode." at ExceptionConverterListener.php line 91 {"exception":"[object] (Symfony\\Component\\HttpKernel\\Exception\\ServiceUnavailableHttpException(code: 0): This website is in maintenance mode. at /www/htdocs/innovalc/innoval-hc/Contao5/vendor/contao/core-bundle/src/EventListener/ExceptionConverterListener.php:91)\n[previous exception] [object] (Contao\\CoreBundle\\Exception\\ServiceUnavailableException(code: 0): This website is in maintenance mode. at /www/htdocs/innovalc/innoval-hc/Contao5/vendor/contao/core-bundle/src/EventListener/ServiceUnavailableListener.php:50)"} []
[2024-01-06T13:06:41.705741+01:00] php.CRITICAL: Uncaught Exception: Error when rendering "https://innoval-hc.com/preview.php/_fragment?_hash=Km3KpxPiOdOLaVQfH7CnPXZWTvJ3NiHJ7IKWa8PnYB4%3D&_path=_scope%3Dfrontend%26moduleModel%3D42%26section%3Dfooter%26pageModel%3D238%26_format%3Dhtml%26_locale%3Den%26_controller%3Dcontao.frontend_module.visitors" (Status code is 503). {"exception":"[object] (RuntimeException(code: 0): Error when rendering \"https://innoval-hc.com/preview.php/_fragment?_hash=Km3KpxPiOdOLaVQfH7CnPXZWTvJ3NiHJ7IKWa8PnYB4%3D&_path=_scope%3Dfrontend%26moduleModel%3D42%26section%3Dfooter%26pageModel%3D238%26_format%3Dhtml%26_locale%3Den%26_controller%3Dcontao.frontend_module.visitors\" (Status code is 503). at /www/htdocs/innovalc/innoval-hc/Contao5/vendor/symfony/http-kernel/HttpCache/AbstractSurrogate.php:92)"} []
[2024-01-06T13:06:41.706070+01:00] request.CRITICAL: Uncaught PHP Exception RuntimeException: "Error when rendering "https://innoval-hc.com/preview.php/_fragment?_hash=Km3KpxPiOdOLaVQfH7CnPXZWTvJ3NiHJ7IKWa8PnYB4%3D&_path=_scope%3Dfrontend%26moduleModel%3D42%26section%3Dfooter%26pageModel%3D238%26_format%3Dhtml%26_locale%3Den%26_controller%3Dcontao.frontend_module.visitors" (Status code is 503)." at AbstractSurrogate.php line 92 {"exception":"[object] (RuntimeException(code: 0): Error when rendering \"https://innoval-hc.com/preview.php/_fragment?_hash=Km3KpxPiOdOLaVQfH7CnPXZWTvJ3NiHJ7IKWa8PnYB4%3D&_path=_scope%3Dfrontend%26moduleModel%3D42%26section%3Dfooter%26pageModel%3D238%26_format%3Dhtml%26_locale%3Den%26_controller%3Dcontao.frontend_module.visitors\" (Status code is 503). at /www/htdocs/innovalc/innoval-hc/Contao5/vendor/symfony/http-kernel/HttpCache/AbstractSurrogate.php:92)"} []
[2024-01-06T13:06:41.713767+01:00] messenger.INFO: Sending message Contao\CoreBundle\Messenger\Message\SearchIndexMessage with contao_prio_low sender using Contao\CoreBundle\Messenger\Transport\AutoFallbackTransport {"class":"Contao\\CoreBundle\\Messenger\\Message\\SearchIndexMessage","alias":"contao_prio_low","sender":"Contao\\CoreBundle\\Messenger\\Transport\\AutoFallbackTransport"} []
[2024-01-06T13:06:41.713875+01:00] messenger.INFO: Received message Contao\CoreBundle\Messenger\Message\SearchIndexMessage {"class":"Contao\\CoreBundle\\Messenger\\Message\\SearchIndexMessage"} []
[2024-01-06T13:06:41.714328+01:00] messenger.INFO: Message Contao\CoreBundle\Messenger\Message\SearchIndexMessage handled by Contao\CoreBundle\Messenger\MessageHandler\SearchIndexMessageHandler::__invoke {"class":"Contao\\CoreBundle\\Messenger\\Message\\SearchIndexMessage","handler":"Contao\\CoreBundle\\Messenger\\MessageHandler\\SearchIndexMessageHandler::__invoke"} []
BugBuster1701 commented 3 months ago

https://community.contao.org/de/showthread.php?86603-Wartungsmodus-(BE)-Preview-ESI-Renderer-Error-503&p=582650#post582650

BugBuster1701 commented 3 months ago

Das passiert, wenn man in der Seitenstruktur den Wartungsmodus einschaltet und dann mit der Vorschau Funktion arbeitet. Dafür gibt es leider keinen Fix. Wartungsmodus gibt normalerweise ein Error 503 aus, der Preview Modus überstimmt das, kann das aber nicht bei ESI Request aus dem Cache.