Problem/Motivation
When using this module version 4.x in on Drupal 9.5.x, I got a circular reference error:
Circular reference detected for service "restrict_by_ip.current_user", path
: "asset.css.collection_optimizer -> asset.css.dumper -> file_system -> log
ger.channel.file -> restrict_by_ip.current_user -> restrict_by_ip.role_fire
wall -> restrict_by_ip.ip_tools". | Comment | File | Size | Author |
|---|
Issue fork restrict_by_ip-3394774
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
stijnstroobantsComment #3
stijnstroobantsComment #4
stijnstroobantsComment #5
darvanenI'm sorry, I don't see what renaming the config property of these classes could possibly have to do with a circular reference to a `recript_by_ip.current_user` service
which is not even defined by this module.I'm postponing this issue pending further explanation and may close later if there is no activity.
[edit: I see that service is actually defined by this module, I missed it the first time around - however the remainder of this comment stands]
Comment #6
bburgI ran into this today. Here's a description provided by Claude Code:
Attached is the patch it came up.
Comment #7
darvanenThanks @bburg I'll take a look
Comment #8
darvanenI've been working on a new major version which includes an architectural overhaul, I'll put the full change in there and release an alpha soon.
Comment #11
darvanen@bburg it turns out the work applied cleanly to 8.x-4.x as well, would you mind trying it out? I'm attaching it as a patch for ease.
Comment #13
darvanenI've committed to 9.x so I can continue with other improvements, awaiting feedback on 8.x-4.x since that's in use on live sites.