I upgraded Collective access from Version 1.8 to 2, and PHP from 7 to 8
but now when I click on an image metadata element in an object to open the image previewer, i get the following error
In console
Failed to load resource: the server responded with a status of 500 (Internal Server Error)Understand this errorAI
VM157:2784 Tile 2/0_0 failed to load: http://10.1.1.120/ca/service.php/IIIF/attribute:563058:1/0,0,2048,2048/256,/0/default.jpg
In Apache log
[Mon Mar 17 10:09:26.023786 2025] [php:error] [pid 74046] [client 10.10.10.92:50741] PHP Fatal error: Uncaught TypeError: ResponseHTTP::setContentType(): Argument #1 ($mimetype) must be of type string, null given, called in /var/www/html/ca/app/lib/Service/IIIFService.php on line 236 and defined in /var/www/html/ca/app/lib/Controller/Response/ResponseHTTP.php:138\nStack trace:\n#0 /var/www/html/ca/app/lib/Service/IIIFService.php(236): ResponseHTTP->setContentType()\n#1 /var/www/html/ca/app/service/controllers/IIIFController.php(39): IIIFService::dispatch()\n#2 /var/www/html/ca/app/lib/Controller/RequestDispatcher.php(289): IIIFController->__call()\n#3 /var/www/html/ca/app/lib/Controller/AppController.php(108): RequestDispatcher->dispatch()\n#4 /var/www/html/ca/service.php(55): AppController->dispatch()\n#5 {main}\n thrown in /var/www/html/ca/app/lib/Controller/Response/ResponseHTTP.php on line 138, referer: http://10.1.1.120/ca/index.php/editor/objects/ObjectEditor/Edit/object_id/36568
[Mon Mar 17 10:09:55.295651 2025] [php:error] [pid 140470] [client 10.10.10.92:50767] PHP Fatal error: Uncaught TypeError: ResponseHTTP::setContentType(): Argument #1 ($mimetype) must be of type string, null given, called in /var/www/html/ca/app/lib/Service/IIIFService.php on line 236 and defined in /var/www/html/ca/app/lib/Controller/Response/ResponseHTTP.php:138\nStack trace:\n#0 /var/www/html/ca/app/lib/Service/IIIFService.php(236): ResponseHTTP->setContentType()\n#1 /var/www/html/ca/app/service/controllers/IIIFController.php(39): IIIFService::dispatch()\n#2 /var/www/html/ca/app/lib/Controller/RequestDispatcher.php(289): IIIFController->__call()\n#3 /var/www/html/ca/app/lib/Controller/AppController.php(108): RequestDispatcher->dispatch()\n#4 /var/www/html/ca/service.php(55): AppController->dispatch()\n#5 {main}\n thrown in /var/www/html/ca/app/lib/Controller/Response/ResponseHTTP.php on line 138