-
Notifications
You must be signed in to change notification settings - Fork 85
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
occ groupfolders:expire command Throws exception #1724
Comments
This indeed seems to be caused by https://wiki.php.net/rfc/arithmetic_operator_type_checks, I'm still doing most of my dev work on PHP 7.4, maybe I should switch to PHP 8 and see if I can reproduce :) |
Hi, Could you try changing groupfolders/lib/Versions/VersionsBackend.php Line 159 in 06279ed
It seems like before we were passing an array instead of a value here and PHP8 now throw an error. |
@CarlSchwan Good morning, after changing For completes the line 159 in $mount = $this->mountProvider->getMount($folder['id'], '/dummyuser/files/' . $folder['mount_point'], 31, $folder['quota']); |
I created https://github.com/nextcloud/groupfolders/pull/1725/files with this fix and a bunch of additional type hinting so that this issue is less likely to happen again in the future :) |
Cool 😎 thank you so much. |
This was merged, I need to backport it to older versions and this should be available in the next nextcloud minor version :) |
@CarlSchwan awesome work, thank you so much for awsome and very quick fix 🙏 |
@CarlSchwan ist this fix already published in the nextcloud app store? |
@CarlSchwan I'd need the fix for nextcloud 22. Are there any plans to release version 10.0.x containing this fix? |
How to use GitHub
Steps to reproduce
occ groupfolders:expire
Expected behaviour
Actual behaviour
Exception is thrown
Server configuration
Operating system: Docker image
nextcloud:22.2.0-fpm
Host system UbuntuWeb server: NGINX
Database: PostgreSQL 13.4 on x86_64-pc-linux-musl
PHP version: 8.0.12
Nextcloud version: 22.2.0
Group folders version: 10.0.0
Updated from an older Nextcloud/ownCloud or fresh install: Docker, but upgraded from older versions
Where did you install Nextcloud from: Docker
Are you using external storage, if yes which one: Docker Volumes
Are you using encryption: no
Are you using an external user-backend, if yes which one: No
could be related to: nextcloud/server#25806
The text was updated successfully, but these errors were encountered: