‘session.name’ is not a valid sessions-related ini setting

Hello, since the update to PHP 8 I get this error message from my Omeka S. I have just updated the Omeka to the latest version. That didn’t fix the error either. I renamed all module folders on the server once, and named them correctly again. This did not help either. Does anyone know what the error is here? I found similar errors in the forum here, but unfortunately none of them were the same as mine.

Here what the Omeka S gives as error message:

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 /srv/www/htdocs/coronarchiv/projector/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 /srv/www/htdocs/coronarchiv/projector/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 /srv/www/htdocs/coronarchiv/projector/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 /srv/www/htdocs/coronarchiv/projector/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 /srv/www/htdocs/coronarchiv/projector/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 /srv/www/htdocs/coronarchiv/projector/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOQueryImplementation.php on line 20

Deprecated : Return type of Doctrine\DBAL\Driver\PDOStatement::bindParam($param, &$variable, $type = Doctrine\DBAL\ParameterType::STRING, $length = null, $driverOptions = null) should either be compatible with PDOStatement::bindParam(string|int $param, mixed &$var, int $type = PDO::PARAM_STR, int $maxLength = 0, mixed $driverOptions = null): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /srv/www/htdocs/coronarchiv/projector/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php on line 79

Deprecated : Return type of Doctrine\DBAL\Driver\PDOStatement::bindValue($param, $value, $type = Doctrine\DBAL\ParameterType::STRING) should either be compatible with PDOStatement::bindValue(string|int $param, mixed $value, int $type = PDO::PARAM_STR): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /srv/www/htdocs/coronarchiv/projector/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php on line 59

Deprecated : Return type of Doctrine\DBAL\Driver\PDOStatement::closeCursor() should either be compatible with PDOStatement::closeCursor(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /srv/www/htdocs/coronarchiv/projector/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php on line 95

Deprecated : Return type of Doctrine\DBAL\Driver\PDOStatement::execute($params = null) should either be compatible with PDOStatement::execute(?array $params = null): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /srv/www/htdocs/coronarchiv/projector/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php on line 109

Deprecated : Return type of Doctrine\DBAL\Driver\PDOStatement::fetch($fetchMode = null, $cursorOrientation = PDO::FETCH_ORI_NEXT, $cursorOffset = 0) should either be compatible with PDOStatement::fetch(int $mode = PDO::FETCH_DEFAULT, int $cursorOrientation = PDO::FETCH_ORI_NEXT, int $cursorOffset = 0): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /srv/www/htdocs/coronarchiv/projector/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php on line 123

Deprecated : Return type of Doctrine\DBAL\Driver\PDOStatement::fetchColumn($columnIndex = 0) should either be compatible with PDOStatement::fetchColumn(int $column = 0): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /srv/www/htdocs/coronarchiv/projector/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php on line 143

Deprecated : Return type of Doctrine\DBAL\Driver\PDOStatementImplementations::fetchAll($mode = null, …$args) should either be compatible with PDOStatement::fetchAll(int $mode = PDO::FETCH_DEFAULT, mixed …$args): array, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /srv/www/htdocs/coronarchiv/projector/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatementImplementations.php on line 36

Deprecated : Return type of Laminas\Stdlib\Parameters::offsetGet($name) should either be compatible with ArrayObject::offsetGet(mixed $key): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /srv/www/htdocs/coronarchiv/projector/vendor/laminas/laminas-stdlib/src/Parameters.php on line 83

Deprecated : Return type of Laminas\Stdlib\Parameters::offsetGet($name) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /srv/www/htdocs/coronarchiv/projector/vendor/laminas/laminas-stdlib/src/Parameters.php on line 83

Deprecated : Return type of Laminas\Stdlib\ArrayObject::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /srv/www/htdocs/coronarchiv/projector/vendor/laminas/laminas-stdlib/src/ArrayObject.php on line 227

Deprecated : Return type of Laminas\Stdlib\ArrayObject::offsetExists($key) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /srv/www/htdocs/coronarchiv/projector/vendor/laminas/laminas-stdlib/src/ArrayObject.php on line 280

Deprecated : Return type of & Laminas\Stdlib\ArrayObject::offsetGet($key) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /srv/www/htdocs/coronarchiv/projector/vendor/laminas/laminas-stdlib/src/ArrayObject.php on line 291

Deprecated : Return type of Laminas\Stdlib\ArrayObject::offsetSet($key, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /srv/www/htdocs/coronarchiv/projector/vendor/laminas/laminas-stdlib/src/ArrayObject.php on line 309

Deprecated : Return type of Laminas\Stdlib\ArrayObject::offsetUnset($key) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /srv/www/htdocs/coronarchiv/projector/vendor/laminas/laminas-stdlib/src/ArrayObject.php on line 320

Deprecated : Laminas\Stdlib\ArrayObject implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in /srv/www/htdocs/coronarchiv/projector/vendor/laminas/laminas-stdlib/src/ArrayObject.php on line 21

Deprecated : Return type of Laminas\Stdlib\ArrayObject::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /srv/www/htdocs/coronarchiv/projector/vendor/laminas/laminas-stdlib/src/ArrayObject.php on line 169

Deprecated : Return type of Laminas\Http\Headers::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /srv/www/htdocs/coronarchiv/projector/vendor/laminas/laminas-http/src/Headers.php on line 385

Deprecated : Return type of Laminas\Http\Headers::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /srv/www/htdocs/coronarchiv/projector/vendor/laminas/laminas-http/src/Headers.php on line 370

Deprecated : Return type of Laminas\Http\Headers::next() should either be compatible with Iterator::next(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /srv/www/htdocs/coronarchiv/projector/vendor/laminas/laminas-http/src/Headers.php on line 330

Deprecated : Return type of Laminas\Http\Headers::key() should either be compatible with Iterator::key(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /srv/www/htdocs/coronarchiv/projector/vendor/laminas/laminas-http/src/Headers.php on line 340

Deprecated : Return type of Laminas\Http\Headers::valid() should either be compatible with Iterator::valid(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /srv/www/htdocs/coronarchiv/projector/vendor/laminas/laminas-http/src/Headers.php on line 350

Deprecated : Return type of Laminas\Http\Headers::rewind() should either be compatible with Iterator::rewind(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /srv/www/htdocs/coronarchiv/projector/vendor/laminas/laminas-http/src/Headers.php on line 360

Deprecated : Return type of Laminas\Loader\PluginClassLoader::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /srv/www/htdocs/coronarchiv/projector/vendor/laminas/laminas-loader/src/PluginClassLoader.php on line 212

Deprecated : Return type of Laminas\Stdlib\PriorityList::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /srv/www/htdocs/coronarchiv/projector/vendor/laminas/laminas-stdlib/src/PriorityList.php on line 200

Deprecated : Return type of Laminas\Stdlib\PriorityList::next() should either be compatible with Iterator::next(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /srv/www/htdocs/coronarchiv/projector/vendor/laminas/laminas-stdlib/src/PriorityList.php on line 220

Deprecated : Return type of Laminas\Stdlib\PriorityList::key() should either be compatible with Iterator::key(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /srv/www/htdocs/coronarchiv/projector/vendor/laminas/laminas-stdlib/src/PriorityList.php on line 211

Deprecated : Return type of Laminas\Stdlib\PriorityList::valid() should either be compatible with Iterator::valid(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /srv/www/htdocs/coronarchiv/projector/vendor/laminas/laminas-stdlib/src/PriorityList.php on line 230

Deprecated : Return type of Laminas\Stdlib\PriorityList::rewind() should either be compatible with Iterator::rewind(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /srv/www/htdocs/coronarchiv/projector/vendor/laminas/laminas-stdlib/src/PriorityList.php on line 191

Deprecated : Return type of Laminas\Stdlib\PriorityList::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /srv/www/htdocs/coronarchiv/projector/vendor/laminas/laminas-stdlib/src/PriorityList.php on line 246

Deprecated : Return type of Laminas\View\Resolver\AggregateResolver::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /srv/www/htdocs/coronarchiv/projector/vendor/laminas/laminas-view/src/Resolver/AggregateResolver.php on line 54

Deprecated : Return type of Laminas\View\Resolver\AggregateResolver::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /srv/www/htdocs/coronarchiv/projector/vendor/laminas/laminas-view/src/Resolver/AggregateResolver.php on line 64

Deprecated : Return type of Laminas\Stdlib\PriorityQueue::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /srv/www/htdocs/coronarchiv/projector/vendor/laminas/laminas-stdlib/src/PriorityQueue.php on line 127

Deprecated : Return type of Laminas\Stdlib\PriorityQueue::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /srv/www/htdocs/coronarchiv/projector/vendor/laminas/laminas-stdlib/src/PriorityQueue.php on line 164

Deprecated : Laminas\Stdlib\PriorityQueue implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in /srv/www/htdocs/coronarchiv/projector/vendor/laminas/laminas-stdlib/src/PriorityQueue.php on line 27

Deprecated : Return type of Laminas\View\Resolver\TemplateMapResolver::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /srv/www/htdocs/coronarchiv/projector/vendor/laminas/laminas-view/src/Resolver/TemplateMapResolver.php on line 42

Deprecated : Return type of Laminas\Stdlib\SplStack::unserialize($data) should either be compatible with SplDoublyLinkedList::unserialize(string $data): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /srv/www/htdocs/coronarchiv/projector/vendor/laminas/laminas-stdlib/src/SplStack.php on line 48

Deprecated : Return type of Laminas\Stdlib\SplStack::serialize() should either be compatible with SplDoublyLinkedList::serialize(): string, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /srv/www/htdocs/coronarchiv/projector/vendor/laminas/laminas-stdlib/src/SplStack.php on line 37

Deprecated : Laminas\Stdlib\SplPriorityQueue implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in /srv/www/htdocs/coronarchiv/projector/vendor/laminas/laminas-stdlib/src/SplPriorityQueue.php on line 19

Deprecated : Return type of Laminas\View\Model\ViewModel::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /srv/www/htdocs/coronarchiv/projector/vendor/laminas/laminas-view/src/Model/ViewModel.php on line 496

Deprecated : Return type of Laminas\View\Model\ViewModel::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /srv/www/htdocs/coronarchiv/projector/vendor/laminas/laminas-view/src/Model/ViewModel.php on line 506

Deprecated : Return type of Laminas\View\Variables::offsetGet($key) should either be compatible with ArrayObject::offsetGet(mixed $key): mixed, or the #
Basically I want to create an app for the mobile app development company.[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /srv/www/htdocs/coronarchiv/projector/vendor/laminas/laminas-view/src/Variables.php on line 131

Warning : ini_set(): Session ini settings cannot be changed after headers have already been sent in /srv/www/htdocs/coronarchiv/projector/vendor/laminas/laminas-session/src/Config/SessionConfig.php on line 147

Omeka S encountered an error

Laminas\Session\Exception\InvalidArgumentException
‘session.name’ is not a valid sessions-related ini setting.

Details:

Laminas\Session\Exception\InvalidArgumentException: ‘session.name’ is not a valid sessions-related ini setting. in /srv/www/htdocs/coronarchiv/projector/vendor/laminas/laminas-session/src/Config/SessionConfig.php:154 Stack trace: #0 /srv/www/htdocs/coronarchiv/projector/vendor/laminas/laminas-session/src/Config/StandardConfig.php(265): Laminas\Session\Config\SessionConfig->setStorageOption() #1 /srv/www/htdocs/coronarchiv/projector/vendor/laminas/laminas-session/src/Config/StandardConfig.php(113): Laminas\Session\Config\StandardConfig->setName() #2 /srv/www/htdocs/coronarchiv/projector/application/src/Mvc/MvcListeners.php(90): Laminas\Session\Config\StandardConfig->setOptions() #3 /srv/www/htdocs/coronarchiv/projector/vendor/laminas/laminas-eventmanager/src/EventManager.php(321): Omeka\Mvc\MvcListeners->bootstrapSession() #4 /srv/www/htdocs/coronarchiv/projector/vendor/laminas/laminas-eventmanager/src/EventManager.php(170): Laminas\EventManager\EventManager->triggerListeners() #5 /srv/www/htdocs/coronarchiv/projector/vendor/laminas/laminas-mvc/src/Application.php(160): Laminas\EventManager\EventManager->triggerEvent() #6 /srv/www/htdocs/coronarchiv/projector/application/src/Mvc/Application.php(40): Laminas\Mvc\Application->bootstrap() #7 /srv/www/htdocs/coronarchiv/projector/index.php(19): Omeka\Mvc\Application::init() #8 {main}

Hope anyone will resolve this.

Most of the errors you reported come from deprecations that were already fixed in upstream.

You probably need to do some library upgrades :slight_smile:

Thanks a lot, will do and let you know.