Error: Cannot manage settings when no target ID is set

Hello,

Working with a fresh install, and running into issues when viewing Items / Media / Item Set in the Admin area.

I’m able to Edit these with no problem, but always receive this error after saving. However, I’m not able to see the Item Sets listed when trying to add an Item to an Item Set.

I’m also able to view these Items on the front-end site, with no issue. It’s just not working properly in the back-end.

I have no modules installed.

Here is the error log:

2021-06-14T15:42:29+00:00 ERR (3): Omeka\Service\Exception\RuntimeException: Cannot manage settings when no target ID is set. in /var/www/html/omeka-s/application/src/Settings/AbstractTargetSettings.php:97
Stack trace:
#0 /var/www/html/omeka-s/application/src/Settings/AbstractSettings.php(149): Omeka\Settings\AbstractTargetSettings->setCache()
#1 /var/www/html/omeka-s/application/src/Settings/AbstractSettings.php(95): Omeka\Settings\AbstractSettings->cache()
#2 /var/www/html/omeka-s/application/src/Settings/AbstractTargetSettings.php(71): Omeka\Settings\AbstractSettings->get()
#3 /var/www/html/omeka-s/application/src/View/Helper/Setting.php(39): Omeka\Settings\AbstractTargetSettings->get()
#4 [internal function]: Omeka\View\Helper\Setting->__invoke()
#5 /var/www/html/omeka-s/vendor/laminas/laminas-view/src/Renderer/PhpRenderer.php(396): call_user_func_array()
#6 /var/www/html/omeka-s/application/view/common/resource-values.phtml(5): Laminas\View\Renderer\PhpRenderer->__call()
#7 /var/www/html/omeka-s/vendor/laminas/laminas-view/src/Renderer/PhpRenderer.php(505): include('/var/www/html/o...')
#8 /var/www/html/omeka-s/vendor/laminas/laminas-view/src/Helper/Partial.php(61): Laminas\View\Renderer\PhpRenderer->render()
#9 /var/www/html/omeka-s/application/src/Api/Representation/AbstractResourceEntityRepresentation.php(471): Laminas\View\Helper\Partial->__invoke()
#10 /var/www/html/omeka-s/application/view/omeka/admin/item-set/show.phtml(44): Omeka\Api\Representation\AbstractResourceEntityRepresentation->displayValues()
#11 /var/www/html/omeka-s/vendor/laminas/laminas-view/src/Renderer/PhpRenderer.php(505): include('/var/www/html/o...')
#12 /var/www/html/omeka-s/vendor/laminas/laminas-view/src/View.php(206): Laminas\View\Renderer\PhpRenderer->render()
#13 /var/www/html/omeka-s/vendor/laminas/laminas-view/src/View.php(235): Laminas\View\View->render()
#14 /var/www/html/omeka-s/vendor/laminas/laminas-view/src/View.php(199): Laminas\View\View->renderChildren()
#15 /var/www/html/omeka-s/vendor/laminas/laminas-mvc/src/View/Http/DefaultRenderingStrategy.php(104): Laminas\View\View->render()
#16 /var/www/html/omeka-s/vendor/laminas/laminas-eventmanager/src/EventManager.php(321): Laminas\Mvc\View\Http\DefaultRenderingStrategy->render()
#17 /var/www/html/omeka-s/vendor/laminas/laminas-eventmanager/src/EventManager.php(170): Laminas\EventManager\EventManager->triggerListeners()
#18 /var/www/html/omeka-s/vendor/laminas/laminas-mvc/src/Application.php(366): Laminas\EventManager\EventManager->triggerEvent()
#19 /var/www/html/omeka-s/vendor/laminas/laminas-mvc/src/Application.php(347): Laminas\Mvc\Application->completeRequest()
#20 /var/www/html/omeka-s/index.php(21): Laminas\Mvc\Application->run()
#21 {main}

What version are you using?

This looks very much like a problem on the “develop” version (currently that displays as version 3.1.0-alpha3)

If that’s what you’re using, a pull from the develop branch should fix the issue, but do note that the “develop” branch is where active development takes place, so it’s not designed to be stable like the actual releases.

You nailed it, thanks! Updated and resolved.