VersionedDirectoryIterator::current() must be compatible with DirectoryIterator::current()

Hi folks,
I’m trying to install omeka on a fresh server and I got this error after instalation:

Fatal error : Declaration of VersionedDirectoryIterator::current() must be compatible with DirectoryIterator::current(): mixed in /var/www/html/omeka/application/libraries/VersionedDirectoryIterator.php on line 38

Here is my configuration:
http://ec2-54-235-26-162.compute-1.amazonaws.com/version.php

How can I fix this?

This is an issue with PHP 8.1: we haven’t yet released a version that supports PHP 8.1 (though the in-development Git master branch supports it).

1 Like

It’s also worth noting that the specific “Fatal error” here is actually a bug in PHP that they’ve fixed. I believe version 8.1.5 is the first one with the fix.