jgraph/drawio-nextcloud

Crash when opening admin settings

TobiGr opened this issue · 2 comments

NextCloud crashed while trying to open the drawio admin settings.
The debian server is running PHP 8.0

Exception: Call to undefined method OCA\Drawio\AppConfig::GetDarkMode() in file '/var/www/nextcloud/apps/drawio/lib/Controller/SettingsController.php' line 67 at <<closure>>

0. /var/www/nextcloud/lib/private/AppFramework/App.php line 172
   OC\AppFramework\Http\Dispatcher->dispatch()
1. /var/www/nextcloud/lib/private/Route/Router.php line 298
   OC\AppFramework\App::main()
2. /var/www/nextcloud/lib/base.php line 1030
   OC\Route\Router->match()
3. /var/www/nextcloud/index.php line 36
   OC::handleRequest()

GET /settings/admin/drawio
from xxx.xxx.xxx.xxx by xxx at 2023-01-06T11:16:54+00:00
full log
{"reqId":"Y7gDJQxebZpVhcQTCd8VNQAAAAQ","level":3,"time":"2023-01-06T11:16:54+00:00","remoteAddr":"xxx.xxx.xxx.xxx","user":"xxx","app":"index","method":"GET","url":"/settings/admin/drawio","message":"Call to undefined method OCA\\Drawio\\AppConfig::GetDarkMode() in file '/var/www/nextcloud/apps/drawio/lib/Controller/SettingsController.php' line 67","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:108.0) Gecko/20100101 Firefox/108.0","version":"24.0.8.2","exception":{"Exception":"Exception","Message":"Call to undefined method OCA\\Drawio\\AppConfig::GetDarkMode() in file '/var/www/nextcloud/apps/drawio/lib/Controller/SettingsController.php' line 67","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":172,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":298,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/lib/base.php","line":1030,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/index.php","line":36,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","Line":165,"Previous":{"Exception":"Error","Message":"Call to undefined method OCA\\Drawio\\AppConfig::GetDarkMode()","Code":0,"Trace":[{"file":"/var/www/nextcloud/apps/drawio/lib/Settings/Admin.php","line":29,"function":"index","class":"OCA\\Drawio\\Controller\\SettingsController","type":"->"},{"file":"/var/www/nextcloud/apps/settings/lib/Controller/CommonSettingsTrait.php","line":129,"function":"getForm","class":"OCA\\Drawio\\Settings\\Admin","type":"->"},{"file":"/var/www/nextcloud/apps/settings/lib/Controller/AdminSettingsController.php","line":83,"function":"formatSettings","class":"OCA\\Settings\\Controller\\AdminSettingsController","type":"->"},{"file":"/var/www/nextcloud/apps/settings/lib/Controller/CommonSettingsTrait.php","line":140,"function":"getSettings","class":"OCA\\Settings\\Controller\\AdminSettingsController","type":"->"},{"file":"/var/www/nextcloud/apps/settings/lib/Controller/AdminSettingsController.php","line":68,"function":"getIndexResponse","class":"OCA\\Settings\\Controller\\AdminSettingsController","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":225,"function":"index","class":"OCA\\Settings\\Controller\\AdminSettingsController","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":133,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":172,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":298,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/lib/base.php","line":1030,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/index.php","line":36,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/apps/drawio/lib/Controller/SettingsController.php","Line":67},"CustomMessage":"--"},"id":"63b8033b7fc4c"}

There is something wrong in updating the app. The same method is used in the editor. If the editor work while settings doesn't, please try uninstalling/installing the app

Seems to be caused by opcache. The crash did only occour shortly after updating the app.