[Mapbender-users] Fwd: Installation issues + Uncaught PHP Exception Twig\Error\RuntimeError (code 0)
Härtel, Connor
Connor.Haertel at itebo.de
Fri May 17 03:01:36 PDT 2024
Hi Norbert,
which version of symfony are you using? The error of the session failing to start seems to occur in the class “vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/Session/Storage/NativeSessionStorage.php” (line 193), I suspect during the call to the start() function, which eventually calls the php function “session_start()”.
You can check the source code on your system yourself for the real cause, though.
It is possible, that the error is caused by missing write permissions on the directory or sub-directories of app/cache/ or var/cache/, depending on your Symfony version.
You can also try to call the app_dev.php instead of app.php, maybe the logs for dev environment give you another indication of what is causing the error.
Best regards,
Connor
Von: Mapbender_users <mapbender_users-bounces at lists.osgeo.org> Im Auftrag von Norbert Farago via Mapbender_users
Gesendet: Donnerstag, 16. Mai 2024 10:23
An: mapbender_users at lists.osgeo.org
Cc: Norbert Farago <norbert.farago at gmail.com>
Betreff: [Mapbender-users] Fwd: Installation issues + Uncaught PHP Exception Twig\Error\RuntimeError (code 0)
Dear Mapbender Team,
last week I asked for a little help on the mail list, but unfortunately, I didn't get a response until now. Since then, together with the administrators, we solved the .htaccess and Apache problems, but the ones with code 0 remained. I copied here the error lines from prod.log, I am sure it will provide some extra hint for you (definitely it did not for me).
[2024-05-15 23:12:52] request.INFO: Matched route "mapbender_start". {"route":"mapbender_start","route_parameters":{"_route":"mapbender_start","_controller":"Mapbender\\CoreBundle\\Controller\\WelcomeController::listAction"},"request_uri":"https://(...)/","method":"GET"} []
[2024-05-15 23:12:52] security.INFO: Populated the TokenStorage with an anonymous Token. [] []
[2024-05-15 23:12:54] request.CRITICAL: Uncaught PHP Exception Twig\Error\RuntimeError: "An exception has been thrown during the rendering of a template ("Failed to start the session.")." at /afs/(...)/mapbender/mapbender/src/Mapbender/ManagerBundle/Resources/views/manager.html.twig line 19 {"exception":"[object] (Twig\\Error\\RuntimeError(code: 0): An exception has been thrown during the rendering of a template (\"Failed to start the session.\"). at /afs/(...)/mapbender/mapbender/src/Mapbender/ManagerBundle/Resources/views/manager.html.twig:19, RuntimeException(code: 0): Failed to start the session. at /afs/(...)/mapbender/vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/Session/Storage/NativeSessionStorage.php:193)"} []
[2024-05-15 23:12:55] request.ERROR: Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\NotFoundHttpException: "No route found for "GET /favicon.ico" (from "https://(...)")" at /afs/(...)/mapbender/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/EventListener/RouterListener.php line 136 {"exception":"[object] (Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException(code: 0): No route found for \"GET /favicon.ico\" (from \"https://(....)") at /afs/(...)/mapbender/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/EventListener/RouterListener.php:136, Symfony\\Component\\Routing\\Exception\\ResourceNotFoundException(code: 0): No routes found for \"/favicon.ico/\". at /afs/(...)/mapbender/vendor/symfony/symfony/src/Symfony/Component/Routing/Matcher/Dumper/CompiledUrlMatcherTrait.php:70)"} []
Thank you in advance!
Best
Norbert Faragó
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapbender_users/attachments/20240517/862c8775/attachment.htm>
More information about the Mapbender_users
mailing list