Error deleting file in web interface

Nextcloud version: 21.0.1
Operating system and version: Ubuntu 20.04.2 LTS
Apache version: Apache/2.4.41
PHP version: PHP 7.4.3

When deleting a file in the NC web interface I get thrown an error message inside the web interface (Error deleting file “file name”) and the file does not disappear. On page reload the file disappears from the web interface (expected behavior). So the issue isn’t that the file is not deleted. But there is some random error in between. The NC error log shows the following entries:

Fatal webdav Error: Call to a member function getId() on array
Error PHP Error: Trying to access array offset on value of type bool at /var/www/…

Any help to solve this issue would be greatly appreciated.

Hi, this looks like [21.0.1] "Error: Call to a member function getId() on array" at lib/private/Files/Cache/Updater.php on line 160 · Issue #26544 · nextcloud/server · GitHub

1 Like

@szaimen thank you for pointing me in the right direction. The error messages referenced there are indeed identical.