Closed leowebguy closed 1 month ago
Getting this error on multiple environments whenever the "hide" label global option is active or inactive.
PHP Warning – [yii\base\ErrorException](https://www.yiiframework.com/doc-2.0/yii-base-errorexception.html) Undefined array key "label"
See: https://github.com/craftcms/cms/issues/15365
1.create a field 2.add to a global set 3.select "hide" label option
No error and config/project should reflect that change.
Applying changes from your project config files ...
updating globalSets.3a69ae7a-a2cc-4b47-80ef-a8353308ad6f.fieldLayouts.ea7ff35d-55b1-459a-8e1b-79a1a38bfd85.tabs.0.elements.0 ... updating globalSets.3a69ae7a-a2cc-4b47-80ef-a8353308ad6f ... error: Undefined array key "label" Failed to execute command php ./craft project-config/apply: exit status 1 Craft CMS version 4.10.5
8.1.16
MySQL 10.4
Blitz 4.19.0 Code Field 4.0.12 Device Detect 2.0.1 Empty Coalesce 4.0.0 Healthfirst Email Me dev-main Healthfirst Guide dev-main Healthfirst Leads dev-main Healthfirst Logs dev-main Healthfirst Mailer dev-main Healthfirst Utils dev-main Hyper 1.1.32 Logs 4.0.1 Lorem Ipsum 1.0.0 Mix Manifest 1.0.3 Navigation 2.0.28 Neo 3.9.11 Redactor 3.1.0 Retour 4.1.18 SEO 4.1.0 Super Table 3.0.14 Table Maker 4.0.11 User Activity 2.4.1
Thanks for reporting, that's been fixed in 2.4.2
Getting this error on multiple environments whenever the "hide" label global option is active or inactive.
See: https://github.com/craftcms/cms/issues/15365
Steps to reproduce
1.create a field 2.add to a global set 3.select "hide" label option
Expected behavior
No error and config/project should reflect that change.
Actual behavior
Applying changes from your project config files ...
updating globalSets.3a69ae7a-a2cc-4b47-80ef-a8353308ad6f.fieldLayouts.ea7ff35d-55b1-459a-8e1b-79a1a38bfd85.tabs.0.elements.0 ... updating globalSets.3a69ae7a-a2cc-4b47-80ef-a8353308ad6f ... error: Undefined array key "label" Failed to execute command php ./craft project-config/apply: exit status 1 Craft CMS version 4.10.5
PHP version
8.1.16
Database type and version
MySQL 10.4
Installed plugins and versions
Blitz 4.19.0 Code Field 4.0.12 Device Detect 2.0.1 Empty Coalesce 4.0.0 Healthfirst Email Me dev-main Healthfirst Guide dev-main Healthfirst Leads dev-main Healthfirst Logs dev-main Healthfirst Mailer dev-main Healthfirst Utils dev-main Hyper 1.1.32 Logs 4.0.1 Lorem Ipsum 1.0.0 Mix Manifest 1.0.3 Navigation 2.0.28 Neo 3.9.11 Redactor 3.1.0 Retour 4.1.18 SEO 4.1.0 Super Table 3.0.14 Table Maker 4.0.11 User Activity 2.4.1