Project

General

Profile

Actions

Anomalie #1782

closed

Update and maintenance pages are no longer working

Added by Johan Cwiklinski 4 months ago. Updated 3 months ago.

Status:
Fermé
Priority:
Normal
Category:
Core
Target version:
Start date:
02/10/2024
Due date:
% Done:

100%

Estimated time:
Version utilisée:

Description

Due to Slim framework internals I did not understood; update page (the one displayed when Galette needs a database update) and the maintenance page are no longer working.

A blank page is displayed (no error renderer is setup; this is too early); and we got following message in logs:

[10-Feb-2024 09:28:27 UTC] PHP Fatal error:  Uncaught RuntimeException: Cannot create RouteContext before routing has been completed in galette.git/galette/vendor/slim/slim/Slim/Routing/RouteContext.php:36
Stack trace:
#0 galette.git/galette/lib/Galette/Middleware/UpdateAndMaintenance.php(106): Slim\Routing\RouteContext::fromRequest()
#1 galette.git/galette/lib/Galette/Middleware/UpdateAndMaintenance.php(172): Galette\Middleware\UpdateAndMaintenance->renderPage()
#2 [internal function]: Galette\Middleware\UpdateAndMaintenance->needsUpdatePage()
#3 galette.git/galette/lib/Galette/Middleware/UpdateAndMaintenance.php(92): call_user_func()
#4 galette.git/galette/vendor/slim/slim/Slim/MiddlewareDispatcher.php(269): Galette\Middleware\UpdateAndMaintenance->__invoke()
#5 galette.git/galette/vendor/slim/slim/Slim/MiddlewareDispatcher.php(65): Psr\Http\Server\RequestHandlerInterface@anonymous->handle()
#6 galette.git/galette/vendor/slim/slim/Slim/App.php(199): Slim\MiddlewareDispatcher->handle()
#7 galette.git/galette/vendor/slim/slim/Slim/App.php(183): Slim\App->handle()
#8 galette.git/galette/includes/main.inc.php(113): Slim\App->run()
#9 galette.git/galette/webroot/index.php(48): require_once('...')
#10 {main}
  thrown in galette.git/galette/vendor/slim/slim/Slim/Routing/RouteContext.php on line 36

Actions

Also available in: Atom PDF