Fix deprecated services

Created on 18 August 2020, over 4 years ago
Updated 20 January 2023, about 2 years ago

Problem/Motivation

The Service "user.private_tempstore" is deprecated for Drupal 9.x and must be replaced with the new Service "tempstore.private".

Steps to reproduce

Use Drupal core 9.x, enable the module and will see a php error

Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException: You have requested a non-existent service "user.private_tempstore". in Drupal\Component\DependencyInjection\Container->get() (line 151 of /app/web/core/lib/Drupal/Component/DependencyInjection/Container.php).

Proposed resolution

Replace deprecated Service.

🐛 Bug report
Status

Fixed

Version

3.2

Component

Code

Created by

🇬🇷Greece TheodorosPloumis Greece

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024