Describe the bug
Calling "occ update:check" generate an error "Call to undefined method OC\Server::getRootFolder()"
The corresponding line is apps/carnet/lib/AppInfo/Application.php:28 :
public function __construct(array $urlParams=array()){
parent::__construct('carnet', $urlParams);
$container = $this->getContainer();
$container->registerService('Config', function($c) {
return $c->query('ServerContainer')->getConfig();
});
$container->registerService('RootFolder', function($c) {
return $c->query('ServerContainer')->getRootFolder(); // <<<<<<<=====
});
$container->registerService('UserManager', function($c) {
return $c->query('ServerContainer')->getUserManager();
});
}
To Reproduce
Steps to reproduce the behavior:
- connect to your nextcloud
- request the update check with : /usr/bin/su - NEXTCLOUDUSER -s /bin/bash -c "php /var/www/html/nextcloud/occ update:check"
- See the error
Expected behavior
Should not use getRootFolder as it doesn't exists anymore
** Server version
Uptodate Nextcloud 34.0.0.
Uptodate Carnet
Describe the bug
Calling "occ update:check" generate an error "Call to undefined method OC\Server::getRootFolder()"
The corresponding line is apps/carnet/lib/AppInfo/Application.php:28 :
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Should not use getRootFolder as it doesn't exists anymore
** Server version
Uptodate Nextcloud 34.0.0.
Uptodate Carnet