- Issue created by @jurgenhaas
- Merge request !20Issue #3414702: Undefined array key "..." DynamicEntityReferenceItem.php:759 → (Merged) created by jurgenhaas
- Status changed to Needs review
11 months ago 9:51am 15 January 2024 - First commit to issue fork.
-
jurgenhaas →
committed 2d963d8d on 3.x
Issue #3414702: Undefined array key "..." DynamicEntityReferenceItem.php...
-
jurgenhaas →
committed 2d963d8d on 3.x
-
larowlan →
committed f3309730 on 4.x authored by
jurgenhaas →
Issue #3414702: Undefined array key "..." DynamicEntityReferenceItem.php...
-
larowlan →
committed f3309730 on 4.x authored by
jurgenhaas →
- Status changed to Fixed
11 months ago 9:08pm 15 January 2024 - 🇦🇺Australia larowlan 🇦🇺🏝.au GMT+10
Thanks, seems harmless to add.
I think this likely indicates your config might be corrupt
- 🇬🇧United Kingdom Eli-T Manchester
Just to add we saw this after upgrading to Drupal 10.2.2.
Moving from DER 3.1.0 to dev branch fixes the issue.
I am sceptical this happened because of corrupt config for the field, because if I create a duplicate field with the same options, the exported configuration is identical (except for field name etc).
If it's of interest, the configuration is publicly visible at
https://github.com/ministryofjustice/prisoner-content-hub-backend/blob/m...
https://github.com/ministryofjustice/prisoner-content-hub-backend/blob/m...
https://github.com/ministryofjustice/prisoner-content-hub-backend/blob/m... - 🇨🇦Canada aarantes
Got virtually the same issue when upgrading to Drupal 10.2.2
Using DER 3.1.0
In my case, I get this during the upgrade itself (composer) but also running (drush updb, drush cex, and drush cr)[warning] Undefined array key "target_type" EntityReferenceItem.php:778 [warning] Undefined array key "handler_settings" EntityReferenceItem.php:779 [warning] Undefined array key "target_type" EntityReferenceItem.php:778 [warning] Undefined array key "handler_settings" EntityReferenceItem.php:779 [warning] Undefined array key "target_type" EntityReferenceItem.php:778 [warning] Undefined array key "handler_settings" EntityReferenceItem.php:779 [warning] Undefined array key "target_type" EntityReferenceItem.php:778 [warning] Undefined array key "handler_settings" EntityReferenceItem.php:779 [warning] Undefined array key "target_type" EntityReferenceItem.php:778 [warning] Undefined array key "handler_settings" EntityReferenceItem.php:779 [warning] Undefined array key "target_type" EntityReferenceItem.php:778 [warning] Undefined array key "handler_settings" EntityReferenceItem.php:779 [warning] Undefined array key "target_type" EntityReferenceItem.php:778 [warning] Undefined array key "handler_settings" EntityReferenceItem.php:779 [warning] Undefined array key "target_type" EntityReferenceItem.php:778 [warning] Undefined array key "handler_settings" EntityReferenceItem.php:779 [warning] Undefined array key "target_type" EntityReferenceItem.php:778 [warning] Undefined array key "handler_settings" EntityReferenceItem.php:779 [warning] Undefined array key "target_type" EntityReferenceItem.php:778 [warning] Undefined array key "handler_settings" EntityReferenceItem.php:779
- 🇺🇸United States DamienMcKenna NH, USA
An equivalent patch for anyone using v3.1.0.
- 🇦🇺Australia larowlan 🇦🇺🏝.au GMT+10
FYI we'll have a new release out when 📌 For 10.2 and above the logic to prevent field hooks relating to selection needs to target a different hook Active is fixed for 4.x
It has been merged into 3.x so its not far off.
Thanks for your patience - 🇺🇸United States DamienMcKenna NH, USA
FYI on our site we ran into this because of Build Hooks.. still trying to track it down.
- 🇦🇺Australia larowlan 🇦🇺🏝.au GMT+10
Ah so base fields perhaps?
Either way, there's a new release out with this in it, please upgrade and report back 👍️
- 🇺🇸United States DamienMcKenna NH, USA
Thank you. Yes, the new stable release appears to have resolved the problem.
- 🇨🇦Canada aarantes
Yes, my problem disappeared when I installed DER 3.2.0
Thanks. Automatically closed - issue fixed for 2 weeks with no activity.