Error when I add a audio file

Hello
I use Omeka S 4.2, and I have an error when I add one audio file, 12 MB, and I have these errors
TypeError
IiifServer\Mvc\Controller\Plugin\MediaDimension::cacheMediaDimensions(): Argument #1 ($mediaId) must be of type int, null given, called in /home/koluelor/public_html/modules/IiifServer/src/Mvc/Controller/Plugin/MediaDimension.php on line 151

I install the new version of Iiifserver and also imageserver and I have these error when actualize
Error
Call to undefined function ImageServer\shell_exec()

the new error when I actualize IiifServer
TypeError
IiifServer\Mvc\Controller\Plugin\MediaDimension::cacheMediaDimensions(): Argument #1 ($mediaId) must be of type int, null given, called in /home/koluelor/public_html/modules/IiifServer/src/Mvc/Controller/Plugin/MediaDimension.php on line 182

I have the same issue…

Same here, but with images as well. Error from debug mode:

TypeError: IiifServer\Mvc\Controller\Plugin\MediaDimension::cacheMediaDimensions(): Argument #1 ($mediaId) must be of type int, null given, called in /var/www/{REDACTED}/modules/IiifServer/src/Mvc/Controller/Plugin/MediaDimension.php on line 182 and defined in /var/www/{REDACTED}/modules/IiifServer/src/Mvc/Controller/Plugin/MediaDimension.php:358

System info:
Omeka S
Version 4.2.0
PHP
Version 8.3.6
SAPI apache2handler
Memory Limit 512M
POST Size Limit 10M
File Upload Limit 10M
Garbage Collection Yes
Extensions apache2handler, calendar, Core, ctype, date, dom, exif, FFI, fileinfo, filter, ftp, gd, gettext, hash, iconv, imagick, intl, json, libxml, mbstring, mysqli, mysqlnd, openssl, pcre, PDO, pdo_mysql, Phar, posix, random, readline, Reflection, session, shmop, SimpleXML, sockets, sodium, SPL, standard, sysvmsg, sysvsem, sysvshm, tokenizer, xml, xmlreader, xmlwriter, xsl, Zend OPcache, zlib

MySQL
Server Version 10.11.13-MariaDB-0ubuntu0.24.04.1
Client Version mysqlnd 8.3.6
Mode STRICT_TRANS_TABLES, ERROR_FOR_DIVISION_BY_ZERO, NO_AUTO_CREATE_USER, NO_ENGINE_SUBSTITUTION

OS
Version Linux 6.8.0-1012-gcp x86_64
Modules
active Bulk Edit (3.4.39), CSSEditor (1.3.1), CSV Import (2.6.2), Common (3.4.85), Faceted Browse (1.9.2), File Sideload (1.7.1), FreeSpace (1.0.1), Google Analytics (1.3.2), Hide Properties (1.3.1), IIIF Server (3.6.32), Image Annotate (1.1.0), Mapping (2.2.0), Metadata Browse (1.6.0), Rights Statements (1.2.1), Sharing (1.5.0), Universal Viewer (3.6.15-4.2.1), Value Suggest (1.18.0)
not_active Simple PDF (1.0.2)
Free space
System 13.9 GiB
Paths
PHP CLI path /usr/bin/php
ImageMagick directory /usr/bin/

PHP 8.3.6 (cli) (built: May 25 2026 13:12:06) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.3.6, Copyright (c) Zend Technologies
with Zend OPcache v8.3.6, Copyright (c), by Zend Technologies

Version: ImageMagick 6.9.12-98 Q16 x86_64 18038 https://legacy.imagemagick.org
Copyright: (C) 1999 ImageMagick Studio LLC
License: ImageMagick | License
Features: Cipher DPC Modules OpenMP(4.5)
Delegates (built-in): bzlib djvu fftw fontconfig freetype heic jbig jng jp2 jpeg lcms lqr ltdl lzma openexr pangocairo png raw tiff webp wmf x xml zlib

We are also experiencing this issue. Has anyone heard whether this is an issue with Omeka S working with new versions of PHP? We are on Omeka S 4.2 and PHP 8.3.6.

I’m guessing it has to do with the ImageServer module. Do you have its latest version installed?

That did the trick. Thanks for the tip!