Needs review
Project:
Sites
Version:
1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
24 Jun 2026 at 17:48 UTC
Updated:
25 Jun 2026 at 13:48 UTC
Jump to comment: Most recent
After saving a group type with site settings at /admin/group/types/manage/site, running drush cr triggers a PHP warning:
Undefined array key "environment" in
web/modules/contrib/sites/src/Plugin/Field/FieldType/SiteSettingsFieldItemList.php on line 61Start 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 #3
valegole commentedComment #4
harlor commentedI think if the isset() is false we also want to remove the value.
Comment #5
harlor commentedBtw. This issue occurs if a site provides an environment override for a setting that does not allow that.
Comment #6
valegole commented