Server misconfiguration! couldn't figure out the request path

"; exit; } $path = explode('?', $path, 2)[0]; $config = parse_ini_file(__DIR__ . '/../config.ini', true, INI_SCANNER_TYPED); Psso\Session::setDsn($config, 'sqlite:' . __DIR__ . '/../data/sessions.sqlite'); require_once __DIR__ . '/../localisation.php'; Psso\XMLResponse::addStylesheet('../templates/index.xsl'); Psso\XMLResponse::addPreamble(function ($doc) use ($config) { $doc->addAttribute('site-name', $config['site']['name']); $doc->addAttribute('source', $config['site']['source-location']); }); $router = new Psso\Router('../routes', $config); $router->registerStatusHandler(404, function ($path) { $resp = new Psso\XMLResponse; $resp->doc->addAttribute('title', L('error.not-found')); $resp->doc->addChild('error', L('error.not-found.long', $path)); $resp->send(); }); $router->registerStatusHandler(405, function ($path) { $method = $_SERVER['REQUEST_METHOD']; $resp = new Psso\XMLResponse; $resp->doc->addAttribute('title', L('error.wrong-method')); $resp->doc->addChild('error', L('error.wrong-method.long', $method)); $resp->send(); }); $router->setExceptionHandler(function (Throwable $e) { $resp = new Psso\XMLResponse; $resp->doc->addAttribute('title', L('error.uncaught')); $resp->doc->addChild('error', $e::class . ': ' . $e->getMessage()); $resp->send(); error_log($e); }); $router->dispatch($path);