php error in cache module, often repeated
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 1k
- Forks
- 348
- Avg merge
- 12h 28m
- Merged PRs (30d)
- 91
Description
Expected behavior
No errors
Actual behavior
Error: Undefined offset: 52 at /var/www/vhosts/sat-chit-ananda.org/owncloud.sat-chit-ananda.org/apps/mail/lib/Cache/Cache.php#143
The offset seems to get counted in a loop, creating many error messages. For each offset value there are 2 errors, one at line 143 and one at line 145.
Mail app
Mail app version: 1.8.0
Mailserver or service: Self hosted - Plesk / Dovecot + Postfix
Server configuration
Operating system: Debian 10
Web server: Nginx
Database: MariaDB
PHP version: 7.4
Nextcloud Version: 20.0.6
Client configuration
Browser: (e.g. Firefox 48)
Operating system: (e.g. Arch Linux)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by inspecting apps/mail/lib/Cache/Cache.php at lines 143 and 145, where the repeated undefined-offset errors are reported. Reproduce the issue with the reported Mail app, PHP, and Nextcloud versions if possible; done means the cache module no longer emits these offset errors repeatedly.
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
- 30/100