Hi, I recently got this error in the log file while trying to update my items:
Fatal error: Uncaught Error: Call to a member function getParam() on null in /home/[...]/application/src/Api/Representation/ItemRepresentation.php:109
The line #109 is the one containing getParam('site-slug')
in the following code:
public function siteUrl($siteSlug = null, $canonical = false)
{
if (!$siteSlug) {
$siteSlug = $this->getServiceLocator()->get('Application')
->getMvcEvent()->getRouteMatch()->getParam('site-slug');
}
...
I managed to solve the problem by deactivating the module named “Clean Url”.
My setup: Omeka-S 4.1.1 / CSV Import 2.6.2 / Clean Url 3.17.10