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.
Updated: Comment #0
Problem/Motivation
Attempting to delete a field from the instance-edit page results in a Fatal error:
Fatal error: Cannot use object of type Drupal\field\Entity\FieldInstance as array in /var/www/d8/core/modules/field_ui/lib/Drupal/field_ui/Form/FieldInstanceEditForm.php on line 204
Proposed resolution
Fix it
Remaining tasks
Reviews
User interface changes
None
API changes
None
Related Issues
#1953408: Remove ArrayAccess BC layer from field config entities
Test patch coming
Comment | File | Size | Author |
---|---|---|---|
#4 | interdiff.txt | 758 bytes | larowlan |
#4 | field-instance-delete-2110779.2.patch | 1.95 KB | larowlan |
#1 | delete-instance.fail_.patch | 1.06 KB | larowlan |
#1 | instance-delete.pass_.patch | 1.94 KB | larowlan |
Comments
Comment #1
larowlanSimpletest playing up locally, hoping for red/green here but might need to use 301 in test instead of 200.
Regardless, its a 500 now.
Comment #3
larowlanmeh its drupalPostForm now
Comment #4
larowlanthis time?
Comment #5
amateescu CreditAttribution: amateescu commentedLooks good.
Comment #6
alexpottCommitted 9afeeb2 and pushed to 8.x. Thanks!