Closed timotep66 closed 3 months ago
I can confirm this also exists on NC 29.0.0
The whole error message is like:
{"reqId":"VCdLrJC5cE1rnbTwuGNB","level":4,"time":"2024-05-30T13:44:42+00:00","remoteAddr":"xx.xx.xx.xx","user":"ncuser","app":"no app in context","method":"POST","url":"/index.php/settings/apps/disable","message":"Could not boot files_downloadactivity: Call to undefined method OC\\Server::getEventDispatcher()","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:126.0) Gecko/20100101 Firefox/126.0","version":"29.0.1.1","exception":{"Exception":"Error","Message":"Call to undefined method OC\\Server::getEventDispatcher()","Code":0,"Trace":[{"file":"/home/lib/private/AppFramework/Bootstrap/Coordinator.php","line":200,"function":"boot","class":"OCA\\FilesDownloadActivity\\AppInfo\\Application","type":"->"},{"file":"/home/lib/private/App/AppManager.php","line":437,"function":"bootApp","class":"OC\\AppFramework\\Bootstrap\\Coordinator","type":"->"},{"file":"/home/lib/private/App/AppManager.php","line":216,"function":"loadApp","class":"OC\\App\\AppManager","type":"->"},{"file":"/home/lib/private/legacy/OC_App.php","line":128,"function":"loadApps","class":"OC\\App\\AppManager","type":"->"},{"file":"/home/lib/base.php","line":1030,"function":"loadApps","class":"OC_App","type":"::"},{"file":"/home/index.php","line":49,"function":"handleRequest","class":"OC","type":"::"}],"File":"/home/apps/files_downloadactivity/lib/AppInfo/Application.php","Line":49,"message":"Could not boot files_downloadactivity: Call to undefined method OC\\Server::getEventDispatcher()","exception":[],"CustomMessage":"Could not boot files_downloadactivity: Call to undefined method OC\\Server::getEventDispatcher()"},"id":"66588357f1109"}
line 49 https://github.com/nextcloud/files_downloadactivity/blob/master/lib/AppInfo/Application.php#L49 is
$eventDispatcher = $context->getServerContainer()->getEventDispatcher();
There is already PR to fix this issue: https://github.com/nextcloud/files_downloadactivity/pull/166
Bump... Also happening on 29.0.4...
Fixed in upcoming release
Steps to reproduce
Expected behaviour
Tell us what should happen Plugin doesn't do notifications on upload file.
Actual behaviour
Tell us what happens instead
Server configuration
Operating system: Almalinux 9.3
Web server: Apache 2.4.57 Database: mysql 8.0.36 PHP version: 8.1.27 Nextcloud version: (see Nextcloud admin page) 28.0.4 Where did you install Nextcloud from: /home/nextcloud Signing status:
If you have access to your command line run e.g.: sudo -u www-data php occ app:list from within your Nextcloud installation folder
If you have access to your command line run e.g.: sudo -u www-data php occ config:list system from within your Nextcloud installation folder
or
Insert your config.php content here Make sure to remove all sensitive content such as passwords. (e.g. database password, passwordsalt, secret, smtp password, …)
Insert your Nextcloud log here
Insert your browser log here, this could for example include:
a) The javascript console log b) The network log c) ...