Skip to content

Update to NC21 Error: The "Symfony\Component\Translation\PluralizationRules" class is deprecated since Symfony 4.2 #25897

@Dual-0

Description

@Dual-0

Upgrade my Nextcloud installation to 21.0.0. Works good so far but the log throws this error every 30 sek.

{
  "reqId": "8VN6Gbm9FGb1N33UYBUu",
  "level": 3,
  "time": "2021-03-02T21:22:16+01:00",
  "remoteAddr": "myIP",
  "user": "myusername",
  "app": "PHP",
  "method": "GET",
  "url": "/ocs/v2.php/apps/notifications/api/v2/notifications",
  "message": {
    "Exception": "Error",
    "Message": "The \"Symfony\\Component\\Translation\\PluralizationRules\" class is deprecated since Symfony 4.2. at /var/www/nextcloud/3rdparty/symfony/translation/PluralizationRules.php#38",
    "Code": 0,
    "Trace": [
      {
        "function": "onError",
        "class": "OC\\Log\\ErrorHandler",
        "type": "::"
      },
      {
        "file": "/var/www/nextcloud/3rdparty/symfony/translation/PluralizationRules.php",
        "line": 38,
        "function": "trigger_error"
      },
      {
        "file": "/var/www/nextcloud/lib/private/L10N/L10N.php",
        "line": 226,
        "function": "get",
        "class": "Symfony\\Component\\Translation\\PluralizationRules",
        "type": "::"
      },
      {
        "file": "/var/www/nextcloud/lib/private/L10N/L10NString.php",
        "line": 70,
        "function": "OC\\L10N\\{closure}",
        "class": "OC\\L10N\\L10N",
        "type": "->",
        "args": [
          "*** sensitive parameters replaced ***"
        ]
      },
      {
        "file": "/var/www/nextcloud/lib/private/L10N/L10N.php",
        "line": 131,
        "function": "__toString",
        "class": "OC\\L10N\\L10NString",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/private/L10N/LazyL10N.php",
        "line": 57,
        "function": "n",
        "class": "OC\\L10N\\L10N",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/apps/dav/lib/CalDAV/Reminder/Notifier.php",
        "line": 171,
        "function": "n",
        "class": "OC\\L10N\\LazyL10N",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/apps/dav/lib/CalDAV/Reminder/Notifier.php",
        "line": 134,
        "function": "prepareNotificationSubject",
        "class": "OCA\\DAV\\CalDAV\\Reminder\\Notifier",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/apps/dav/lib/CalDAV/Reminder/Notifier.php",
        "line": 117,
        "function": "prepareReminderNotification",
        "class": "OCA\\DAV\\CalDAV\\Reminder\\Notifier",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/private/Notification/Manager.php",
        "line": 299,
        "function": "prepare",
        "class": "OCA\\DAV\\CalDAV\\Reminder\\Notifier",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/apps/notifications/lib/Controller/EndpointController.php",
        "line": 106,
        "function": "prepare",
        "class": "OC\\Notification\\Manager",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
        "line": 218,
        "function": "listNotifications",
        "class": "OCA\\Notifications\\Controller\\EndpointController",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
        "line": 127,
        "function": "executeController",
        "class": "OC\\AppFramework\\Http\\Dispatcher",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/private/AppFramework/App.php",
        "line": 157,
        "function": "dispatch",
        "class": "OC\\AppFramework\\Http\\Dispatcher",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/private/Route/Router.php",
        "line": 302,
        "function": "main",
        "class": "OC\\AppFramework\\App",
        "type": "::"
      },
      {
        "file": "/var/www/nextcloud/ocs/v1.php",
        "line": 63,
        "function": "match",
        "class": "OC\\Route\\Router",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/ocs/v2.php",
        "line": 24,
        "args": [
          "/var/www/nextcloud/ocs/v1.php"
        ],
        "function": "require_once"
      }
    ],
    "File": "/var/www/nextcloud/lib/private/Log/ErrorHandler.php",
    "Line": 92,
    "CustomMessage": "--"
  },
  "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.186 Safari/537.36",
  "version": "21.0.0.18",
  "id": "603e9e7893bdb"
}

Metadata

Metadata

Assignees

Labels

0. Needs triagePending check for reproducibility or if it fits our roadmapbug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions