Error in "Mail App " Nextcloud 28.0.5

Nextcloud version (eg, 20.0.5): 28.0.5
Operating system and version (eg, Ubuntu 20.04): Debian 12
Apache or nginx version (eg, Apache 2.4.25): Apache 2.4
PHP version (eg, 7.4): PHP 8.2.18
MariaDB : 11.2.3
The issue you are facing:
Since updating from 28.0.4 to 28.0.5 this error appeared,

Is this the first time you’ve seen this error? YES:

Steps to replicate it:

  1. go to the MAIL tab
  2. go to settings “Overview”
  3. the error is displayed in the log

The output of your Nextcloud log in Admin > Logging:

{"reqId":"bnqqFDYe8WLycx2svRtt","level":3,"time":"2024-04-28T03:12:57+00:00","remoteAddr":"192.168.1.254","user":"Boubou","app":"PHP","method":"GET","url":"/apps/mail/api/accounts/27/test","message":"Optional parameter $knownIds declared before required parameter $partialOnly is implicitly treated as a required parameter at /var/www/nextcloud/apps/mail/lib/Service/Sync/SyncService.php#111","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36","version":"28.0.5.1","data":{"app":"PHP"},"id":"662dc4e05d136"}

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

    "system": {
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "127.0.0.1",
            "nextcloud.datanetwork.cloud",
            "www.nextcloud.datanetwork.cloud"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "28.0.5.1",
        "overwrite.cli.url": "https:\/\/nextcloud.datanetwork.cloud",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "default_phone_region": "FR",
        "htaccess.RewriteBase": "\/",
        "trashbin_retention_obligation": "auto, 30",
        "filelocking.enabled": "true",
        "knowledgebaseenabled": false,
        "activity_expire_days": 7,
        "skeletondirectory": "\/var\/www\/extra_nextcloud\/skeleton\/",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": "0",
            "timeout": "0.0"
        },
        "memcache.distributed": "\\OC\\Memcache\\Redis",
        "memcache.local": "\\OC\\Memcache\\Redis",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "mail_smtpmode": "smtp",
        "mail_smtpsecure": "ssl",
        "mail_sendmailmode": "smtp",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "465",
        "mail_smtpauth": 1,
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "default_language": "fr",
        "default_locale": "fr_FR",
        "updater.release.channel": "stable",
        "maintenance_window_start": 1,
        "maintenance": false,
        "enable_previews": true,
        "enabledPreviewProviders": {
            "1": "OC\\Preview\\BMP",
            "2": "OC\\Preview\\GIF",
            "3": "OC\\Preview\\JPEG",
            "4": "OC\\Preview\\Krita",
            "5": "OC\\Preview\\MarkDown",
            "6": "OC\\Preview\\MP3",
            "7": "OC\\Preview\\OpenDocument",
            "8": "OC\\Preview\\PNG",
            "9": "OC\\Preview\\TXT",
            "10": "OC\\Preview\\XBitmap",
            "11": "OC\\Preview\\Image",
            "12": "OC\\Preview\\HEIC",
            "13": "OC\\Preview\\TIFF",
            "14": "OC\\Preview\\Movie",
            "15": "OC\\Preview\\MP4",
            "16": "OC\\Preview\\PDF"
        },
        "preview_max_x": 1024,
        "preview_max_y": 1024,
        "preview_concurrency_all": 32,
        "preview_concurrency_new": 16,
        "preview_max_filesize_image": 200,
        "preview_max_memory": 1024,
        "preview_ffmpeg_path": "\/usr\/bin\/ffmpeg",
        "theme": "",
        "loglevel": 2,
        "defaultapp": ""

The output of your Apache/nginx/system log in /var/log/____:

No error log in Apache 2.4

I don’t use Nginx with Nextcloud


Output errors in nextcloud.log in /var/www/ or as admin user in top right menu, filtering for errors. Use a pastebin service if necessary.

...
{"reqId":"8iQGvPYXhWOEH9Tj1wga","level":3,"time":"2024-04-27T09:20:27+00:00","remoteAddr":"192.168.1.254","user":"Boubou","app":"PHP","method":"GET","url":"/apps/mail/api/accounts/27/test","message":"Optional parameter $knownIds declared before required parameter $partialOnly is implicitly treated as a required parameter at /var/www/nextcloud/apps/mail/lib/Service/Sync/SyncService.php#111","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36","version":"28.0.5.1","data":{"app":"PHP"}}
{"reqId":"bnqqFDYe8WLycx2svRtt","level":3,"time":"2024-04-28T03:12:57+00:00","remoteAddr":"192.168.1.254","user":"Boubou","app":"PHP","method":"GET","url":"/apps/mail/api/accounts/27/test","message":"Optional parameter $knownIds declared before required parameter $partialOnly is implicitly treated as a required parameter at /var/www/nextcloud/apps/mail/lib/Service/Sync/SyncService.php#111","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36","version":"28.0.5.1","data":{"app":"PHP"}}

Hi
Since the Nextcloud update from 28.0.4 to 28.0.5 this error appeared,
Is there a parameter to configure?

Thank you for your help

1 Like

Just chiming in to say you are not alone :grinning:

Besides us, other users also have the problem and there is already a GitHub issue:

2 Likes

thanks for the information .