Skip to content

[Bug]: TypeError OCA\GroupFolders\Versions\GroupVersion::__construct(): Argument #11 #2915

@polhenarejos

Description

@polhenarejos

How to use GitHub

  • Please use the 👍 reaction to show that you are affected by the same issue.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.

Steps to reproduce

  1. It is a background job. I do nothing.

Expected behaviour

Not getting any error.

Actual behaviour

I get a repetitive error in the Log section:

TypeError
OCA\GroupFolders\Versions\GroupVersion::__construct(): Argument #11 ($versionFile) must be of type OCP\Files\File, OC\Files\Node\Folder given, called in /home/phenarejos/CASTLE/django/www/nextcloud/apps/groupfolders/lib/Versions/VersionsBackend.php on line 159
Error while running background job (class: OCA\GroupFolders\BackgroundJob\ExpireGroupVersions, arguments: )

Server configuration

Operating system: Debian 11

Web server: Nginx

Database: Mariadb

PHP version: 8.1

Nextcloud version: (see Nextcloud admin page) 28.0.4

Group folders version: 16.0.6

Updated from an older Nextcloud/ownCloud or fresh install: upgraded

Where did you install Nextcloud from: zip from web

Are you using external storage, if yes which one: no

Are you using encryption: yes

Are you using an external user-backend, if yes which one: no

Client configuration

Browser: chrome

Operating system: windows

Logs

Web server error log

Web server error log
Insert your webserver log here

Nextcloud log (data/nextcloud.log)

Nextcloud log
{"reqId":"0q32N4PeWVoJ7iGBlT56","level":3,"time":"2024-04-09T10:05:02+00:00","remoteAddr":"","user":"--","app":"core","method":"","url":"--","message":"Error while running background job (class: OCA\\GroupFolders\\BackgroundJob\\ExpireGroupVersions, arguments: )","userAgent":"--","version":"28.0.4.1","exception":{"Exception":"TypeError","Message":"OCA\\GroupFolders\\Versions\\GroupVersion::__construct(): Argument #11 ($versionFile) must be of type OCP\\Files\\File, OC\\Files\\Node\\Folder given, called in /home/phenarejos/CASTLE/django/www/nextcloud/apps/groupfolders/lib/Versions/VersionsBackend.php on line 159","Code":0,"Trace":[{"file":"/home/phenarejos/CASTLE/django/www/nextcloud/apps/groupfolders/lib/Versions/VersionsBackend.php","line":159,"function":"__construct","class":"OCA\\GroupFolders\\Versions\\GroupVersion","type":"->"},{"function":"OCA\\GroupFolders\\Versions\\{closure}","class":"OCA\\GroupFolders\\Versions\\VersionsBackend","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/home/phenarejos/CASTLE/django/www/nextcloud/apps/groupfolders/lib/Versions/VersionsBackend.php","line":143,"function":"array_map"},{"file":"/home/phenarejos/CASTLE/django/www/nextcloud/apps/groupfolders/lib/Versions/VersionsBackend.php","line":80,"function":"getVersionsForFileFromDB","class":"OCA\\GroupFolders\\Versions\\VersionsBackend","type":"->"},{"file":"/home/phenarejos/CASTLE/django/www/nextcloud/apps/groupfolders/lib/Versions/GroupVersionsExpireManager.php","line":81,"function":"getVersionsForFile","class":"OCA\\GroupFolders\\Versions\\VersionsBackend","type":"->"},{"file":"/home/phenarejos/CASTLE/django/www/nextcloud/apps/groupfolders/lib/Versions/GroupVersionsExpireManager.php","line":60,"function":"expireFolder","class":"OCA\\GroupFolders\\Versions\\GroupVersionsExpireManager","type":"->"},{"file":"/home/phenarejos/CASTLE/django/www/nextcloud/apps/groupfolders/lib/BackgroundJob/ExpireGroupVersions.php","line":43,"function":"expireAll","class":"OCA\\GroupFolders\\Versions\\GroupVersionsExpireManager","type":"->"},{"file":"/home/phenarejos/CASTLE/django/www/nextcloud/lib/public/BackgroundJob/Job.php","line":81,"function":"run","class":"OCA\\GroupFolders\\BackgroundJob\\ExpireGroupVersions","type":"->"},{"file":"/home/phenarejos/CASTLE/django/www/nextcloud/lib/public/BackgroundJob/TimedJob.php","line":102,"function":"start","class":"OCP\\BackgroundJob\\Job","type":"->"},{"file":"/home/phenarejos/CASTLE/django/www/nextcloud/lib/public/BackgroundJob/TimedJob.php","line":92,"function":"start","class":"OCP\\BackgroundJob\\TimedJob","type":"->"},{"file":"/home/phenarejos/CASTLE/django/www/nextcloud/cron.php","line":152,"function":"execute","class":"OCP\\BackgroundJob\\TimedJob","type":"->"}],"File":"/home/phenarejos/CASTLE/django/www/nextcloud/apps/groupfolders/lib/Versions/GroupVersion.php","Line":33,"message":"Error while running background job (class: OCA\\GroupFolders\\BackgroundJob\\ExpireGroupVersions, arguments: )","exception":{},"CustomMessage":"Error while running background job (class: OCA\\GroupFolders\\BackgroundJob\\ExpireGroupVersions, arguments: )"}}

Browser log

Browser log
Insert your browser log here, this could for example include:

a) The javascript console log
b) The network log
c) ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    1. to developIssues that are ready for developmentbugfeature: versionsItems related to file versioning

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions