Skip to content

Quota warning error #57

Description

@systemcarrotpt

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

  1. Upload file from a user up to a minimum quota warning level
  2. No alert is shown
  3. 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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions