nextcloud / nextcloud/mail

Quota::__construct(): Argument #2 ($limit) must be of type int, float given

Open
#9,192 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

0. to triage bug
Dominant language
JavaScript
Stars
1k
Forks
348
Avg merge
12h 28m
Merged PRs (30d)
91

Description

Steps to reproduce
  1. Install and active Mail
Expected behavior

Sending and receiving messages

Actual behavior

Sending and receiving work correctly, but an "Error while running background job" message is sent.
Mail_Error_while_running_background_job.txt

Mail app version

3.5.0

Mailserver or service

Gmail and Free

Operating system

Raspbian 11 bullseye

PHP engine version

PHP 8.1

Web server

Apache (supported)

Database

MariaDB

Additional info

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing Mail_Error_while_running_background_job.txt and reproducing the background-job error with Mail 3.5.0 on PHP 8.1. Trace the Quota::__construct() call that receives the float limit, then verify that sending and receiving no longer produce the error and add or update a regression test if the project provides one.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.