Updating omeka 3.2 to PHP 8.1

Hi all,

I’ve upgraded omeka s to 3.2 and it worked perfectly. But then I have upgraded to php 8 and I get this error:

Apologies if this question has been askek previously

Deprecated : Return type of Doctrine\DBAL\Statement::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /SERVICIOS/catdigital/vendor/doctrine/dbal/lib/Doctrine/DBAL/Statement.php on line 322

Deprecated : Return type of Doctrine\DBAL\Driver\PDOConnection::exec($sql) should either be compatible with PDO::exec(string $statement): int|false, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /SERVICIOS/catdigital/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php on line 50

Deprecated : Return type of Doctrine\DBAL\Driver\PDOConnection::lastInsertId($name = null) should either be compatible with PDO::lastInsertId(?string $name = null): string|false, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /SERVICIOS/catdigital/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php on line 99

Deprecated : Return type of Doctrine\DBAL\Driver\PDOConnection::prepare($sql, $driverOptions = []) should either be compatible with PDO::prepare(string $query, array $options = []): PDOStatement|false, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /SERVICIOS/catdigital/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php on line 76

Deprecated : Return type of Doctrine\DBAL\Driver\PDOConnection::quote($value, $type = Doctrine\DBAL\ParameterType::STRING) should either be compatible with PDO::quote(string $string, int $type = PDO::PARAM_STR): string|false, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /SERVICIOS/catdigital/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php on line 91

Deprecated : Return type of Doctrine\DBAL\Driver\PDOQueryImplementation::query(?string $query = null, ?int $fetchMode = null, mixed …$fetchModeArgs) should either be compatible with PDO::query(string $query, ?int $fetchMode = null, mixed …$fetchModeArgs): PDOStatement|false, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /SERVICIOS/catdigital/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOQueryImplementation.php on line 20

Thanks in advance.

The best

We haven’t made a release yet that supports PHP 8.1. 8.0 will work fine though.

Thank you very much, Jonh.
The best

This topic was automatically closed 250 days after the last reply. New replies are no longer allowed.