groupfolders icon indicating copy to clipboard operation
groupfolders copied to clipboard

Too few arguments to function OCA\\GroupFolders \\DAV\\ACLPlugin::__construct(), 0 passed in /var/www/html/apps/dav/lib/AppInfo/PluginManager.php on line 262 and exactly 3 expected

Open btakita opened this issue 2 years ago โ€ข 6 comments

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. Load files & directories into Groupfolders
  2. Another user visits Groupfolders

Expected behaviour

Tell us what should happen

No error

Actual behaviour

Tell us what happens instead

500 HTTP Error

Too few arguments to function OCA\GroupFolders \DAV\ACLPlugin::__construct(), 0 passed in /var/www/html/apps/dav/lib/AppInfo/PluginManager.php on line 262 and exactly 3 expected

Server configuration

Operating system:

Alpine

Web server:

Apache

Database:

Postgres

PHP version:

Nextcloud version: (see Nextcloud admin page)

Group folders version:

Updated from an older Nextcloud/ownCloud or fresh install:

Where did you install Nextcloud from:

Are you using external storage, if yes which one: local/s3/smb/sftp/...

Are you using encryption: yes/no

Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/Saml/...

Client configuration

Browser:

Operating system:

Logs

Web server error log

Web server error log
Insert your webserver log here

Nextcloud log (data/nextcloud.log)

Nextcloud log
{
  "reqId": "pYRdRKonzaBGudeLRo9m",
  "level": 3,
  "time": "2023-07-08T23:35:05+00:00",
  "remoteAddr": "174.247.0.32",
  "user": "btak",
  "app": "webdav",
  "method": "PROPFIND",
  "url": "/remote.php/dav/files/btak/Collectives/Great%20Works%20Alliance/Readme.md",
  "message": "Too few arguments to function OCA\\GroupFolders\\DAV\\ACLPlugin::__construct(), 0 passed in /var/www/html/apps/dav/lib/AppInfo/PluginManager.php on line 262 and exactly 3 expected",
  "userAgent": "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0",
  "version": "27.0.0.8",
  "exception": {
    "Exception": "ArgumentCountError",
    "Message": "Too few arguments to function OCA\\GroupFolders\\DAV\\ACLPlugin::__construct(), 0 passed in /var/www/html/apps/dav/lib/AppInfo/PluginManager.php on line 262 and exactly 3 expected",
    "Code": 0,
    "Trace": [
      {
        "file": "/var/www/html/apps/dav/lib/AppInfo/PluginManager.php",
        "line": 262,
        "function": "__construct",
        "class": "OCA\\GroupFolders\\DAV\\ACLPlugin",
        "type": "->",
        "args": []
      },
      {
        "file": "/var/www/html/apps/dav/lib/AppInfo/PluginManager.php",
        "line": 277,
        "function": "createClass",
        "class": "OCA\\DAV\\AppInfo\\PluginManager",
        "type": "->",
        "args": [
          "*** sensitive parameters replaced ***"
        ]
      },
      {
        "function": "OCA\\DAV\\AppInfo\\{closure}",
        "class": "OCA\\DAV\\AppInfo\\PluginManager",
        "type": "->",
        "args": [
          "*** sensitive parameters replaced ***"
        ]
      },
      {
        "file": "/var/www/html/apps/dav/lib/AppInfo/PluginManager.php",
        "line": 282,
        "function": "array_map",
        "args": [
          [
            "Closure"
          ],
          [
            "OCA\\GroupFolders\\DAV\\PropFindPlugin",
            "*** sensitive parameters replaced ***"
          ]
        ]
      },
      {
        "file": "/var/www/html/apps/dav/lib/AppInfo/PluginManager.php",
        "line": 156,
        "function": "loadSabrePluginsFromInfoXml",
        "class": "OCA\\DAV\\AppInfo\\PluginManager",
        "type": "->",
        "args": [
          [
            "OCA\\GroupFolders\\DAV\\PropFindPlugin",
            "*** sensitive parameters replaced***"
          ]
        ]
      },
      {
        "file": "/var/www/html/apps/dav/lib/AppInfo/PluginManager.php",
        "line": 107,
        "function": "populate",
        "class": "OCA\\DAV\\AppInfo\\PluginManager",
        "type": "->",
        "args": []
      },
      {
        "file": "/var/www/html/apps/dav/lib/Server.php",
        "line": 347,
        "function": "getAppPlugins",
        "class": "OCA\\DAV\\AppInfo\\PluginManager",
        "type": "->",
        "args": []
      },
      {
        "file": "/var/www/html/3rdparty/sabre/event/lib/WildcardEmitterTrait.php",
        "line": 89,
        "function": "OCA\\DAV\\{closure}",
        "class": "OCA\\DAV\\Server",
        "type": "->",
        "args": [
          "*** sensitive parameters replaced ***"
        ]
      },
      {
        "file": "/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php",
        "line": 456,
        "function": "emit",
        "class": "Sabre\\DAV\\Server",
        "type": "->",
        "args": [
          "beforeMethod:PROPFIND",
          [
            "*** sensitive parameters replaced ***",
            "*** sensitive parameters replaced ***"
          ]
        ]
      },
      {
        "file": "/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php",
        "line": 253,
        "function": "invokeMethod",
        "class": "Sabre\\DAV\\Server",
        "type": "->",
        "args": [
          "*** sensitive parameters replaced ***",
          "*** sensitive parameters replaced ***"
        ]
      },
      {
        "file": "/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php",
        "line": 321,
        "function": "start",
        "class": "Sabre\\DAV\\Server",
        "type": "->",
        "args": []
      },
      {
        "file": "/var/www/html/apps/dav/lib/Server.php",
        "line": 364,
        "function": "exec",
        "class": "Sabre\\DAV\\Server",
        "type": "->",
        "args": []
      },
      {
        "file": "/var/www/html/apps/dav/appinfo/v2/remote.php",
        "line": 35,
        "function": "exec",
        "class": "OCA\\DAV\\Server",
        "type": "->",
        "args": []
      },
      {
        "file": "/var/www/html/remote.php",
        "line": 172,
        "args": [
          "/var/www/html/apps/dav/appinfo/v2/remote.php"
        ],
        "function": "require_once"
      }
    ],
    "File": "/var/www/html/custom_apps/groupfolders/lib/DAV/ACLPlugin.php",
    "Line": 54,
    "message": "Too few arguments to function OCA\\GroupFolders\\DAV\\ACLPlugin::__construct(), 0 passed in /var/www/html/apps/dav/lib/AppInfo/PluginManager.php on line 262 and exactly 3 expected",
    "exception": {},
    "CustomMessage": "Too few arguments to function OCA\\GroupFolders\\DAV\\ACLPlugin::__construct(), 0 passed in /var/www/html/apps/dav/lib/AppInfo/PluginManager.php on line 262 and exactly 3 expected"
  }
}

btakita avatar Jul 09 '23 03:07 btakita

Are you using Collectives app? Can you disable it and see if error is reproduced?

solracsf avatar Jul 11 '23 14:07 solracsf

Hello, same problem here. Tried disabling Collectives, didn't help. However disabling fulltextsearch did the trick for me. collectives i was able to turn back on

andreasnuesslein avatar Jul 14 '23 11:07 andreasnuesslein

same issue here Error webdav ArgumentCountError: Too few arguments to function 2023-07-24T14:36:42+03:30 OCA\GroupFolders\DAV\RootCollection::__construct(), 0 passed in /var/www/nextcloud/apps/dav/lib/AppInfo/PluginManager.php on line 262 and exactly 4 expected at apps/groupfolders/lib/DAV/RootCollection.php line 33

disabling groupfolders app resolved the issue

alireza-salehi avatar Jul 24 '23 11:07 alireza-salehi

Same here. NC: 27.0.1 Don't work with fulltextsearch plugin enabled. I have to disable fulltextsearch, or disable groupfolders plugin. They don't work together -> Error 50x

LazyGatto avatar Jul 26 '23 14:07 LazyGatto

NC: 27.0.2 had to disable the Collective app (version 2.7.0), otherwise the cron.php would give the mentioned error message.

spiezmaestro avatar Aug 15 '23 18:08 spiezmaestro

I am using neither collective nor fulltextsearch. For me only disabling groupfolder solved the problem - but in fact not really because just I want to use this app. :D Still trying a bit if there are other incompatibilities with my setup and apps. Will give You an update with possible results.

UPDATE: Disabling other apps didn't work for me. Tried with every app installed... Problem seems to be somewhere else then.

buzter avatar Aug 16 '23 14:08 buzter

Give this was a year ago, I am going to take a wild guess none of you are still experiencing this?

joshtrichards avatar Sep 11 '24 21:09 joshtrichards

FWIW, yes I no longer have this prob on NC 29.0.7 with Group Folders 17.0.3.

nooblag avatar Sep 13 '24 00:09 nooblag