SPAQRL module installation problem

When trying to install the SPARQL module (last version 3.4.5 ) I get this error

 Laminas\Router\Exception\RuntimeException
Route with name "sparql" not found

Details:

Laminas\Router\Exception\RuntimeException: Route with name "sparql" not found in /var/www/omeka/omeka-s/vendor/laminas/laminas-router/src/Http/TreeRouteStack.php:364
Stack trace:
#0 /var/www/omeka/omeka-s/vendor/laminas/laminas-mvc/src/Controller/Plugin/Url.php(96): Laminas\Router\Http\TreeRouteStack->assemble()
#1 /var/www/omeka/omeka-s/modules/Sparql/Module.php(111): Laminas\Mvc\Controller\Plugin\Url->fromRoute()
#2 /var/www/omeka/omeka-s/modules/Common/TraitModule.php(113): Sparql\Module->postInstall()
#3 /var/www/omeka/omeka-s/application/src/Module/Manager.php(225): Sparql\Module->install()
#4 /var/www/omeka/omeka-s/application/src/Controller/Admin/ModuleController.php(117): Omeka\Module\Manager->install()
#5 /var/www/omeka/omeka-s/vendor/laminas/laminas-mvc/src/Controller/AbstractActionController.php(71): Omeka\Controller\Admin\ModuleController->installAction()
#6 /var/www/omeka/omeka-s/vendor/laminas/laminas-eventmanager/src/EventManager.php(319): Laminas\Mvc\Controller\AbstractActionController->onDispatch()
#7 /var/www/omeka/omeka-s/vendor/laminas/laminas-eventmanager/src/EventManager.php(179): Laminas\EventManager\EventManager->triggerListeners()
#8 /var/www/omeka/omeka-s/vendor/laminas/laminas-mvc/src/Controller/AbstractController.php(97): Laminas\EventManager\EventManager->triggerEventUntil()
#9 /var/www/omeka/omeka-s/vendor/laminas/laminas-mvc/src/DispatchListener.php(132): Laminas\Mvc\Controller\AbstractController->dispatch()
#10 /var/www/omeka/omeka-s/vendor/laminas/laminas-eventmanager/src/EventManager.php(319): Laminas\Mvc\DispatchListener->onDispatch()
#11 /var/www/omeka/omeka-s/vendor/laminas/laminas-eventmanager/src/EventManager.php(179): Laminas\EventManager\EventManager->triggerListeners()
#12 /var/www/omeka/omeka-s/vendor/laminas/laminas-mvc/src/Application.php(325): Laminas\EventManager\EventManager->triggerEventUntil()
#13 /var/www/omeka/omeka-s/index.php(21): Laminas\Mvc\Application->run()
#14 {main}

Previoulsy I have done this configuration as indicated on the module page

a2enmod headers
systemctl restart apache2

Then, you have to add the following rules, adapted to your needs, to the file .htaccess at the root of Omeka S or in the main config of the server:

# CORS access for some files.
<IfModule mod_headers.c>
    Header setIfEmpty Access-Control-Allow-Origin "*"
    Header setIfEmpty Access-Control-Allow-Headers "origin, x-requested-with, content-type"
    Header setIfEmpty Access-Control-Allow-Methods "GET, POST"
</IfModule>