Argument 1 passed to OC\\EventDispatcher\\ServiceEventListener::__invoke() must be an instance of OCP\\EventDispatcher\\Event, instance of OC\\EventDispatcher\\GenericEventWrapper given
- PHP 7.4
- MySQL 8
- Apache 2.4
- NC 20.0.4
When trying to add a new user on NC 20.0.4, i got this error and now i can't edit or delete these users.
Error is also thrown with php occ user:delete user
No errors after deactivating this application (latest version).
{
"reqId": "Rs7CceRWugEP7vzaB26P",
"level": 3,
"app": "no app in context",
"method": "POST",
"url": "/ocs/v2.php/cloud/users",
"message": {
"Exception": "Exception",
"Message": "Argument 1 passed to OC\\EventDispatcher\\ServiceEventListener::__invoke() must be an instance of OCP\\EventDispatcher\\Event, instance of OC\\EventDispatcher\\GenericEventWrapper given, called in /3rdparty/symfony/event-dispatcher/EventDispatcher.php on line 264",
"Code": 0,
"Trace": [
{
"file": "/lib/private/AppFramework/App.php",
"line": 152,
"function": "dispatch",
"class": "OC\\AppFramework\\Http\\Dispatcher",
"type": "->",
"args": [
{
"__class__": "OCA\\Provisioning_API\\Controller\\UsersController"
},
"addUser"
]
},
{
"file": "/lib/private/Route/Router.php",
"line": 308,
"function": "main",
"class": "OC\\AppFramework\\App",
"type": "::",
"args": [
"OCA\\Provisioning_API\\Controller\\UsersController",
"addUser",
{
"__class__": "OC\\AppFramework\\DependencyInjection\\DIContainer"
},
{
"action": null,
"_route": "ocs.provisioning_api.Users.addUser"
}
]
},
{
"file": "/ocs/v1.php",
"line": 88,
"function": "match",
"class": "OC\\Route\\Router",
"type": "->",
"args": [
"/ocsapp/cloud/users"
]
},
{
"file": "/ocs/v2.php",
"line": 24,
"args": [
"/ocs/v1.php"
],
"function": "require_once"
}
],
"File": "/lib/private/AppFramework/Http/Dispatcher.php",
"Line": 110,
"Previous": {
"Exception": "TypeError",
"Message": "Argument 1 passed to OC\\EventDispatcher\\ServiceEventListener::__invoke() must be an instance of OCP\\EventDispatcher\\Event, instance of OC\\EventDispatcher\\GenericEventWrapper given, called in /3rdparty/symfony/event-dispatcher/EventDispatcher.php on line 264",
"Code": 0,
"Trace": [
{
"file": "/3rdparty/symfony/event-dispatcher/EventDispatcher.php",
"line": 264,
"function": "__invoke",
"class": "OC\\EventDispatcher\\ServiceEventListener",
"type": "->",
"args": [
{
"__class__": "OC\\EventDispatcher\\GenericEventWrapper"
},
"*** sensitive parameter replaced ***",
"*** sensitive parameter replaced ***"
]
},
{
"file": "/3rdparty/symfony/event-dispatcher/EventDispatcher.php",
"line": 239,
"function": "doDispatch",
"class": "Symfony\\Component\\EventDispatcher\\EventDispatcher",
"type": "->",
"args": [
[
{
"__class__": "Closure"
},
{
"__class__": "Closure"
}
],
"*** sensitive parameter replaced ***",
{
"__class__": "OC\\EventDispatcher\\GenericEventWrapper"
}
]
},
{
"file": "/3rdparty/symfony/event-dispatcher/EventDispatcher.php",
"line": 73,
"function": "callListeners",
"class": "Symfony\\Component\\EventDispatcher\\EventDispatcher",
"type": "->",
"args": [
[
{
"__class__": "Closure"
},
{
"__class__": "Closure"
}
],
"*** sensitive parameter replaced ***",
{
"__class__": "OC\\EventDispatcher\\GenericEventWrapper"
}
]
},
{
"file": "/lib/private/EventDispatcher/SymfonyAdapter.php",
"line": 85,
"function": "dispatch",
"class": "Symfony\\Component\\EventDispatcher\\EventDispatcher",
"type": "->",
"args": [
{
"__class__": "OC\\EventDispatcher\\GenericEventWrapper"
},
{
"__class__": "OC\\EventDispatcher\\GenericEventWrapper"
}
]
},
{
"file": "/lib/private/User/User.php",
"line": 497,
"function": "dispatch",
"class": "OC\\EventDispatcher\\SymfonyAdapter",
"type": "->",
"args": [
"*** sensitive parameter replaced ***",
{
"__class__": "Symfony\\Component\\EventDispatcher\\GenericEvent"
}
]
},
{
"file": "/lib/private/Avatar/UserAvatar.php",
"line": 213,
"function": "triggerChange",
"class": "OC\\User\\User",
"type": "->",
"args": [
"avatar",
""
]
},
{
"file": "/lib/private/Avatar/UserAvatar.php",
"line": 326,
"function": "remove",
"class": "OC\\Avatar\\UserAvatar",
"type": "->",
"args": []
},
{
"file": "/lib/private/Server.php",
"line": 1388,
"function": "userChanged",
"class": "OC\\Avatar\\UserAvatar",
"type": "->",
"args": [
"displayName",
"*** sensitive parameter replaced ***",
"*** sensitive parameter replaced ***"
]
},
{
"file": "/3rdparty/symfony/event-dispatcher/EventDispatcher.php",
"line": 264,
"function": "OC\\{closure}",
"class": "OC\\Server",
"type": "->",
"args": [
"*** sensitive parameters replaced ***"
]
},
{
"file": "/3rdparty/symfony/event-dispatcher/EventDispatcher.php",
"line": 239,
"function": "doDispatch",
"class": "Symfony\\Component\\EventDispatcher\\EventDispatcher",
"type": "->",
"args": [
[
{
"__class__": "Closure"
},
{
"__class__": "Closure"
}
],
"*** sensitive parameter replaced ***",
"*** sensitive parameter replaced ***"
]
},
{
"file": "/3rdparty/symfony/event-dispatcher/EventDispatcher.php",
"line": 73,
"function": "callListeners",
"class": "Symfony\\Component\\EventDispatcher\\EventDispatcher",
"type": "->",
"args": [
[
{
"__class__": "Closure"
},
{
"__class__": "Closure"
}
],
"*** sensitive parameter replaced ***",
"*** sensitive parameter replaced ***"
]
},
{
"file": "/lib/private/EventDispatcher/SymfonyAdapter.php",
"line": 85,
"function": "dispatch",
"class": "Symfony\\Component\\EventDispatcher\\EventDispatcher",
"type": "->",
"args": [
"*** sensitive parameter replaced ***",
"*** sensitive parameter replaced ***"
]
},
{
"file": "/lib/private/User/User.php",
"line": 497,
"function": "dispatch",
"class": "OC\\EventDispatcher\\SymfonyAdapter",
"type": "->",
"args": [
"*** sensitive parameter replaced ***",
{
"__class__": "Symfony\\Component\\EventDispatcher\\GenericEvent"
}
]
},
{
"file": "/lib/private/User/User.php",
"line": 161,
"function": "triggerChange",
"class": "OC\\User\\User",
"type": "->",
"args": [
"displayName",
"*** sensitive parameter replaced ***",
"*** sensitive parameter replaced ***"
]
},
{
"file": "/apps/provisioning_api/lib/Controller/UsersController.php",
"line": 536,
"function": "setDisplayName",
"class": "OC\\User\\User",
"type": "->",
"args": [
"*** sensitive parameter replaced ***"
]
},
{
"file": "/apps/provisioning_api/lib/Controller/UsersController.php",
"line": 328,
"function": "editUser",
"class": "OCA\\Provisioning_API\\Controller\\UsersController",
"type": "->",
"args": [
"*** sensitive parameter replaced ***",
"display",
"*** sensitive parameter replaced ***"
]
},
{
"file": "/lib/private/AppFramework/Http/Dispatcher.php",
"line": 169,
"function": "addUser",
"class": "OCA\\Provisioning_API\\Controller\\UsersController",
"type": "->",
"args": [
"*** sensitive parameters replaced ***"
]
},
{
"file": "/lib/private/AppFramework/Http/Dispatcher.php",
"line": 100,
"function": "executeController",
"class": "OC\\AppFramework\\Http\\Dispatcher",
"type": "->",
"args": [
{
"__class__": "OCA\\Provisioning_API\\Controller\\UsersController"
},
"addUser"
]
},
{
"file": "/lib/private/AppFramework/App.php",
"line": 152,
"function": "dispatch",
"class": "OC\\AppFramework\\Http\\Dispatcher",
"type": "->",
"args": [
{
"__class__": "OCA\\Provisioning_API\\Controller\\UsersController"
},
"addUser"
]
},
{
"file": "/lib/private/Route/Router.php",
"line": 308,
"function": "main",
"class": "OC\\AppFramework\\App",
"type": "::",
"args": [
"OCA\\Provisioning_API\\Controller\\UsersController",
"addUser",
{
"__class__": "OC\\AppFramework\\DependencyInjection\\DIContainer"
},
{
"action": null,
"_route": "ocs.provisioning_api.Users.addUser"
}
]
},
{
"file": "/ocs/v1.php",
"line": 88,
"function": "match",
"class": "OC\\Route\\Router",
"type": "->",
"args": [
"/ocsapp/cloud/users"
]
},
{
"file": "/ocs/v2.php",
"line": 24,
"args": [
"/ocs/v1.php"
],
"function": "require_once"
}
],
"File": "/lib/private/EventDispatcher/ServiceEventListener.php",
"Line": 63
},
"CustomMessage": "--"
},
"userAgent": "Mozilla/5.0 (Linux; Android 10) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.101 Mobile Safari/537.36",
"version": "20.0.4.0",
"id": "5ffae7caeef69"
}