Update auf 4.9, Fehler nach dem Login im Backend
Hallo,
ich habe gerade ein Update eines Projektes von 4.8 auf 4.9 gemacht:
- composer.json aktualisiert
- composer update
- Datenbank Update (lief sauber durch)
- Frontend geht
- Login wird angezeigt, nach dem Absenden kommt dann der Fehler:
Code:
[2020-02-19 12:37:38] request.CRITICAL: Uncaught PHP Exception TypeError: "base64_encode() expects parameter 1 to be string, null given" at /home/martin/project/vendor/contao/manager-bundle/src/EventListener/BackendMenuListener.php line 105 {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\FatalThrowableError(code: 0): base64_encode() expects parameter 1 to be string, null given at /home/martin/project/vendor/contao/manager-bundle/src/EventListener/BackendMenuListener.php:105)"} []
Da in dem Projekt noch andere Bundles mit am Start sind habe ich mal 4.9 komplett neu installiert, da bekomme ich den gleichen Fehler.
Das Projekt läuft lokal. Kann das etwas mit der PHP Konfiguration zu tun haben (aktuell 7.3) ?
Der Fehler wird in
manager-bundle/src/EventListener/BackendMenuListener.php in der Zeile 105 geworfen. Hier scheint die $request Variable nicht ordentlich gesetzt zu sein.
PHP-Code:
if (!$request = $this->requestStack->getCurrentRequest()) {
throw new \RuntimeException('The request stack did not contain a request');
}
$params = [
'do' => 'debug',
'key' => $this->debug ? 'disable' : 'enable',
'referer' => base64_encode($request->server->get('QUERY_STRING')),
'ref' => $request->attributes->get('_contao_referer_id'),
];
Wenn ich mir $_SERVER ausgebe ist der QUERY_STRING gesetzt:
PHP-Code:
'QUERY_STRING' => string 'do=themes&table=tl_image_size&id=1&rt=Mx6BZ9CrJwyjmKjgVHyQulLIr9O8kfCuckDonkdLO3g&ref=qXdx48ND' (length=94)
auskommentieren von 'referer' würde das Problem lösen.
Liste der Anhänge anzeigen (Anzahl: 1)
Nach 'update' von 4.4.47 zu 4.9.0 login und backend nicht erreichbar.
Guten Abend
Nach einem 'update' von contao 4.4.47 zu 4.9.0 ist das "login" und das "backend" nicht mehr erreichbar. Frontend und "login" funktioniert normal. Beim Versuch eines "login" ins "Backend wird folgendes angezeigt.
Anhang 23173
Das log file zeigt folgende Fehler:
Code:
[2020-02-20 19:00:18] request.INFO: Matched route "contao_catch_all". {"route":"contao_catch_all","route_parameters":{"_scope":"frontend","_token_check":true,"_controller":"Contao\\CoreBundle\\Controller\\FrontendController::indexAction","_url_fragment":"favicon.ico","_route":"contao_catch_all"},"request_uri":"https://contao4test.aeropens.ch/favicon.ico","method":"GET"} []
[2020-02-20 19:00:18] security.INFO: Attempting SimplePreAuthentication. {"key":"frontend","authenticator":"Contao\\CoreBundle\\Security\\ContaoAuthenticator"} []
[2020-02-20 19:00:18] request.ERROR: Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\NotFoundHttpException: "Page not found: https://contao4test.aeropens.ch/favicon.ico" at /home/aeropens/public_html/contao4test/vendor/contao/core-bundle/src/EventListener/ExceptionConverterListener.php line 112 {"exception":"[object] (Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException(code: 0): Page not found: https://contao4test.aeropens.ch/favicon.ico at /home/aeropens/public_html/contao4test/vendor/contao/core-bundle/src/EventListener/ExceptionConverterListener.php:112, Contao\\CoreBundle\\Exception\\PageNotFoundException(code: 0): Page not found: https://contao4test.aeropens.ch/favicon.ico at /home/aeropens/public_html/contao4test/vendor/contao/core-bundle/src/Resources/contao/controllers/FrontendIndex.php:63)"} []
[2020-02-20 19:04:23] request.INFO: Matched route "contao_catch_all". {"route":"contao_catch_all","route_parameters":{"_scope":"frontend","_token_check":true,"_controller":"Contao\\CoreBundle\\Controller\\FrontendController::indexAction","_url_fragment":"contao-manager/users.json","_route":"contao_catch_all"},"request_uri":"https://contao4test.aeropens.ch/contao-manager/users.json","method":"GET"} []
[2020-02-20 19:04:23] security.INFO: Attempting SimplePreAuthentication. {"key":"frontend","authenticator":"Contao\\CoreBundle\\Security\\ContaoAuthenticator"} []
[2020-02-20 19:04:23] request.ERROR: Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\NotFoundHttpException: "Page not found: https://contao4test.aeropens.ch/contao-manager/users.json" at /home/aeropens/public_html/contao4test/vendor/contao/core-bundle/src/EventListener/ExceptionConverterListener.php line 112 {"exception":"[object] (Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException(code: 0): Page not found: https://contao4test.aeropens.ch/contao-manager/users.json at /home/aeropens/public_html/contao4test/vendor/contao/core-bundle/src/EventListener/ExceptionConverterListener.php:112, Contao\\CoreBundle\\Exception\\PageNotFoundException(code: 0): Page not found: https://contao4test.aeropens.ch/contao-manager/users.json at /home/aeropens/public_html/contao4test/vendor/contao/core-bundle/src/Resources/contao/controllers/FrontendIndex.php:63)"} []
[2020-02-20 19:13:07] request.INFO: Matched route "contao_backend_login". {"route":"contao_backend_login","route_parameters":{"_route":"contao_backend_login","_scope":"backend","_token_check":true,"_controller":"Contao\\CoreBundle\\Controller\\BackendController::loginAction"},"request_uri":"https://contao4test.aeropens.ch/contao/login?_hash=c74F41LPzM7Nf5gfA5NNMnlVQaCXC7vGnBicnQJUsjk%3D&redirect=https%3A%2F%2Fcontao4test.aeropens.ch%2Fcontao%3Fdo%3Dlog%26ref%3D3q2BHpms","method":"GET"} []
[2020-02-20 19:13:07] security.INFO: Populated the TokenStorage with an anonymous Token. [] []
[2020-02-20 19:13:07] request.CRITICAL: Uncaught PHP Exception InvalidArgumentException: "Invalid file system/modules/contao_academy_client/assets/academy.css?v10" at /home/aeropens/public_html/contao4test/vendor/contao/core-bundle/src/Resources/contao/library/Contao/Combiner.php line 118 {"exception":"[object] (InvalidArgumentException(code: 0): Invalid file system/modules/contao_academy_client/assets/academy.css?v10 at /home/aeropens/public_html/contao4test/vendor/contao/core-bundle/src/Resources/contao/library/Contao/Combiner.php:118)"} []
[2020-02-20 19:13:39] request.INFO: Matched route "contao_backend_login". {"route":"contao_backend_login","route_parameters":{"_route":"contao_backend_login","_scope":"backend","_token_check":true,"_controller":"Contao\\CoreBundle\\Controller\\BackendController::loginAction"},"request_uri":"https://contao4test.aeropens.ch/contao/login","method":"GET"} []
[2020-02-20 19:13:40] security.INFO: Populated the TokenStorage with an anonymous Token. [] []
[2020-02-20 19:13:40] request.CRITICAL: Uncaught PHP Exception InvalidArgumentException: "Invalid file system/modules/contao_academy_client/assets/academy.css?v10" at /home/aeropens/public_html/contao4test/vendor/contao/core-bundle/src/Resources/contao/library/Contao/Combiner.php line 118 {"exception":"[object] (InvalidArgumentException(code: 0): Invalid file system/modules/contao_academy_client/assets/academy.css?v10 at /home/aeropens/public_html/contao4test/vendor/contao/core-bundle/src/Resources/contao/library/Contao/Combiner.php:118)"} []
[2020-02-20 19:18:48] request.INFO: Matched route "contao_backend_login". {"route":"contao_backend_login","route_parameters":{"_route":"contao_backend_login","_scope":"backend","_token_check":true,"_controller":"Contao\\CoreBundle\\Controller\\BackendController::loginAction"},"request_uri":"https://contao4test.aeropens.ch/contao/login","method":"GET"} []
[2020-02-20 19:18:48] security.INFO: Populated the TokenStorage with an anonymous Token. [] []
[2020-02-20 19:18:48] request.CRITICAL: Uncaught PHP Exception InvalidArgumentException: "Invalid file system/modules/contao_academy_client/assets/academy.css?v10" at /home/aeropens/public_html/contao4test/vendor/contao/core-bundle/src/Resources/contao/library/Contao/Combiner.php line 118 {"exception":"[object] (InvalidArgumentException(code: 0): Invalid file system/modules/contao_academy_client/assets/academy.css?v10 at /home/aeropens/public_html/contao4test/vendor/contao/core-bundle/src/Resources/contao/library/Contao/Combiner.php:118)"} []
[2020-02-20 19:28:22] request.INFO: Matched route "contao_backend_login". {"route":"contao_backend_login","route_parameters":{"_route":"contao_backend_login","_scope":"backend","_token_check":true,"_controller":"Contao\\CoreBundle\\Controller\\BackendController::loginAction"},"request_uri":"https://contao4test.aeropens.ch/contao/login","method":"GET"} []
[2020-02-20 19:28:22] security.INFO: Populated the TokenStorage with an anonymous Token. [] []
[2020-02-20 19:28:22] request.CRITICAL: Uncaught PHP Exception InvalidArgumentException: "Invalid file system/modules/contao_academy_client/assets/academy.css?v10" at /home/aeropens/public_html/contao4test/vendor/contao/core-bundle/src/Resources/contao/library/Contao/Combiner.php line 118 {"exception":"[object] (InvalidArgumentException(code: 0): Invalid file system/modules/contao_academy_client/assets/academy.css?v10 at /home/aeropens/public_html/contao4test/vendor/contao/core-bundle/src/Resources/contao/library/Contao/Combiner.php:118)"} []
[2020-02-20 19:32:09] request.INFO: Matched route "contao_backend_login". {"route":"contao_backend_login","route_parameters":{"_route":"contao_backend_login","_scope":"backend","_token_check":true,"_controller":"Contao\\CoreBundle\\Controller\\BackendController::loginAction"},"request_uri":"https://contao4test.aeropens.ch/contao/login","method":"GET"} []
[2020-02-20 19:32:09] security.INFO: Populated the TokenStorage with an anonymous Token. [] []
[2020-02-20 19:32:09] request.CRITICAL: Uncaught PHP Exception InvalidArgumentException: "Invalid file system/modules/contao_academy_client/assets/academy.css?v10" at /home/aeropens/public_html/contao4test/vendor/contao/core-bundle/src/Resources/contao/library/Contao/Combiner.php line 118 {"exception":"[object] (InvalidArgumentException(code: 0): Invalid file system/modules/contao_academy_client/assets/academy.css?v10 at /home/aeropens/public_html/contao4test/vendor/contao/core-bundle/src/Resources/contao/library/Contao/Combiner.php:118)"} []
Vielleicht kann mir jemand von Euch helfen. Sonst muss ich das Web leider wieder auf 4.4.47 stellen. :)
Liebe Grüsse Rolf
Nach 'update' von 4.4.47 zu 4.9.0 login und backend nicht erreichbar.
Hallo xchs vielen Dank für Deine Antwort.
Du hast Recht. Diesen client brauche ich nicht mehr. Ich werde ihn mal löschen und schauen was passiert.
Ich melde mich wieder.
Gruss Rolf :)
Contao 4.9.0 login und backend nicht erreichbar
Hallo xchs
Unglaublich nach dem "system repair" im Manager funktioniert alles wieder 100% und mit Contao 4.9.0. Diesen "client" hatte ich in der Zwischenzeit total vergessen.
Xchs Du hast meinen Abend gerettet, nochmals vielen Dank.
Liebe Grüsse Rolf :)
Contao 4.9.0 login und backend nicht erreichbar
Hallo benfolds
Ja Du hast Recht. Ich dachte Deine Überschrift deckt sich mit meinem Problem an etwa. Ein weiterer Grund war, dass ich in meinem Browser den +Button für ein neues Thema nicht finden kann. :)
Ich schaue mir aber heute Abend einmal Dein Problem an.
Gruss Rolf
Update auf 4.9, Fehler nach dem Login im Backend
Hallo benfolds
In einer meiner Contao 4.9.0 Installation ist der PHP Code in dem file: home/aeropens/public_html/contao4test/vendor/contao/manager-bundle/src/EventListener/BackendMenuListener.php genau gleich und läuft auf CYON als Host problemlos. Also nicht Lokal und Debug Mode (Manager) nicht aktiv. Permission 0644.
PHP-Code:
if (!$request = $this->requestStack->getCurrentRequest()) {
throw new \RuntimeException('The request stack did not contain a request');
}
$params = [
'do' => 'debug',
'key' => $this->debug ? 'disable' : 'enable',
'referer' => base64_encode($request->server->get('QUERY_STRING')),
'ref' => $request->attributes->get('_contao_referer_id'),
];
Gruss Rolf