Found on PHP 8.3 but could arise in earlier versions.
I found this while testing the fix for #2237
If importing a taxonomy vocabulary with field(s), it imports but warnings are shown
Steps To Reproduce
To reproduce the behavior:
Create a taxonomy vocab with a field
Export config
Delete the vocab in the UI
Run import
Actual behavior
Vocab was successfully imported but warnings:
user@machine:~/projects/bee/backdrop$ lando bee config-import
The following config will be imported:
| Config | Status |
| field.bundle.taxonomy_term.test | create |
| field.field.field_test | create |
| field.instance.taxonomy_term.test.field_test | create |
| taxonomy.vocabulary.test | create |
Would you like to continue? (y/N): y
⚠️ Warning: Attempt to read property "weight" on false
in {closure}() (line 1247 of /app/backdrop/core/modules/taxonomy/taxonomy.module).
⚠️ Warning: Attempt to read property "name" on false
in taxonomy_entity_info() (line 126 of /app/backdrop/core/modules/taxonomy/taxonomy.module).
⚠️ Warning: Attempt to read property "weight" on false
in {closure}() (line 1247 of /app/backdrop/core/modules/taxonomy/taxonomy.module).
⚠️ Warning: Attempt to read property "name" on false
in taxonomy_entity_info() (line 126 of /app/backdrop/core/modules/taxonomy/taxonomy.module).
✔ Config was imported to './files/config_1e61159187070230b1449cb58f5770dd/active'.
ℹ 4 files were synced.
Expected behavior
user@machine:~/projects/bee/backdrop$ lando bee config-import
The following config will be imported:
| Config | Status |
| field.bundle.taxonomy_term.test | create |
| field.field.field_test | create |
| field.instance.taxonomy_term.test.field_test | create |
| taxonomy.vocabulary.test | create |
Would you like to continue? (y/N): y
✔ Config was imported to './files/config_1e61159187070230b1449cb58f5770dd/active'.
ℹ 4 files were synced.
Additional information
Add any other information that could help, such as:
I think part of the issue is this file, which doesn't seem to be populated with name. I wonder if this file is redundant as I don't see comparable files for node types.
Description of the bug
Found on PHP 8.3 but could arise in earlier versions. I found this while testing the fix for #2237 If importing a taxonomy vocabulary with field(s), it imports but warnings are shown
Steps To Reproduce
To reproduce the behavior:
Actual behavior
Vocab was successfully imported but warnings:
Expected behavior
Additional information
Add any other information that could help, such as: