nextcloud / nextcloud/server

[Bug]: Array to string conversion at /app/www/public/3rdparty/doctrine/dbal/src/Driver/PDO/Statement.php#48

Open
#58,732 2 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

0. Needs triage 33-feedback bug high
Dominant language
PHP
Stars
36.9k
Forks
5.2k
Avg merge
2d 3h
Merged PRs (30d)
713

Description

⚠️ This issue respects the following points: ⚠️
Bug description

Calling the general administration ui produces this warning in the log Array to string conversion at /app/www/public/3rdparty/doctrine/dbal/src/Driver/PDO/Statement.php#48 and leaves the docker container at 100% cpu utilization

Steps to reproduce
  1. Call the server-wide administration overview.
  2. Happens now and then - not reproducable
Expected behavior

Normal CPU util

Nextcloud Server version

33

Operating system

Other

PHP engine version

PHP 8.4

Web server

Nginx

Database engine version

MariaDB

Is this bug present after an update or on a fresh install?

None

Are you using the Nextcloud Server Encryption module?

Encryption is Disabled

What user-backends are you using?
  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other
Configuration report
{
    "system": {
        "memcache.local": "\\OC\\Memcache\\APCu",
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "192.168.1.204",
            "nextcloud.walzer.me"
        ],
        "dbtype": "mysql",
        "version": "33.0.0.16",
        "trusted_proxies": "***REMOVED SENSITIVE VALUE***",
        "overwrite.cli.url": "https:\/\/nextcloud.walzer.me",
        "overwritehost": "nextcloud.walzer.me",
        "overwriteprotocol": "https",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "maintenance": false,
        "maintenance_window_start": 9,
        "theme": "",
        "loglevel": 2,
        "updater.release.channel": "stable",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpmode": "smtp",
        "mail_sendmailmode": "smtp",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpauthtype": "LOGIN",
        "mail_smtpauth": 1,
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "587",
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "default_language": "de",
        "default_locale": "de_AT",
        "default_phone_region": "AT",
        "app_install_overwrite": {
            "0": "files_mindmap",
            "1": "richdocuments",
            "3": "files_trackdownloads",
            "4": "files_antivirus",
            "5": "fulltextsearch",
            "6": "fulltextsearch_elasticsearch",
            "7": "files_fulltextsearch",
            "8": "geoblocker"
        },
        "0": {
            "preview_max_x": "2048",
            "preview_max_y": "2048",
            "jpeg_quality": "60"
        },
        "filelocking.enabled": "true",
        "memcache.locking": "\\OC\\Memcache\\APCu",
        "upgrade.disable-web": true,
        "forbidden_filename_basenames": [
            "con",
            "prn",
            "aux",
            "nul",
            "com0",
            "com1",
            "com2",
            "com3",
            "com4",
            "com5",
            "com6",
            "com7",
            "com8",
            "com9",
            "com\u00b9",
            "com\u00b2",
            "com\u00b3",
            "lpt0",
            "lpt1",
            "lpt2",
            "lpt3",
            "lpt4",
            "lpt5",
            "lpt6",
            "lpt7",
            "lpt8",
            "lpt9",
            "lpt\u00b9",
            "lpt\u00b2",
            "lpt\u00b3"
        ],
        "forbidden_filename_characters": [
            "<",
            ">",
            ":",
            "\"",
            "|",
            "?",
            "*",
            "\\",
            "\/"
        ],
        "forbidden_filename_extensions": [
            " ",
            ".",
            ".filepart",
            ".part"
        ]
    }
}
List of activated Apps
Enabled:
  - activity: 6.0.0-dev.0
  - app_api: 33.0.0
  - bruteforcesettings: 6.0.0-dev.0
  - circles: 33.0.0
  - cloud_federation_api: 1.17.0
  - comments: 1.23.0
  - contactsinteraction: 1.14.1
  - dashboard: 7.13.0
  - dav: 1.36.0
  - federatedfilesharing: 1.23.0
  - federation: 1.23.0
  - files: 2.5.0
  - files_antivirus: 6.1.0
  - files_automatedtagging: 4.0.0
  - files_downloadlimit: 5.1.0-dev.0
  - files_external: 1.25.1
  - files_fulltextsearch: 33.0.0
  - files_pdfviewer: 6.0.0-dev.0
  - files_reminders: 1.6.0
  - files_retention: 4.0.0
  - files_sharing: 1.25.2
  - files_trashbin: 1.23.0
  - files_versions: 1.26.0
  - firstrunwizard: 6.0.0-dev.0
  - fulltextsearch: 33.0.0
  - fulltextsearch_elasticsearch: 33.0.0
  - geoblocker: 0.5.19
  - groupfolders: 21.0.6
  - logreader: 6.0.0
  - lookup_server_connector: 1.21.0
  - nextcloud_announcements: 5.0.0
  - notes: 4.13.0
  - notifications: 6.0.0
  - oauth2: 1.21.0
  - password_policy: 5.0.0-dev.0
  - photos: 6.0.0-dev.0
  - previewgenerator: 5.13.0
  - privacy: 5.0.0-dev.0
  - profile: 1.2.0
  - provisioning_api: 1.23.0
  - recognize: 11.0.1
  - recommendations: 6.0.0-dev.0
  - related_resources: 4.0.0-dev.0
  - richdocuments: 10.1.0
  - serverinfo: 5.0.0-dev.0
  - settings: 1.16.0
  - sharebymail: 1.23.0
  - support: 5.0.0
  - survey_client: 5.0.0-dev.0
  - suspicious_login: 11.0.0-dev.0
  - systemtags: 1.23.0
  - text: 7.0.0-dev.3
  - theming: 2.8.0
  - twofactor_backupcodes: 1.22.0
  - twofactor_totp: 15.0.0-dev.0
  - user_status: 1.13.0
  - viewer: 6.0.0-dev.0
  - weather_status: 1.13.0
  - webhook_listeners: 1.5.0
  - whiteboard: 1.5.7
  - workflowengine: 2.15.0
Disabled:
  - admin_audit: 1.23.0
  - encryption: 2.21.0
  - extract: 1.3.6 (installed 1.3.6)
  - files_rightclick: 1.6.0 (installed 1.6.0)
  - ransomware_protection: 1.14.0 (installed 1.14.0)
  - twofactor_nextcloud_notification: 7.0.0
  - updatenotification: 1.23.0 (installed 1.17.0)
  - user_ldap: 1.24.0
  - user_usage_report: 4.0.0 (installed 4.0.0)
Nextcloud Signing status
No errors have been found.
Nextcloud Logs
Warnung
PHP
Array to string conversion at /app/www/public/3rdparty/doctrine/dbal/src/Driver/PDO/Statement.php#48

05.03.2026, 05:31:52

Warnung
PHP
Array to string conversion at /app/www/public/3rdparty/doctrine/dbal/src/Driver/PDO/Statement.php#48

05.03.2026, 05:31:52

Fehler
PHP
Maximum execution time of 3600 seconds exceeded at /app/www/public/lib/private/AppFramework/Middleware/CompressionMiddleware.php#66

05.03.2026, 04:52:44

Fehler
PHP
Maximum execution time of 3600 seconds exceeded at /app/www/public/lib/private/AppFramework/Middleware/CompressionMiddleware.php#66

05.03.2026, 04:52:44

Fehler
PHP
Maximum execution time of 3600 seconds exceeded at /app/www/public/lib/private/AppFramework/Middleware/CompressionMiddleware.php#66

05.03.2026, 04:52:44

Fehler
PHP
Maximum execution time of 3600 seconds exceeded at /app/www/public/lib/private/AppFramework/Middleware/CompressionMiddleware.php#66

05.03.2026, 04:52:44

Fehler
PHP
Maximum execution time of 3600 seconds exceeded at /app/www/public/lib/private/AppFramework/Middleware/CompressionMiddleware.php#66
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 with 3rdparty/doctrine/dbal/src/Driver/PDO/Statement.php at line 48, then trace the queries and parameters triggered by the server-wide administration overview. Use the reported PHP warnings and maximum-execution-time errors to identify the intermittent path; done means the warning and runaway CPU behavior no longer occur during the overview request.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, mariadb, nginx, php
Domain
backend, database, performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.