Mapping module causing errors

Good afternoon.

I am receiving the following error when I attempt to make changes to items that use the mapping module:

TypeError: Omeka\Api\Request::setContent(): Argument #1 ($value) must be of type array, null given, called in /home/q1gkdyezwjfd/public_html/modules/Mapping/Module.php on line 913 and defined in /home/q1gkdyezwjfd/public_html/application/src/Api/Request.php:249
Stack trace:
#0 /home/q1gkdyezwjfd/public_html/modules/Mapping/Module.php(913): Omeka\Api\Request->setContent()
#1 /home/q1gkdyezwjfd/public_html/vendor/laminas/laminas-eventmanager/src/EventManager.php(318): Mapping\Module->handleFeatures()
#2 /home/q1gkdyezwjfd/public_html/vendor/laminas/laminas-eventmanager/src/EventManager.php(168): Laminas\EventManager\EventManager->triggerListeners()
#3 /home/q1gkdyezwjfd/public_html/application/src/Api/Adapter/AbstractEntityAdapter.php(661): Laminas\EventManager\EventManager->triggerEvent()
#4 /home/q1gkdyezwjfd/public_html/application/src/Api/Adapter/AbstractEntityAdapter.php(463): Omeka\Api\Adapter\AbstractEntityAdapter->hydrateEntity()
#5 /home/q1gkdyezwjfd/public_html/application/src/Api/Manager.php(233): Omeka\Api\Adapter\AbstractEntityAdapter->update()
#6 /home/q1gkdyezwjfd/public_html/application/src/Api/Manager.php(136): Omeka\Api\Manager->execute()
#7 /home/q1gkdyezwjfd/public_html/modules/AdvancedSearch/src/Api/ManagerDelegator.php(132): Omeka\Api\Manager->update()
#8 /home/q1gkdyezwjfd/public_html/application/src/Mvc/Controller/Plugin/Api.php(153): AdvancedSearch\Api\ManagerDelegator->update()
#9 /home/q1gkdyezwjfd/public_html/application/src/Controller/Admin/ItemController.php(281): Omeka\Mvc\Controller\Plugin\Api->update()
#10 /home/q1gkdyezwjfd/public_html/vendor/omeka/sanimal-mvc/src/Controller/AbstractActionController.php(72): Omeka\Controller\Admin\ItemController->editAction()
#11 /home/q1gkdyezwjfd/public_html/vendor/laminas/laminas-eventmanager/src/EventManager.php(318): Laminas\Mvc\Controller\AbstractActionController->onDispatch()
#12 /home/q1gkdyezwjfd/public_html/vendor/laminas/laminas-eventmanager/src/EventManager.php(176): Laminas\EventManager\EventManager->triggerListeners()
#13 /home/q1gkdyezwjfd/public_html/vendor/omeka/sanimal-mvc/src/Controller/AbstractController.php(105): Laminas\EventManager\EventManager->triggerEventUntil()
#14 /home/q1gkdyezwjfd/public_html/vendor/omeka/sanimal-mvc/src/DispatchListener.php(117): Laminas\Mvc\Controller\AbstractController->dispatch()
#15 /home/q1gkdyezwjfd/public_html/vendor/laminas/laminas-eventmanager/src/EventManager.php(318): Laminas\Mvc\DispatchListener->onDispatch()
#16 /home/q1gkdyezwjfd/public_html/vendor/laminas/laminas-eventmanager/src/EventManager.php(176): Laminas\EventManager\EventManager->triggerListeners()
#17 /home/q1gkdyezwjfd/public_html/vendor/omeka/sanimal-mvc/src/Application.php(319): Laminas\EventManager\EventManager->triggerEventUntil()
#18 /home/q1gkdyezwjfd/public_html/index.php(26): Laminas\Mvc\Application->run()
#19 {main}

I am using Omeka-S 4.2.1 and PHP version: 8.4.24. The mapping, common, and log modules are all updated to their latest versions.

Can you share the full list of modules you’re using?

This looks like something that’s caused by an incompatibility between two modules.

This is likely a known bug that’s been fixed and will be included in the next release. But a list of modules you’re using will be helpful in any case.

Thank you. Here is the full list of modules that I am unsing:

Advanced Resource Template version 3.4.54
Advanced Search version 3.4.62
Alternative Label Select version 3.4.1
Block Plus version 3.4.45
Blocks Disposition version 3.4.5
Bulk Edit version 3.4.39
Bulk Export version 3.4.40
Bulk Import Files version 3.4.9
Common version 3.4.90
CSSEditor version 1.3.1
CSV Import version 2.6.2
Custom Ontology version 3.4.6
Custom Vocab version 2.1.0
Data Type Geometry version 3.4.7
Data Type RDF version 3.4.17
Data Visualization version 1.5.0
Easy Admin version 3.4.48
Guest version 3.4.44
Inverse Properties version 1.1.1
Log version 3.4.40
Mapper version 3.4.8
Mapping version 2.2.0
Menu version 3.4.15
Metadata Browse version 1.6.1
Numeric Data Types version 1.14.3
Page Blocks version 1.3
PDF Embed version 1.2.1
RestrictedSites version 2.3
Thesaurus version 3.4.25
Timeline version 3.4.30
Value Suggest version 1.20.1
ViewerJS version 3.4.5-0.7.2
Zotero Import version 1.3.0

OK. The incompatibility issue we’re aware of is with Advanced Resource Template. If you’re not using that module’s features, you could try deactivating it. Otherwise a future update to Mapping should fix the problem from its side.

1 Like