-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Call to undefined method OC\\Server::getEventDispatcher() #1864
Comments
same here... all clients behave in the same way. |
Same here with :
|
Doesn't seem to make any trouble (didn't see any issue using the social app) but it makes the log very much full ! [edit] It was fulling the log too much, I had to disable the Social app. I'll wait for a fix before enable it back. |
Fixed (well, it stopped generating errors) it by replacing line ./apps/social/lib/AppInfo/Application.php@71 with: $dispatcher = $this->getContainer()->query(IEventDispatcher::class); and adding (at the top of the file) use OCP\EventDispatcher\IEventDispatcher; (based on https://docs.nextcloud.com/server/19/developer_manual/app/events.html) |
@rikmeijer did you make a PR for that? |
Could you write which line you modify and replace by |
I put my altered Application.php in a gist |
Thanks for sharing that @rikmeijer ! That appears to have resolved the issue for me. |
Is anyone working on this? If not, I can make a PR. |
Describe the bug
To Reproduce
Steps to reproduce the behavior:
Expected behavior
App does not use private APIs.
Screenshots
If applicable, add screenshots to help explain your problem.
Client details:
Server details
**Social app version:**Operating system:
Web server:
Database:
PHP version:
Nextcloud version: 28
Logs
Nextcloud log (data/nextcloud.log)
Browser log
The text was updated successfully, but these errors were encountered: