Skip to content

Argument #1 ($uid) must be of type string, int given, #1238

@solracsf

Description

@solracsf

Not sure how to reproduce this.

{
  "reqId": "AVvlAd6br5g7aIjN7MBb",
  "level": 3,
  "time": "2025-10-20T14:24:35+02:00",
  "user": "WB",
  "app": "index",
  "method": "GET",
  "url": "/apps/onlyoffice/ajax/userInfo?userIds=%5B0%5D",
  "message": "OCA\\UserOIDC\\Db\\UserMapper::userExists(): Argument #1 ($uid) must be of type string, int given, called in /var/www/nextcloud/apps/user_oidc/lib/User/Backend.php on line 93 in file '/var/www/nextcloud/apps/user_oidc/lib/Db/UserMapper.php' line 129",
  "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:143.0) Gecko/20100101 Firefox/143.0",
  "version": "30.0.15.1",
  "exception": {
    "Exception": "Exception",
    "Message": "OCA\\UserOIDC\\Db\\UserMapper::userExists(): Argument #1 ($uid) must be of type string, int given, called in /var/www/nextcloud/apps/user_oidc/lib/User/Backend.php on line 93 in file '/var/www/nextcloud/apps/user_oidc/lib/Db/UserMapper.php' line 129",
    "Code": 0,
    "Trace": [
      {
        "file": "/var/www/nextcloud/lib/private/AppFramework/App.php",
        "line": 161,
        "function": "dispatch",
        "class": "OC\\AppFramework\\Http\\Dispatcher",
        "type": "->",
        "args": [
          {
            "__class__": "OCA\\Onlyoffice\\Controller\\EditorController"
          },
          "userInfo"
        ]
      },
      {
        "file": "/var/www/nextcloud/lib/private/Route/Router.php",
        "line": 303,
        "function": "main",
        "class": "OC\\AppFramework\\App",
        "type": "::",
        "args": [
          "OCA\\Onlyoffice\\Controller\\EditorController",
          "userInfo",
          {
            "__class__": "OC\\AppFramework\\DependencyInjection\\DIContainer"
          },
          {
            "_route": "onlyoffice.editor.user_info"
          }
        ]
      },
      {
        "file": "/var/www/nextcloud/lib/base.php",
        "line": 1032,
        "function": "match",
        "class": "OC\\Route\\Router",
        "type": "->",
        "args": [
          "/apps/onlyoffice/ajax/userInfo"
        ]
      },
      {
        "file": "/var/www/nextcloud/index.php",
        "line": 24,
        "function": "handleRequest",
        "class": "OC",
        "type": "::",
        "args": []
      }
    ],
    "File": "/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
    "Line": 146,
    "Previous": {
      "Exception": "TypeError",
      "Message": "OCA\\UserOIDC\\Db\\UserMapper::userExists(): Argument #1 ($uid) must be of type string, int given, called in /var/www/nextcloud/apps/user_oidc/lib/User/Backend.php on line 93",
      "Code": 0,
      "Trace": [
        {
          "file": "/var/www/nextcloud/apps/user_oidc/lib/User/Backend.php",
          "line": 93,
          "function": "userExists",
          "class": "OCA\\UserOIDC\\Db\\UserMapper",
          "type": "->",
          "args": [
            0
          ]
        },
        {
          "file": "/var/www/nextcloud/lib/private/User/Manager.php",
          "line": 147,
          "function": "userExists",
          "class": "OCA\\UserOIDC\\User\\Backend",
          "type": "->",
          "args": [
            0
          ]
        },
        {
          "file": "/var/www/nextcloud/apps/onlyoffice/lib/Controller/EditorController.php",
          "line": 483,
          "function": "get",
          "class": "OC\\User\\Manager",
          "type": "->",
          "args": [
            0
          ]
        },
        {
          "file": "/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
          "line": 208,
          "function": "userInfo",
          "class": "OCA\\Onlyoffice\\Controller\\EditorController",
          "type": "->",
          "args": [
            [
              0
            ]
          ]
        },
        {
          "file": "/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
          "line": 114,
          "function": "executeController",
          "class": "OC\\AppFramework\\Http\\Dispatcher",
          "type": "->",
          "args": [
            {
              "__class__": "OCA\\Onlyoffice\\Controller\\EditorController"
            },
            "userInfo"
          ]
        },
        {
          "file": "/var/www/nextcloud/lib/private/AppFramework/App.php",
          "line": 161,
          "function": "dispatch",
          "class": "OC\\AppFramework\\Http\\Dispatcher",
          "type": "->",
          "args": [
            {
              "__class__": "OCA\\Onlyoffice\\Controller\\EditorController"
            },
            "userInfo"
          ]
        },
        {
          "file": "/var/www/nextcloud/lib/private/Route/Router.php",
          "line": 303,
          "function": "main",
          "class": "OC\\AppFramework\\App",
          "type": "::",
          "args": [
            "OCA\\Onlyoffice\\Controller\\EditorController",
            "userInfo",
            {
              "__class__": "OC\\AppFramework\\DependencyInjection\\DIContainer"
            },
            {
              "_route": "onlyoffice.editor.user_info"
            }
          ]
        },
        {
          "file": "/var/www/nextcloud/lib/base.php",
          "line": 1032,
          "function": "match",
          "class": "OC\\Route\\Router",
          "type": "->",
          "args": [
            "/apps/onlyoffice/ajax/userInfo"
          ]
        },
        {
          "file": "/var/www/nextcloud/index.php",
          "line": 24,
          "function": "handleRequest",
          "class": "OC",
          "type": "::",
          "args": []
        }
      ],
      "File": "/var/www/nextcloud/apps/user_oidc/lib/Db/UserMapper.php",
      "Line": 129
    },
    "message": "OCA\\UserOIDC\\Db\\UserMapper::userExists(): Argument #1 ($uid) must be of type string, int given, called in /var/www/nextcloud/apps/user_oidc/lib/User/Backend.php on line 93 in file '/var/www/nextcloud/apps/user_oidc/lib/Db/UserMapper.php' line 129",
    "exception": [],
    "CustomMessage": "OCA\\UserOIDC\\Db\\UserMapper::userExists(): Argument #1 ($uid) must be of type string, int given, called in /var/www/nextcloud/apps/user_oidc/lib/User/Backend.php on line 93 in file '/var/www/nextcloud/apps/user_oidc/lib/Db/UserMapper.php' line 129"
  },
  "id": "68f92c53dc09a"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions