[Spreed.ME] NC12 Beta: "Error: Class 'OC_Group' not found"

App works fine, but following error shows up in nextcloud log on app start since nextcloud 12 beta (2):

Error	index	Error: Class 'OC_Group' not found
/var/www/owncloud/apps/spreedme/user/user.php - line 103: OCA\SpreedME\User\User->getGroups()
/var/www/owncloud/apps/spreedme/user/user.php - line 36: OCA\SpreedME\User\User->isAdmin()
/var/www/owncloud/apps/spreedme/controller/apicontroller.php - line 65: OCA\SpreedME\User\User->getInfo()
[internal function] OCA\SpreedME\Controller\ApiController->getUserConfig()
/var/www/owncloud/lib/private/AppFramework/Http/Dispatcher.php - line 160: call_user_func_array(Array, Array)
/var/www/owncloud/lib/private/AppFramework/Http/Dispatcher.php - line 90: OC\AppFramework\Http\Dispatcher->executeController(Object(OCA\SpreedME\Controller\ApiController), 'getUserConfig')
/var/www/owncloud/lib/private/AppFramework/App.php - line 114: OC\AppFramework\Http\Dispatcher->dispatch(Object(OCA\SpreedME\Controller\ApiController), 'getUserConfig')
/var/www/owncloud/lib/private/AppFramework/Routing/RouteActionHandler.php - line 47: OC\AppFramework\App main('OCA\\SpreedME\\Co...', 'getUserConfig', Object(OC\AppFramework\DependencyInjection\DIContainer), Array)
[internal function] OC\AppFramework\Routing\RouteActionHandler->__invoke(Array)
/var/www/owncloud/lib/private/Route/Router.php - line 299: call_user_func(Object(OC\AppFramework\Routing\RouteActionHandler), Array)
/var/www/owncloud/lib/base.php - line 975: OC\Route\Router->match('/apps/spreedme/...')
/var/www/owncloud/index.php - line 40: OC handleRequest()
{main}

Thanks for reporting this. I haven’t tested the app with Nextcloud 12 yet, however will likely do so today. :slight_smile:

Please try https://github.com/strukturag/nextcloud-spreedme/commit/9e84b8a20c28bd6a64ab7d8fa0675971471732f4
I will do a new release as soon as 12 is stable.

Works for me, no error shows up in log anymore :+1: