Exception Call to undefined method Notifier.php line 68

Hi,

I’ve updated today from AIO 10.1.0 to 10.2.0 including all service containers. Since then, my Log is spammed with messages like this:

{
  "reqId": "NZ15BH4vhJqO1dJYNPS5",
  "level": 3,
  "time": "2025-01-09T01:08:02+00:00",
  "remoteAddr": "x.x.x.x",
  "user": "my-user",
  "app": "no app in context",
  "method": "GET",
  "url": "/ocs/v2.php/apps/notifications/api/v2/notifications",
  "message": "Call to undefined method OC\\AppFramework\\ScopedPsrLogger::logException() in file '/var/www/html/custom_apps/secrets/lib/Notification/Notifier.php' line 68",
  "userAgent": "Mozilla/5.0 (X11; Linux x86_64; rv:133.0) Gecko/20100101 Firefox/133.0",
  "version": "30.0.4.1",
  "exception": {
    "Exception": "Exception",
    "Message": "Call to undefined method OC\\AppFramework\\ScopedPsrLogger::logException() in file '/var/www/html/custom_apps/secrets/lib/Notification/Notifier.php' line 68",
    "Code": 0,
    "Trace": [
      {
        "file": "/var/www/html/lib/private/AppFramework/App.php",
        "line": 161,
        "function": "dispatch",
        "class": "OC\\AppFramework\\Http\\Dispatcher",
        "type": "->",
        "args": [
          {
            "__class__": "OCA\\Notifications\\Controller\\EndpointController"
          },
          "listNotifications"
        ]
      },
      {
        "file": "/var/www/html/lib/private/Route/Router.php",
        "line": 302,
        "function": "main",
        "class": "OC\\AppFramework\\App",
        "type": "::",
        "args": [
          "OCA\\Notifications\\Controller\\EndpointController",
          "listNotifications",
          {
            "__class__": "OC\\AppFramework\\DependencyInjection\\DIContainer"
          },
          {
            "apiVersion": "v2",
            "_route": "ocs.notifications.endpoint.listnotifications"
          }
        ]
      },
      {
        "file": "/var/www/html/ocs/v1.php",
        "line": 43,
        "function": "match",
        "class": "OC\\Route\\Router",
        "type": "->",
        "args": [
          "/ocsapp/apps/notifications/api/v2/notifications"
        ]
      },
      {
        "file": "/var/www/html/ocs/v2.php",
        "line": 7,
        "args": [
          "/var/www/html/ocs/v1.php"
        ],
        "function": "require_once"
      }
    ],
    "File": "/var/www/html/lib/private/AppFramework/Http/Dispatcher.php",
    "Line": 146,
    "Previous": {
      "Exception": "Error",
      "Message": "Call to undefined method OC\\AppFramework\\ScopedPsrLogger::logException()",
      "Code": 0,
      "Trace": [
        {
          "file": "/var/www/html/lib/private/Notification/Manager.php",
          "line": 337,
          "function": "prepare",
          "class": "OCA\\Secrets\\Notification\\Notifier",
          "type": "->",
          "args": [
            {
              "__class__": "OC\\Notification\\Notification"
            },
            "de"
          ]
        },
        {
          "file": "/var/www/html/apps/notifications/lib/Controller/EndpointController.php",
          "line": 103,
          "function": "prepare",
          "class": "OC\\Notification\\Manager",
          "type": "->",
          "args": [
            {
              "__class__": "OC\\Notification\\Notification"
            },
            "de"
          ]
        },
        {
          "file": "/var/www/html/lib/private/AppFramework/Http/Dispatcher.php",
          "line": 208,
          "function": "listNotifications",
          "class": "OCA\\Notifications\\Controller\\EndpointController",
          "type": "->",
          "args": [
            "v2"
          ]
        },
        {
          "file": "/var/www/html/lib/private/AppFramework/Http/Dispatcher.php",
          "line": 114,
          "function": "executeController",
          "class": "OC\\AppFramework\\Http\\Dispatcher",
          "type": "->",
          "args": [
            {
              "__class__": "OCA\\Notifications\\Controller\\EndpointController"
            },
            "listNotifications"
          ]
        },
        {
          "file": "/var/www/html/lib/private/AppFramework/App.php",
          "line": 161,
          "function": "dispatch",
          "class": "OC\\AppFramework\\Http\\Dispatcher",
          "type": "->",
          "args": [
            {
              "__class__": "OCA\\Notifications\\Controller\\EndpointController"
            },
            "listNotifications"
          ]
        },
        {
          "file": "/var/www/html/lib/private/Route/Router.php",
          "line": 302,
          "function": "main",
          "class": "OC\\AppFramework\\App",
          "type": "::",
          "args": [
            "OCA\\Notifications\\Controller\\EndpointController",
            "listNotifications",
            {
              "__class__": "OC\\AppFramework\\DependencyInjection\\DIContainer"
            },
            {
              "apiVersion": "v2",
              "_route": "ocs.notifications.endpoint.listnotifications"
            }
          ]
        },
        {
          "file": "/var/www/html/ocs/v1.php",
          "line": 43,
          "function": "match",
          "class": "OC\\Route\\Router",
          "type": "->",
          "args": [
            "/ocsapp/apps/notifications/api/v2/notifications"
          ]
        },
        {
          "file": "/var/www/html/ocs/v2.php",
          "line": 7,
          "args": [
            "/var/www/html/ocs/v1.php"
          ],
          "function": "require_once"
        }
      ],
      "File": "/var/www/html/custom_apps/secrets/lib/Notification/Notifier.php",
      "Line": 68
    },
    "message": "Call to undefined method OC\\AppFramework\\ScopedPsrLogger::logException() in file '/var/www/html/custom_apps/secrets/lib/Notification/Notifier.php' line 68",
    "exception": [],
    "CustomMessage": "Call to undefined method OC\\AppFramework\\ScopedPsrLogger::logException() in file '/var/www/html/custom_apps/secrets/lib/Notification/Notifier.php' line 68"
  },
  "id": "677f2179b96ea"
}

Suggests it’s related to the app called secrets. Perhaps this:

2 Likes

Thank you, @jtr, you’re right. After removing the app for testing purposes, the messages stopped.

I’ll follow the mentioned Github issue :+1:

Solved :white_check_mark:

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.