Overview

When attempting to install the Clean Url module on Omeka S built with the following environment:

  • PHP Version: 8.3.2
  • Omeka S Version: 4.0.4
  • Clean Url Version: 3.17.7

The following message was displayed:

Deprecated:CreationofdynamicpropertyCleanUrl\Router\Http\CleanRoute::$priorityisdeprecatedinvar/www/html/vendor/laminas/laminas-router/src/SimpleRouteStack.phponline285

To address this issue, the above message could be hidden by partially modifying the /modules/CleanUrl/src/Router/Http/CleanRoute.php file as described below.

https://github.com/Daniel-KM/Omeka-S-module-CleanUrl/issues/19

If the SetEnv APPLICATION_ENV "production" line in the .htaccess file has not been changed to SetEnv APPLICATION_ENV "development", this message may not appear at all, but I hope this serves as a helpful reference.

Additional Notes

The Clean Url module appears to create a file called cleanurl.config.php in the /config folder during installation.

https://gitlab.com/Daniel-KM/Omeka-S-module-CleanUrl#installation

Therefore, depending on the permissions of the config folder, the following message may appear and installation may fail:

The file “cleanurl.config.php” in the config directory of Omeka is not writeable.

In such cases, you may need to temporarily set the config folder permissions to match those of files, perform the installation, and then revert the permissions.

I hope this is also helpful as a reference.