Circular reference detected because of EntityTypeInfo

Created on 5 October 2023, about 1 year ago
Updated 11 November 2023, about 1 year ago

Problem/Motivation

There is a loop if a service needs the current User as an argument.

Steps to reproduce

Install Restrict by IP with composer and Lenient on D10.

Proposed resolution

Remove the unused variable of the current user in Drupal\content_moderation\EntityTypeInfo. Its usage was removed in a Drupal 8 version.

Remaining tasks

Make sure nothing calls the class Drupal\content_moderation\EntityTypeInfo with the current user as an argument.
I'm currently running a site with this patch for 2 months and had no issues.

🐛 Bug report
Status

Needs work

Version

11.0 🔥

Component
Content moderation 

Last updated 20 days ago

Created by

🇨🇭Switzerland sraLton

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024