"Error getting related ressources" error

Nextcloud version (eg, 20.0.5): 26
Operating system and version (eg, Ubuntu 20.04): Ubuntu 22.04.2 LTS
Apache or nginx version (eg, Apache 2.4.25): 2.4.52
PHP version (eg, 7.4): 8.1.2

The issue you are facing:

The error “Error getting related resources” displays when opening properties for a file since the Nextcloud 26 update
see: https://i.imgur.com/EA539sA.png

Is this the first time you’ve seen this error? (Y/N): N

Steps to replicate it:

  1. Take a random file on nextcloud
  2. Display the properties for this file

The output of your Nextcloud log in Admin > Logging:

No output

Same here.
Nextcloud 26, nextcloud:apache container, mysql, PHP 8.1.17.
(Upgraded from 24 and a long stepwise history).

Same here.

After update to v26 im getting this error very often, never seen before.
Happend just a minute ago while creating a new subfolders.
Doesn’t state something about the current occurence but i see some errors in the logging section.

[PHP] Error: getimagesizefromstring(): Error reading from ! at /var/www/nextcloud/lib/private/legacy/OC_Image.php#622

GET /core/preview?fileId=125830&c=a1ef9400e40d74edbc646c423509be8d&x=250&y=250&forceIcon=0&a=1
from IP by USERNAME at 2023-04-11T07:54:52+00:00

Looks like it is trying to fetch data before its even there?!

Since its looks like it is not stopping any features in the moment i keep on working, hopefully it gets patched out.

Here is the git issue: Error getting related resources · Issue #194 · nextcloud/related_resources · GitHub

In the dev tools i can see: GET https://NC-URL/ocs/v2.php/apps/related_resources/related/files/125924?format=json gets a 404 so i tried disabling the app related_resources as a tmp workaround.
This solved the issue of the upcomming error message.

Whats interresting is that the app is listed as an alpha version…

Same problem here on NC26