Closed (fixed)
Project:
Image Widget Crop
Version:
3.0.x-dev
Component:
User interface
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
2 Dec 2024 at 09:37 UTC
Updated:
19 Sep 2025 at 20:04 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #3
omarlopesinoI've created a MR that fixes the problem. Please review, thanks!
Comment #5
mably commentedHit by the same problem, can confirm that the contributed patch fixes the problem, thanks!
Comment #6
opiWorks well with D11.1.1 + IWC dev-2.x 2f10025 , thanks.
Comment #7
joegraduateClosed #3496678: ImmutableConfigException as a duplicate of this issue. Ideally this should be fixed in 3.0.x-dev first but also backported to 8.x-2.x. @sweetchuck contributed to the closed issue and should also be credited here.
Comment #8
webmestre commentedHello,
the 3.0.x-dev version also produces:
I'm using the 11.1.2 Drupal version
Comment #9
joegraduateIncreasing priority to major since it is impossible to save module config currently.
Comment #10
anschinsan commentedFix it by getting settings editable
Comment #11
natefollmer commentedPath issue with previous patch that caused patching to fail. I've fixed the paths. This one should work. I can now save settings after applying this patch.
Comment #13
anup.singh commentedLatest patch are working and it seems to be correct approach, So update the MR with same.
Comment #15
joelpittetJust ran into this, thanks for putting this together, hopefully this can be merged soon.
Comment #16
solideogloria commented+1 please merge.
Comment #17
jesss commentedThe MR works for me. I hope this gets merged soon -- this module is unusable without it.
Comment #18
phenaproximaI'm going to merge this to get people unblocked, even though the bug itself is due to a preexisting, incorrect pattern -- you are never supposed to inject a config object into a form (or any class) as a dependency.
The correct pattern would be for the form to override the
getEditableConfigNames()method, and use$this->config()internally to load config. Core will guarantee that it gets editable versions of anything listed ingetEditableConfigNames().Merging this on the good-faith assumption that some kindly person will open a follow-up issue in which to do that cleanup.
Comment #19
phenaproximaThe merge train has now left the station! Should be committed shortly when all tests pass.
Comment #22
joelpittetThanks a bunch @phenaproxima created that follow-up #3545190: Refactor form to use $this->config() instead of injecting config