I recently upgraded NC to v20, there is a user that should have received a quota alert but he has not, also theres an error in a PHP function. The error is:
TypeError: Argument 2 passed to OCA\QuotaWarning\CheckQuota::shouldIssueWarning() must be of the type int, string given, called in /var/www/html/custom_apps/quota_warning/lib/CheckQuota.php on line 110
Maybe this can help:
this function is receiving a string in the level variable:
protected function shouldIssueWarning(string $userId, int $level): bool {
this is the line thats causing the problem i think:
if ($this->shouldIssueWarning($userId, 'warning')) {
I dont know if this error was present in v19, because there was no user excedig minimum quota warning.
Steps to reproduce
- Upload file from a user up to a minimum quota warning level
- No alert is shown
- Errors show up in NC log
Expected behaviour
A warning should be shown to the user
Actual behaviour
Nothing is happening
Server configuration
Operating system: Raspbian OS
Web server: Apache
Database: MariaDB
PHP version: 7.4.11
Nextcloud version: 20.0.0
Where did you install Nextcloud from: Docker container from Docker Hub
I dont think if its needed all the information about my system for this bug, so im not posting for now, but if its needed i can provide it later.
I recently upgraded NC to v20, there is a user that should have received a quota alert but he has not, also theres an error in a PHP function. The error is:
TypeError: Argument 2 passed to OCA\QuotaWarning\CheckQuota::shouldIssueWarning() must be of the type int, string given, called in /var/www/html/custom_apps/quota_warning/lib/CheckQuota.php on line 110
Maybe this can help:
this function is receiving a string in the level variable:
protected function shouldIssueWarning(string $userId, int $level): bool {
this is the line thats causing the problem i think:
if ($this->shouldIssueWarning($userId, 'warning')) {
I dont know if this error was present in v19, because there was no user excedig minimum quota warning.
Steps to reproduce
Expected behaviour
A warning should be shown to the user
Actual behaviour
Nothing is happening
Server configuration
Operating system: Raspbian OS
Web server: Apache
Database: MariaDB
PHP version: 7.4.11
Nextcloud version: 20.0.0
Where did you install Nextcloud from: Docker container from Docker Hub
I dont think if its needed all the information about my system for this bug, so im not posting for now, but if its needed i can provide it later.