Moving files in the root directory will result in an error

Root directory A and file a.jpg. If I move a.jpg to directory A, it will prompt that some elements are incomplete. The actual file has been successfully transferred. However, if I move a.jpg out of the same level as A or to other directories, no error will be reported. The following is the error message

Trying to access array offset on value of type null at /www/wwwroot/nextcloud/apps/activity/lib/FilesHooks.php#417

SyntaxErrorException
An exception occurred while executing a query: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘)) AND (sh.parent IS NULL)’ at line 1
Exception thrown: Doctrine\DBAL\Exception\SyntaxErrorException

TypeError
array_keys(): Argument #1 ($array) must be of type array, null given

Which version of NC are you using? And these are normal folders, no shared folders/external storage?

If you are in the user’s main folder:
/B/a.jpg: you cannot move it to /a.jpg or you can’t to /A/a.jpg ?

This is related to Circles/Teams. It’s already been fixed in the upcoming maintenance release: https://github.com/nextcloud/server/issues/46196

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.