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:
Take a random file on nextcloud
Display the properties for this file
The output of your Nextcloud log in Admin > Logging:
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.
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…