Error Opening Item Sets Page

I believe after a particular job (Batch Edit) failed, our site started encountering an error when the Item Sets page was requested. This is the beginning of the error log as the entire log did not fit in the body of this post.

2022-09-26T15:15:00+00:00 ERR (3): Omeka\Api\Exception\NotFoundException: Omeka\Entity\SitePage entity with criteria {"slug":"owa","site":1} not found in /var/www/html/application/src/Api/Adapter/AbstractEntityAdapter.php:709
Stack trace:
#0 /var/www/html/application/src/Api/Adapter/AbstractEntityAdapter.php(427): Omeka\Api\Adapter\AbstractEntityAdapter->findEntity(Array, Object(Omeka\Api\Request))
#1 /var/www/html/application/src/Api/Manager.php(230): Omeka\Api\Adapter\AbstractEntityAdapter->read(Object(Omeka\Api\Request))
#2 /var/www/html/application/src/Api/Manager.php(115): Omeka\Api\Manager->execute(Object(Omeka\Api\Request))
#3 /var/www/html/application/src/Mvc/Controller/Plugin/Api.php(136): Omeka\Api\Manager->read('site_pages', Array, Array, Array)
#4 /var/www/html/modules/CleanUrl/src/Controller/Site/PageController.php(20): Omeka\Mvc\Controller\Plugin\Api->read('site_pages', Array)
#5 /var/www/html/vendor/laminas/laminas-mvc/src/Controller/AbstractActionController.php(77): CleanUrl\Controller\Site\PageController->showAction()
#6 /var/www/html/vendor/laminas/laminas-eventmanager/src/EventManager.php(321): Laminas\Mvc\Controller\AbstractActionController->onDispatch(Object(Laminas\Mvc\MvcEvent))
#7 /var/www/html/vendor/laminas/laminas-eventmanager/src/EventManager.php(178): Laminas\EventManager\EventManager->triggerListeners(Object(Laminas\Mvc\MvcEvent), Object(Closure))
#8 /var/www/html/vendor/laminas/laminas-mvc/src/Controller/AbstractController.php(103): Laminas\EventManager\EventManager->triggerEventUntil(Object(Closure), Object(Laminas\Mvc\MvcEvent))
#9 /var/www/html/vendor/laminas/laminas-mvc/src/DispatchListener.php(139): Laminas\Mvc\Controller\AbstractController->dispatch(Object(Laminas\Http\PhpEnvironment\Request), Object(Laminas\Http\PhpEnvironment\Response))
#10 /var/www/html/vendor/laminas/laminas-eventmanager/src/EventManager.php(321): Laminas\Mvc\DispatchListener->onDispatch(Object(Laminas\Mvc\MvcEvent))
#11 /var/www/html/vendor/laminas/laminas-eventmanager/src/EventManager.php(178): Laminas\EventManager\EventManager->triggerListeners(Object(Laminas\Mvc\MvcEvent), Object(Closure))
#12 /var/www/html/vendor/laminas/laminas-mvc/src/Application.php(331): Laminas\EventManager\EventManager->triggerEventUntil(Object(Closure), Object(Laminas\Mvc\MvcEvent))
#13 /var/www/html/index.php(21): Laminas\Mvc\Application->run()
#14 {main}
2022-09-26T15:38:49+00:00 ERR (3): Omeka\Api\Exception\NotFoundException: Omeka\Entity\SitePage entity with criteria {"slug":"ab2g","site":1} not found in /var/www/html/application/src/Api/Adapter/AbstractEntityAdapter.php:709
Stack trace:
#0 /var/www/html/application/src/Api/Adapter/AbstractEntityAdapter.php(427): Omeka\Api\Adapter\AbstractEntityAdapter->findEntity(Array, Object(Omeka\Api\Request))
#1 /var/www/html/application/src/Api/Manager.php(230): Omeka\Api\Adapter\AbstractEntityAdapter->read(Object(Omeka\Api\Request))
#2 /var/www/html/application/src/Api/Manager.php(115): Omeka\Api\Manager->execute(Object(Omeka\Api\Request))
#3 /var/www/html/application/src/Mvc/Controller/Plugin/Api.php(136): Omeka\Api\Manager->read('site_pages', Array, Array, Array)
#4 /var/www/html/modules/CleanUrl/src/Controller/Site/PageController.php(20): Omeka\Mvc\Controller\Plugin\Api->read('site_pages', Array)
#5 /var/www/html/vendor/laminas/laminas-mvc/src/Controller/AbstractActionController.php(77): CleanUrl\Controller\Site\PageController->showAction()
#6 /var/www/html/vendor/laminas/laminas-eventmanager/src/EventManager.php(321): Laminas\Mvc\Controller\AbstractActionController->onDispatch(Object(Laminas\Mvc\MvcEvent))
#7 /var/www/html/vendor/laminas/laminas-eventmanager/src/EventManager.php(178): Laminas\EventManager\EventManager->triggerListeners(Object(Laminas\Mvc\MvcEvent), Object(Closure))
#8 /var/www/html/vendor/laminas/laminas-mvc/src/Controller/AbstractController.php(103): Laminas\EventManager\EventManager->triggerEventUntil(Object(Closure), Object(Laminas\Mvc\MvcEvent))
#9 /var/www/html/vendor/laminas/laminas-mvc/src/DispatchListener.php(139): Laminas\Mvc\Controller\AbstractController->dispatch(Object(Laminas\Http\PhpEnvironment\Request), Object(Laminas\Http\PhpEnvironment\Response))
#10 /var/www/html/vendor/laminas/laminas-eventmanager/src/EventManager.php(321): Laminas\Mvc\DispatchListener->onDispatch(Object(Laminas\Mvc\MvcEvent))
#11 /var/www/html/vendor/laminas/laminas-eventmanager/src/EventManager.php(178): Laminas\EventManager\EventManager->triggerListeners(Object(Laminas\Mvc\MvcEvent), Object(Closure))
#12 /var/www/html/vendor/laminas/laminas-mvc/src/Application.php(331): Laminas\EventManager\EventManager->triggerEventUntil(Object(Closure), Object(Laminas\Mvc\MvcEvent))
#13 /var/www/html/index.php(21): Laminas\Mvc\Application->run()
#14 {main}
2022-09-26T15:38:49+00:00 ERR (3): Omeka\Api\Exception\NotFoundException: Omeka\Entity\SitePage entity with criteria {"slug":"ab2h","site":1} not found in /var/www/html/application/src/Api/Adapter/AbstractEntityAdapter.php:709
Stack trace:
#0 /var/www/html/application/src/Api/Adapter/AbstractEntityAdapter.php(427): Omeka\Api\Adapter\AbstractEntityAdapter->findEntity(Array, Object(Omeka\Api\Request))
#1 /var/www/html/application/src/Api/Manager.php(230): Omeka\Api\Adapter\AbstractEntityAdapter->read(Object(Omeka\Api\Request))
#2 /var/www/html/application/src/Api/Manager.php(115): Omeka\Api\Manager->execute(Object(Omeka\Api\Request))
#3 /var/www/html/application/src/Mvc/Controller/Plugin/Api.php(136): Omeka\Api\Manager->read('site_pages', Array, Array, Array)
#4 /var/www/html/modules/CleanUrl/src/Controller/Site/PageController.php(20): Omeka\Mvc\Controller\Plugin\Api->read('site_pages', Array)
#5 /var/www/html/vendor/laminas/laminas-mvc/src/Controller/AbstractActionController.php(77): CleanUrl\Controller\Site\PageController->showAction()
#6 /var/www/html/vendor/laminas/laminas-eventmanager/src/EventManager.php(321): Laminas\Mvc\Controller\AbstractActionController->onDispatch(Object(Laminas\Mvc\MvcEvent))
#7 /var/www/html/vendor/laminas/laminas-eventmanager/src/EventManager.php(178): Laminas\EventManager\EventManager->triggerListeners(Object(Laminas\Mvc\MvcEvent), Object(Closure))
#8 /var/www/html/vendor/laminas/laminas-mvc/src/Controller/AbstractController.php(103): Laminas\EventManager\EventManager->triggerEventUntil(Object(Closure), Object(Laminas\Mvc\MvcEvent))
#9 /var/www/html/vendor/laminas/laminas-mvc/src/DispatchListener.php(139): Laminas\Mvc\Controller\AbstractController->dispatch(Object(Laminas\Http\PhpEnvironment\Request), Object(Laminas\Http\PhpEnvironment\Response))
#10 /var/www/html/vendor/laminas/laminas-eventmanager/src/EventManager.php(321): Laminas\Mvc\DispatchListener->onDispatch(Object(Laminas\Mvc\MvcEvent))
#11 /var/www/html/vendor/laminas/laminas-eventmanager/src/EventManager.php(178): Laminas\EventManager\EventManager->triggerListeners(Object(Laminas\Mvc\MvcEvent), Object(Closure))
#12 /var/www/html/vendor/laminas/laminas-mvc/src/Application.php(331): Laminas\EventManager\EventManager->triggerEventUntil(Object(Closure), Object(Laminas\Mvc\MvcEvent))
#13 /var/www/html/index.php(21): Laminas\Mvc\Application->run()
#14 {main}
2022-09-26T22:20:03+00:00 ERR (3): Omeka\Api\Exception\NotFoundException: Omeka\Entity\SitePage entity with criteria {"slug":"webfig","site":1} not found in /var/www/html/application/src/Api/Adapter/AbstractEntityAdapter.php:709
Stack trace:
#0 /var/www/html/application/src/Api/Adapter/AbstractEntityAdapter.php(427): Omeka\Api\Adapter\AbstractEntityAdapter->findEntity(Array, Object(Omeka\Api\Request))
#1 /var/www/html/application/src/Api/Manager.php(230): Omeka\Api\Adapter\AbstractEntityAdapter->read(Object(Omeka\Api\Request))
#2 /var/www/html/application/src/Api/Manager.php(115): Omeka\Api\Manager->execute(Object(Omeka\Api\Request))
#3 /var/www/html/application/src/Mvc/Controller/Plugin/Api.php(136): Omeka\Api\Manager->read('site_pages', Array, Array, Array)
#4 /var/www/html/modules/CleanUrl/src/Controller/Site/PageController.php(20): Omeka\Mvc\Controller\Plugin\Api->read('site_pages', Array)
#5 /var/www/html/vendor/laminas/laminas-mvc/src/Controller/AbstractActionController.php(77): CleanUrl\Controller\Site\PageController->showAction()
#6 /var/www/html/vendor/laminas/laminas-eventmanager/src/EventManager.php(321): Laminas\Mvc\Controller\AbstractActionController->onDispatch(Object(Laminas\Mvc\MvcEvent))
#7 /var/www/html/vendor/laminas/laminas-eventmanager/src/EventManager.php(178): Laminas\EventManager\EventManager->triggerListeners(Object(Laminas\Mvc\MvcEvent), Object(Closure))
#8 /var/www/html/vendor/laminas/laminas-mvc/src/Controller/AbstractController.php(103): Laminas\EventManager\EventManager->triggerEventUntil(Object(Closure), Object(Laminas\Mvc\MvcEvent))
#9 /var/www/html/vendor/laminas/laminas-mvc/src/DispatchListener.php(139): Laminas\Mvc\Controller\AbstractController->dispatch(Object(Laminas\Http\PhpEnvironment\Request), Object(Laminas\Http\PhpEnvironment\Response))
#10 /var/www/html/vendor/laminas/laminas-eventmanager/src/EventManager.php(321): Laminas\Mvc\DispatchListener->onDispatch(Object(Laminas\Mvc\MvcEvent))
#11 /var/www/html/vendor/laminas/laminas-eventmanager/src/EventManager.php(178): Laminas\EventManager\EventManager->triggerListeners(Object(Laminas\Mvc\MvcEvent), Object(Closure))
#12 /var/www/html/vendor/laminas/laminas-mvc/src/Application.php(331): Laminas\EventManager\EventManager->triggerEventUntil(Object(Closure), Object(Laminas\Mvc\MvcEvent))
#13 /var/www/html/index.php(21): Laminas\Mvc\Application->run()
#14 {main}
2022-09-26T22:22:37+00:00 ERR (3): Omeka\Api\Exception\NotFoundException: Omeka\Entity\SitePage entity with criteria {"slug":"webfig","site":1} not found in /var/www/html/application/src/Api/Adapter/AbstractEntityAdapter.php:709
Stack trace:
#0 /var/www/html/application/src/Api/Adapter/AbstractEntityAdapter.php(427): Omeka\Api\Adapter\AbstractEntityAdapter->findEntity(Array, Object(Omeka\Api\Request))
#1 /var/www/html/application/src/Api/Manager.php(230): Omeka\Api\Adapter\AbstractEntityAdapter->read(Object(Omeka\Api\Request))
#2 /var/www/html/application/src/Api/Manager.php(115): Omeka\Api\Manager->execute(Object(Omeka\Api\Request))
#3 /var/www/html/application/src/Mvc/Controller/Plugin/Api.php(136): Omeka\Api\Manager->read('site_pages', Array, Array, Array)
#4 /var/www/html/modules/CleanUrl/src/Controller/Site/PageController.php(20): Omeka\Mvc\Controller\Plugin\Api->read('site_pages', Array)
#5 /var/www/html/vendor/laminas/laminas-mvc/src/Controller/AbstractActionController.php(77): CleanUrl\Controller\Site\PageController->showAction()
#6 /var/www/html/vendor/laminas/laminas-eventmanager/src/EventManager.php(321): Laminas\Mvc\Controller\AbstractActionController->onDispatch(Object(Laminas\Mvc\MvcEvent))
#7 /var/www/html/vendor/laminas/laminas-eventmanager/src/EventManager.php(178): Laminas\EventManager\EventManager->triggerListeners(Object(Laminas\Mvc\MvcEvent), Object(Closure))
#8 /var/www/html/vendor/laminas/laminas-mvc/src/Controller/AbstractController.php(103): Laminas\EventManager\EventManager->triggerEventUntil(Object(Closure), Object(Laminas\Mvc\MvcEvent))
#9 /var/www/html/vendor/laminas/laminas-mvc/src/DispatchListener.php(139): Laminas\Mvc\Controller\AbstractController->dispatch(Object(Laminas\Http\PhpEnvironment\Request), Object(Laminas\Http\PhpEnvironment\Response))
#10 /var/www/html/vendor/laminas/laminas-eventmanager/src/EventManager.php(321): Laminas\Mvc\DispatchListener->onDispatch(Object(Laminas\Mvc\MvcEvent))
#11 /var/www/html/vendor/laminas/laminas-eventmanager/src/EventManager.php(178): Laminas\EventManager\EventManager->triggerListeners(Object(Laminas\Mvc\MvcEvent), Object(Closure))
#12 /var/www/html/vendor/laminas/laminas-mvc/src/Application.php(331): Laminas\EventManager\EventManager->triggerEventUntil(Object(Closure), Object(Laminas\Mvc\MvcEvent))
#13 /var/www/html/index.php(21): Laminas\Mvc\Application->run()
#14 {main}

The job’s status is stuck on “stopping” and it has no error log. The next two jobs are the same. The one after that has status “Failed” and error log:

Fatal error: Allowed memory size of 524288000 bytes exhausted (tried to allocate 20480 bytes)
in /var/www/html/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php on line 2873

The following jobs had error logs along the lins of this one:

2023-02-01T01:40:23+00:00 ERR (3): Omeka\Job\Exception\RuntimeException: PHP-CLI error: invalid PHP path. in /var/www/html/application/src/Job/DispatchStrategy/PhpCli.php:63
Stack trace:
#0 /var/www/html/application/src/Job/Dispatcher.php(105): Omeka\Job\DispatchStrategy\PhpCli->send(Object(Omeka\Entity\Job))
#1 /var/www/html/application/src/Job/Dispatcher.php(91): Omeka\Job\Dispatcher->send(Object(Omeka\Entity\Job), Object(Omeka\Job\DispatchStrategy\PhpCli))
#2 /var/www/html/application/src/Controller/Admin/ItemController.php(340): Omeka\Job\Dispatcher->dispatch('Omeka\\Job\\Batch...', Array)
#3 /var/www/html/vendor/laminas/laminas-mvc/src/Controller/AbstractActionController.php(77): Omeka\Controller\Admin\ItemController->batchEditAllAction()
#4 /var/www/html/vendor/laminas/laminas-eventmanager/src/EventManager.php(321): Laminas\Mvc\Controller\AbstractActionController->onDispatch(Object(Laminas\Mvc\MvcEvent))
#5 /var/www/html/vendor/laminas/laminas-eventmanager/src/EventManager.php(178): Laminas\EventManager\EventManager->triggerListeners(Object(Laminas\Mvc\MvcEvent), Object(Closure))
#6 /var/www/html/vendor/laminas/laminas-mvc/src/Controller/AbstractController.php(103): Laminas\EventManager\EventManager->triggerEventUntil(Object(Closure), Object(Laminas\Mvc\MvcEvent))
#7 /var/www/html/vendor/laminas/laminas-mvc/src/DispatchListener.php(139): Laminas\Mvc\Controller\AbstractController->dispatch(Object(Laminas\Http\PhpEnvironment\Request), Object(Laminas\Http\PhpEnvironment\Response))
#8 /var/www/html/vendor/laminas/laminas-eventmanager/src/EventManager.php(321): Laminas\Mvc\DispatchListener->onDispatch(Object(Laminas\Mvc\MvcEvent))
#9 /var/www/html/vendor/laminas/laminas-eventmanager/src/EventManager.php(178): Laminas\EventManager\EventManager->triggerListeners(Object(Laminas\Mvc\MvcEvent), Object(Closure))
#10 /var/www/html/vendor/laminas/laminas-mvc/src/Application.php(331): Laminas\EventManager\EventManager->triggerEventUntil(Object(Closure), Object(Laminas\Mvc\MvcEvent))
#11 /var/www/html/index.php(21): Laminas\Mvc\Application->run()
#12 {main}

Here is the system information:

Omeka S
Version 	3.2.3
PHP
Version 	8.1.3
SAPI 	apache2handler
Memory Limit 	1000M
POST Size Limit 	600M
File Upload Limit 	600M
Garbage Collection 	Yes
Extensions 	apache2handler, Core, ctype, curl, date, dom, fileinfo, filter, ftp, gd, hash, iconv, imagick, intl, json, libxml, mbstring, mysqli, mysqlnd, openssl, pcre, PDO, pdo_mysql, pdo_sqlite, Phar, posix, Reflection, session, SimpleXML, sodium, SPL, sqlite3, standard, tokenizer, xml, xmlreader, xmlwriter, zlib
MySQL
Server Version 	5.7.37
Client Version 	mysqlnd 8.1.3
Mode 	ONLY_FULL_GROUP_BY, STRICT_TRANS_TABLES, NO_ZERO_IN_DATE, NO_ZERO_DATE, ERROR_FOR_DIVISION_BY_ZERO, NO_AUTO_CREATE_USER, NO_ENGINE_SUBSTITUTION
OS
Version 	Linux 5.4.0-132-generic x86_64

This looks like it might be related to the CleanUrl module, and not necessarily any Batch Edit issue, or it’s possible the two are related.

The error messages are about certain pages not existing in your site: the slugs “webfig,” “ab2h,” “ab2g,” and “owa” (just in what you’ve shown). Are these recognizable parts of the URL you’re trying to go to, or to your CleanUrl configuration? CleanUrl is someone else’s module, so I can’t speak with any authority on how it works, but it’s involved in these errors you’re seeing.

The URL was just https://www.sabil.ethz.ch/admin/item-set and those slugs aren’t part of our CleanURL config so I’m not sure. After disabling CleanURL, the application log now reads like this:

2023-02-01T21:56:01+00:00 ERR (3): Omeka\Api\Exception\NotFoundException: كيان Omeka\Entity\Item بمعايير {"id":"4519"} غير موجود in /var/www/html/application/src/Api/Adapter/AbstractEntityAdapter.php:709
Stack trace:
#0 /var/www/html/application/src/Api/Adapter/AbstractEntityAdapter.php(427): Omeka\Api\Adapter\AbstractEntityAdapter->findEntity(Array, Object(Omeka\Api\Request))
#1 /var/www/html/application/src/Api/Manager.php(230): Omeka\Api\Adapter\AbstractEntityAdapter->read(Object(Omeka\Api\Request))
#2 /var/www/html/application/src/Api/Manager.php(115): Omeka\Api\Manager->execute(Object(Omeka\Api\Request))
#3 /var/www/html/application/src/Mvc/Controller/Plugin/Api.php(136): Omeka\Api\Manager->read('items', '4519', Array, Array)
#4 /var/www/html/application/src/Controller/Site/ItemController.php(46): Omeka\Mvc\Controller\Plugin\Api->read('items', '4519')
#5 /var/www/html/vendor/laminas/laminas-mvc/src/Controller/AbstractActionController.php(77): Omeka\Controller\Site\ItemController->showAction()
#6 /var/www/html/vendor/laminas/laminas-eventmanager/src/EventManager.php(321): Laminas\Mvc\Controller\AbstractActionController->onDispatch(Object(Laminas\Mvc\MvcEvent))
#7 /var/www/html/vendor/laminas/laminas-eventmanager/src/EventManager.php(178): Laminas\EventManager\EventManager->triggerListeners(Object(Laminas\Mvc\MvcEvent), Object(Closure))
#8 /var/www/html/vendor/laminas/laminas-mvc/src/Controller/AbstractController.php(103): Laminas\EventManager\EventManager->triggerEventUntil(Object(Closure), Object(Laminas\Mvc\MvcEvent))
#9 /var/www/html/vendor/laminas/laminas-mvc/src/DispatchListener.php(139): Laminas\Mvc\Controller\AbstractController->dispatch(Object(Laminas\Http\PhpEnvironment\Request), Object(Laminas\Http\PhpEnvironment\Response))
#10 /var/www/html/vendor/laminas/laminas-eventmanager/src/EventManager.php(321): Laminas\Mvc\DispatchListener->onDispatch(Object(Laminas\Mvc\MvcEvent))
#11 /var/www/html/vendor/laminas/laminas-eventmanager/src/EventManager.php(178): Laminas\EventManager\EventManager->triggerListeners(Object(Laminas\Mvc\MvcEvent), Object(Closure))
#12 /var/www/html/vendor/laminas/laminas-mvc/src/Application.php(331): Laminas\EventManager\EventManager->triggerEventUntil(Object(Closure), Object(Laminas\Mvc\MvcEvent))
#13 /var/www/html/index.php(21): Laminas\Mvc\Application->run()
#14 {main}

So, that’s a translated error message (Arabic?) which I can’t read, but I imagine it’s saying that the item with ID 4519 can’t be found.

It looks like you’re trying to view the show page for item 4519 (like, you’re going to the URL /s/your-site/item/4519). If that’s the case: does that item exist? If it doesn’t then this is an expected error message. Similarly if it does exist but it isn’t public and you’re trying to view it as a user who isn’t logged in, you’d see this message.

That is correct.

I am actually just trying to open the Item Sets page from the admin dashboard. It looks like the item does not exist and Omeka S is trying to find it for some reason (and failing). Is there a way that I could remove all traces of this item in order to solve the issue?

Do you maybe have other modules around that could do something like this? Or maybe, are you sure you’re looking at the error you want to be looking at?

The error message you’re posting is a request directly to the public item show page for item 4519. It’s not an admin request, and it’s not to the item sets browse.

A public-side user or crawler visiting the site and trying to go to that item’s page could be causing that error log entry, totally unrelated to what you’re looking for about the admin item set browse. You’d expect a log relating to viewing that page to contain Controller/Admin/ItemSetController in the “stack trace” section.

Ah thank you for this information. I am checking log/application.log as I try to open the item sets page but this is the only error in the file. The page takes a while to load and then only displays a blank white page (no html). I have also just been informed that the site does not accept new batch edits. Here are notes from another admin. “What happened after job 63 (the batch edit) is that other batch edits and also other uploads couldn't be performed (some in part, some at all). Then I realized that the item sets page doesn't open. Then now I realized that any "edit all" batch edit doesn't work, and gives an error, while "edit selected" works but is not logged as a job.

I switched error logging over to “development” mode and now the item-sets page displays the following:

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 /var/www/html/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 /var/www/html/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 /var/www/html/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 /var/www/html/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 /var/www/html/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 /var/www/html/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 /var/www/html/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 /var/www/html/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 /var/www/html/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 /var/www/html/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 /var/www/html/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 /var/www/html/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 /var/www/html/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 /var/www/html/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 /var/www/html/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 /var/www/html/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 /var/www/html/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 /var/www/html/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 /var/www/html/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 /var/www/html/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 /var/www/html/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 /var/www/html/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 /var/www/html/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 /var/www/html/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 /var/www/html/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 /var/www/html/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 /var/www/html/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 /var/www/html/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 /var/www/html/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 /var/www/html/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 /var/www/html/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 /var/www/html/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 /var/www/html/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 /var/www/html/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 /var/www/html/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 /var/www/html/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 /var/www/html/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 /var/www/html/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 /var/www/html/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 /var/www/html/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 /var/www/html/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 /var/www/html/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 /var/www/html/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 /var/www/html/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 /var/www/html/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 /var/www/html/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 #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/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 /var/www/html/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 /var/www/html/vendor/laminas/laminas-session/src/Config/SessionConfig.php:154
Stack trace:
#0 /var/www/html/vendor/laminas/laminas-session/src/Config/StandardConfig.php(265): Laminas\Session\Config\SessionConfig->setStorageOption('name', '40d1b2d83998fab...')
#1 /var/www/html/vendor/laminas/laminas-session/src/Config/StandardConfig.php(113): Laminas\Session\Config\StandardConfig->setName('40d1b2d83998fab...')
#2 /var/www/html/application/src/Mvc/MvcListeners.php(90): Laminas\Session\Config\StandardConfig->setOptions(Array)
#3 /var/www/html/vendor/laminas/laminas-eventmanager/src/EventManager.php(321): Omeka\Mvc\MvcListeners->bootstrapSession(Object(Laminas\Mvc\MvcEvent))
#4 /var/www/html/vendor/laminas/laminas-eventmanager/src/EventManager.php(170): Laminas\EventManager\EventManager->triggerListeners(Object(Laminas\Mvc\MvcEvent))
#5 /var/www/html/vendor/laminas/laminas-mvc/src/Application.php(160): Laminas\EventManager\EventManager->triggerEvent(Object(Laminas\Mvc\MvcEvent))
#6 /var/www/html/application/src/Mvc/Application.php(40): Laminas\Mvc\Application->bootstrap(Array)
#7 /var/www/html/index.php(19): Omeka\Mvc\Application::init(Array)
#8 {main}

Those errors you’re seeing there when in “development” mode are a consequence of running with PHP 8.1 and Omeka S 3.2.3. Omeka S 4.0.0 is the first version with official support for PHP 8.1. Those errors should not be related to your problem here, though.

When you say you can’t load admin/item-set, what happens? Do you get an Omeka S error page, a browser error page, a blank white screen, partial output, or something else. Any “Omeka S has encountered an error” page should be resulting in an error being logged, but other errors than that type could leave evidence elsewhere instead.

On “edit selected”: those are not run as “jobs,” so its expected they won’t be logged there. The error much higher for other jobs, “invalid PHP path” means that your configuration for where to find the PHP CLI is incorrect (if customized, this would be found in config/local.config.php). If there’s a problem with that path, you’ll be getting that error for any job run, so any “batch edit all,” things like long-running imports, etc. You just aren’t able to run background long-running jobs until you correct that path setting.

The job issues, that shouldn’t be related to any problem you’re having in opening the item-set admin page, and probably not related to any failed jobs from before. If your host updated PHP, it’s possible your previous PHP-CLI path is now no longer correct. Something like that would be the likely culprit there. The item-set issue is likely something else, but it could also be related to PHP 8.1 if that is indeed a recent change.

Thank you again for that valuable information. I updated the php cli path and now batch edit all jobs work which is great.
When I open the item-sets page I get a blank white screen like this:

OK. A screen like this generally indicates a PHP fatal error.

We’ve already covered that using the typical “display errors” route won’t work well here thanks to issues with PHP 8.1 and your version of Omeka S.

You have a couple options:

  • Look for PHP logs on your system, which should log this fatal error when it occurs (these are different from the Omeka log you’ve been looking at). My guess would be that you might want to look in Apache’s error log for these.
  • Upgrade Omeka S to 4.0.0. This will resolve the problem you currently have when enabling “development” mode, so you could turn on error display and actually see the real error here. It’s also possible that this is a problem that would be fixed by the upgrade itself.
  • Downgrade PHP. On some servers it’s easy to choose your version of PHP, and you could switch to 8.0 or lower. This is similar to the previous option, it would just remove those unrelated “Deprecated” messages.

Hello again, I went through with some of your suggestions and have more information now.
The item sets page now displays a 502 bad gateway nginx error page. I’m not sure what changed. I upgraded to omeka 4.0.1 for debugging purposes, though some of our modules are incompatible. I noticed that the omeka docker container is constantly restarting. I found that /var/log/apache2/error.log was just a symlink to /dev/stderr, and I couldn’t check stderr because of the constant restarting (can’t copy it like a normal file). I checked the docker logs for this container and this was the output:

2023-03-22T21:50:44.536610431Z [Wed Mar 22 21:50:44.536460 2023] [mpm_prefork:notice] [pid 1] AH00163: Apache/2.4.38 (Debian) PHP/8.1.3 configured -- resuming normal operations
2023-03-22T21:50:44.536633865Z [Wed Mar 22 21:50:44.536521 2023] [core:notice] [pid 1] AH00094: Command line: 'apache2 -D FOREGROUND'

[redacted http request logs}

2023-03-22T21:51:13.030334304Z [Wed Mar 22 21:51:13.030239 2023] [mpm_prefork:notice] [pid 1] AH00170: caught SIGWINCH, shutting down gracefully

I have no idea what’s causing the SIGWINCH signal. I also checked the omeka application.log and sql.log files but for some reason they were empty. Maybe because the container is only seconds old at any given time.

I found the issue that was causing the nginx 502 error and shutting down the container. It was a completely separate problem related to a systemd service.

The item sets page not opening turned out to be a php cli memory limit issue. I increased the memory limit to 5GB in php.ini and now it opens (but very slowly).

Do you have some module or something doing something there?

The CLI’s memory limit shouldn’t/doesn’t affect the web display at all, and in any case shouldn’t require anything even in the ballpark of 5GB.

The page includes an item set from the Zotero import module. I’m not sure what else could be affecting it. The full list of active modules is:

Advanced Resource Template version 3.4.4.17

Archive Repertory version 3.15.16

Collecting version 1.9.0

Contribute version 3.4.0.21

Custom Ontology version 3.4.5.1

Custom Vocab version 1.7.1

Faceted Browse version 1.3.0

Generic module version 3.4.43

Internationalisation version 3.4.10.2

Numeric Data Types version 1.11.0

PDF Embed version 1.2.1

Value Suggest version 1.15.0

Zotero Import version 1.3.0

Do you have any other settings you’ve changed that might be relevant? Very high page limits? Extremely large or numerous values on some or all of these sets?

For reference, 128 MB is typically easily sufficient for a installation’s memory limit.

I found the issue. It was the Zotero Import item set. It had “Zotero Import” repeated an uncountable number of times in the “Title” field. The page was so long when I opened the item set it froze the browser tab. We deleted the item set and the issue was resolved. No more severe memory usage or slowness on the item sets page. Here is the only screenshot I have of it

Hmm… interesting.

Thanks for reporting on your findings.

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