CleanURL module error


Trying to use CleanURL module for Omeka S 3.0 . I get the error below.

Has anyone had the same issue?



CleanURL latest version - with minimal configuration (only remove /s/site-slug on default site)

Hitting “browse” or trying a search produces the following, both on main site and other sites:

Omeka S encountered an error

Part route may not terminate


Laminas\Router\Exception\RuntimeException: Part route may not terminate in /mnt/u01/omeka3/vendor/laminas/laminas-router/src/Http/Part.php:209 Stack trace: #0 /mnt/u01/omeka3/vendor/laminas/laminas-router/src/Http/TreeRouteStack.php(392): Laminas\Router\Http\Part->assemble() #1 /mnt/u01/omeka3/modules/CleanUrl/src/View/Helper/CleanUrl.php(100): Laminas\Router\Http\TreeRouteStack->assemble() #2 /mnt/u01/omeka3/application/src/Api/Representation/ItemRepresentation.php(100): CleanUrl\View\Helper\CleanUrl->__invoke() #3 /mnt/u01/omeka3/application/src/Api/Representation/AbstractResourceRepresentation.php(181): Omeka\Api\Representation\ItemRepresentation->siteUrl() #4 /mnt/u01/omeka3/application/src/Api/Representation/AbstractResourceRepresentation.php(252): Omeka\Api\Representation\AbstractResourceRepresentation->url() #5 /mnt/u01/omeka3/themes/thanksroy/view/omeka/site/item/browse.phtml(63): Omeka\Api\Representation\AbstractResourceRepresentation->linkRaw() #6 /mnt/u01/omeka3/vendor/laminas/laminas-view/src/Renderer/PhpRenderer.php(505): include(’/mnt/u01/omeka3…’) #7 /mnt/u01/omeka3/vendor/laminas/laminas-view/src/View.php(206): Laminas\View\Renderer\PhpRenderer->render() #8 /mnt/u01/omeka3/vendor/laminas/laminas-view/src/View.php(235): Laminas\View\View->render() #9 /mnt/u01/omeka3/vendor/laminas/laminas-view/src/View.php(199): Laminas\View\View->renderChildren() #10 /mnt/u01/omeka3/vendor/laminas/laminas-mvc/src/View/Http/DefaultRenderingStrategy.php(104): Laminas\View\View->render() #11 /mnt/u01/omeka3/vendor/laminas/laminas-eventmanager/src/EventManager.php(321): Laminas\Mvc\View\Http\DefaultRenderingStrategy->render() #12 /mnt/u01/omeka3/vendor/laminas/laminas-eventmanager/src/EventManager.php(170): Laminas\EventManager\EventManager->triggerListeners() #13 /mnt/u01/omeka3/vendor/laminas/laminas-mvc/src/Application.php(366): Laminas\EventManager\EventManager->triggerEvent() #14 /mnt/u01/omeka3/vendor/laminas/laminas-mvc/src/Application.php(347): Laminas\Mvc\Application->completeRequest() #15 /mnt/u01/omeka3/index.php(21): Laminas\Mvc\Application->run() #16 {main}

I’ve been experiencing the same.
Rolling back to fixed this error.

But with the rollback, clean urls for pages broke. I expect to work, but this structure returns the following error:
Page not found. Reason: error-controller-not-found

I tested the url structure below, which returns a different error.
Page not found. Reason: error-controller-cannot-dispatch

The module is working fine, but there are many possible combination and one may be missing.
Can you say me the version you use ( is the last) ?

Omeka S v 3.0.1
Clean Url v
Generic v 3.3.28
All other modules have been deactivated to test for incompatibility

Clean Url config:

With this configuration I get the same error as @rudi when viewing item browse (

I also get this error when viewing a page ( that includes block preview in its layout

When viewing an Omeka S item, using Dublin Core: Identifier as the item identifier, I get this error:
Page not found.
Reason: error-controller-cannot-dispatch

Please let me know if I’m missing a setting or how I can change the config combination so this will work.

Thanks @Daniel_KM

We’ve got the same problem as @adehner, item links (using dc identifier) are not working and result in the same ‘Page not found’ error as above.

Also the links on the public item browse page are just the default ones.

We use the same combination of modules:
Omeka S v 3.0.1
Clean Url v
Generic v 3.3.28

The configuration is also largely the same except we don’t skip the site slug.