Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When i create content type and delete that content type full configuration content_access.settings object is missing. This cause failing of everything.
Comment | File | Size | Author |
---|---|---|---|
#6 | 2868399-content_access-missing-config-6.patch | 1.84 KB | id.tarzanych |
Comments
Comment #2
kmajzlik CreditAttribution: kmajzlik at Ciklum Western Europe for BurdaForward commentedAnd here is my patch which seems to be working.
Comment #3
kmajzlik CreditAttribution: kmajzlik at Ciklum Western Europe for BurdaForward commentedComment #4
kmajzlik CreditAttribution: kmajzlik at Ciklum Western Europe for BurdaForward commentedAfter hours of thinking about bug... Maybe that can be issue for Drupal Core. Deleting unexisting item in config object should not cause deleting of whole object. But after 2 days spent on finding this i have no desire to work on that NOW.
Comment #5
albertski CreditAttribution: albertski at Xeno Media, Inc. commentedI also ran into this issue after removing a content type. I debugged it and found that the content_access.settings.yml file was blank. To fix I just reverted that file to prior the content type deletion and removed the content types gids from the list.
Comment #6
id.tarzanych CreditAttribution: id.tarzanych commentedNot a Core error. It looks that wrong method was used.
Please review my patch
Comment #7
sathish.redcrackle CreditAttribution: sathish.redcrackle at Red Crackle commentedI tested and it works perfectly.
Comment #8
LpSolit CreditAttribution: LpSolit as a volunteer commentedYes, the patch from comment 6 looks correct, per https://api.drupal.org/api/drupal/core%21lib%21Drupal%21Core%21Config%21...
Please commit asap.
Comment #9
kmajzlik CreditAttribution: kmajzlik at Ciklum Western Europe for BurdaForward commented+1 for commit.
Comment #10
fagoThanks, committed.