New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wartungsmodus führt zu "Es ist ein Fehler aufgetreten" #176
Comments
Ich habe gerade noch bemerkt das der 503er nur auftaucht, wenn ich mich im Backend angemeldet habe. Wenn ich nicht angemeldet bin kommt die Status-Seite "Dienst nicht verfügbar" was ja auch richtig ist. |
Ich habe das auch mal kurz getestet:
|
@fritzmg Tritt das Problem in Contao 4.6.8 ebenfalls noch auf? |
@leofeyer hab es gerade unter contao 4.6.8 ausprobiert und ja der Fehler kommt dort immer noch. |
Ja, das Problem besteht weiterhin in Contao 4.6.8. Ich kann auch bestätigen, dass es vermutlich in an den esi Sub-Requests liegt. Das HTML markup sieht so aus: <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Home - c46.local (en)</title>
<base href="https://c46.local/">
<meta name="robots" content="index,follow">
<meta name="description" content="">
<meta name="generator" content="Contao Open Source CMS">
<script src="assets/jquery/js/jquery.min.js?v=21bf4be1"></script><script>if (window.location.hash == '#_=_'){ history.replaceState ? history.replaceState(null, null, window.location.href.split('#')[0]) : window.location.hash = '';}</script><link rel="alternate" hreflang="en" href="https://c46.local/en/">
<link rel="alternate" hreflang="de" href="https://c46.local/de/">
<!--[if lt IE 9]><script src="assets/html5shiv/js/html5shiv-printshiv.min.js?v=3.7.3"></script><![endif]-->
</head>
<body id="top" class="<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>An Error Occurred: Internal Server Error</title>
</head>
<body>
<h1>Oops! An Error Occurred</h1>
<h2>The server returned a "500 Internal Server Error".</h2>
<div>
Something is broken. Please let us know what you were doing when this error occurred.
We will fix it as soon as possible. Sorry for any inconvenience caused.
</div>
</body>
</html> Der Fehler passiert wohl im /cc @Toflar |
Das beschriebene Problem ist nicht dasselbe wie in contao/core-bundle#1307, sondern wie in contao/core-bundle#1370. @aschempp hatte damals einen PR nur für Contao 4.4 gemacht (siehe contao/core-bundle#1476), weil wir aus irgendeinem Grund davon ausgegangen sind, dass das Problem in der 4.5 nicht bestehe. @contao/developers Haben wir uns da ggf. geirrt? |
inwiefern? Müsste doch upstream gemergt werden? |
Nein, haben wir explizit nicht gemacht: contao/core-bundle#1482 |
Ah, I see. In welchem Scope laufen denn Fragments? |
@Toflar /cc |
#199 this should fix it. |
It does. 👍 |
Description ----------- Fix for contao/contao#176 Commits ------- 4b87d076 Fixed missing scope on insert tags ESI requests 0deb7222 Use a use statement instead of the FQCN
Ist dieser Fix auf für die Version 4.4.47?
Das Problem lag darin, dass ein unverändertes fe_page.html5 die Body-Klasse: {{ua::class}} beinhaltete. Ich habe das Template angelegt und den InsertTag entfernt. Anschließend funktionierte es. Die Seite war nicht im Wartungsmodus, sondern live. |
Ich habe das Problem von dem geschlossenen Issue contao/core-bundle#1307 auch in Contao 4.6:
Bei mir unter Contao 4.6.7, PHP7.2 tritt das Problem auch auf.
Der letzte Eintrag aus der log-Datei ist folgender:
[2018-11-08 21:13:32] request.CRITICAL: Uncaught PHP Exception RuntimeException: "Error when rendering "http://www.DOMAIN.de/_fragment?_hash=%2FqBeYf5LY3DkpKxI06SLYZn9I13vTAQeKy5ZMNA%2FvzQ%3D&_path=insertTag%3D%257B%257Bua%253A%253Aclass%257D%257D%26_format%3Dhtml%26_locale%3Dde%26_controller%3Dcontao.controller.insert_tags%253ArenderAction&clientCache=0&pageId=17&request=netzwerk-junge-wissenschaft.html" (Status code is 503)." at /var/www/xxx/hostingxxx/httpdocs/contao/vendor/symfony/http-kernel/HttpCache/AbstractSurrogate.php line 99 {"exception":"[object] (RuntimeException(code: 0): Error when rendering \"http://www.DOMAIN.de/_fragment?_hash=%2FqBeYf5LY3DkpKxI06SLYZn9I13vTAQeKy5ZMNA%2FvzQ%3D&_path=insertTag%3D%257B%257Bua%253A%253Aclass%257D%257D%26_format%3Dhtml%26_locale%3Dde%26_controller%3Dcontao.controller.insert_tags%253ArenderAction&clientCache=0&pageId=17&request=netzwerk-junge-wissenschaft.html\" (Status code is 503). at /var/www/xxx/hostingxxx/httpdocs/contao/vendor/symfony/http-kernel/HttpCache/AbstractSurrogate.php:99)"} []
Auch der Quelltext der 500-Fehlerseite sieht noch sehr komisch aus (er fängt in der Klasse an den Fehlercode-Template zu schreiben):
The text was updated successfully, but these errors were encountered: