Skip to content

Call to undefined method OC\\Server::getNavigationManager() #1995

@FelixDefrance

Description

@FelixDefrance

after upgrading to Nextcloud 32, I got a 500 error.

Nextcloud log:

{
  "reqId": "v26sabvMh5obziLcgTzb",
  "level": 3,
  "time": "2025-10-01T20:57:51+00:00",
  "remoteAddr": "xx.xx.xx.xxx",
  "user": "foobar",
  "app": "index",
  "method": "GET",
  "url": "/apps/snappymail/",
  "message": "Call to undefined method OC\\Server::getNavigationManager() in file '/var/www/nextcloud/apps/snappymail/lib/Controller/PageController.php' line 46",
  "userAgent": "Mozilla/5.0 (X11; Linux x86_64; rv:143.0) Gecko/20100101 Firefox/143.0",
  "version": "32.0.0.13",
  "exception": {
    "Exception": "Exception",
    "Message": "Call to undefined method OC\\Server::getNavigationManager() in file '/var/www/nextcloud/apps/snappymail/lib/Controller/PageController.php' line 46",
    "Code": 0,
    "Trace": [
      {
        "file": "/var/www/nextcloud/lib/private/AppFramework/App.php",
        "line": 153,
        "function": "dispatch",
        "class": "OC\\AppFramework\\Http\\Dispatcher",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/private/Route/Router.php",
        "line": 321,
        "function": "main",
        "class": "OC\\AppFramework\\App",
        "type": "::"
      },
      {
        "file": "/var/www/nextcloud/lib/base.php",
        "line": 1061,
        "function": "match",
        "class": "OC\\Route\\Router",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/index.php",
        "line": 25,
        "function": "handleRequest",
        "class": "OC",
        "type": "::"
      }
    ],
    "File": "/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
    "Line": 150,
    "Previous": {
      "Exception": "Error",
      "Message": "Call to undefined method OC\\Server::getNavigationManager()",
      "Code": 0,
      "Trace": [
        {
          "file": "/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
          "line": 204,
          "function": "index",
          "class": "OCA\\SnappyMail\\Controller\\PageController",
          "type": "->"
        },
        {
          "file": "/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
          "line": 118,
          "function": "executeController",
          "class": "OC\\AppFramework\\Http\\Dispatcher",
          "type": "->"
        },
        {
          "file": "/var/www/nextcloud/lib/private/AppFramework/App.php",
          "line": 153,
          "function": "dispatch",
          "class": "OC\\AppFramework\\Http\\Dispatcher",
          "type": "->"
        },
        {
          "file": "/var/www/nextcloud/lib/private/Route/Router.php",
          "line": 321,
          "function": "main",
          "class": "OC\\AppFramework\\App",
          "type": "::"
        },
        {
          "file": "/var/www/nextcloud/lib/base.php",
          "line": 1061,
          "function": "match",
          "class": "OC\\Route\\Router",
          "type": "->"
        },
        {
          "file": "/var/www/nextcloud/index.php",
          "line": 25,
          "function": "handleRequest",
          "class": "OC",
          "type": "::"
        }
      ],
      "File": "/var/www/nextcloud/apps/snappymail/lib/Controller/PageController.php",
      "Line": 46
    },
    "message": "Call to undefined method OC\\Server::getNavigationManager() in file '/var/www/nextcloud/apps/snappymail/lib/Controller/PageController.php' line 46",
    "exception": {},
    "CustomMessage": "Call to undefined method OC\\Server::getNavigationManager() in file '/var/www/nextcloud/apps/snappymail/lib/Controller/PageController.php' line 46"
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions