Problem/Motivation
It is no longer possible to add fields to a content type via the UI. Trying to do so results in
Error: Unsupported operand types in FieldInfo->prepareField() (line 495 of /var/www/html/modules/field/field.info.class.inc).
The website encountered an unexpected error. Please try again later. That issue added a field instance for a comment_body on the comment_node_et content type. The field_id is '54' but there is no such field.
Steps to reproduce
- Drop db from d7 site
- apply patch
- php core/scripts/db-tools.php import --database=d7_dump core/modules/migrate_drupal/tests/fixtures/drupal7.php
- go to d7 site
- clear cache
- go admin/structure/types/manage/article/fields
- add a field, any type will do
- Click 'save'
Proposed resolution
Change the field_id from '54' to '1' for the field_config_instance of 'comment_body' on the 'comment_node_et' content type.
Update FieldDiscoveryTest now that the field will actually be discovered.
Remaining tasks
Patch, Review, Commit
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 3163162-2.patch | 1.35 KB | quietone |
Comments
Comment #2
quietone commentedAnd a fix.
Comment #3
quietone commentedI retested this to be sure.
Note to self: Always test changes to the fixture via the UI.
Comment #4
quietone commentedComment #5
jungleThe changes are made to the test fixture, as the testing passed, it looks good to go, however, would be great to have a manual test following the "Steps to reproduce" in the IS. To me it's optional as @quietone already did in #3 again, so setting to RTBC directly.
Thanks!
Comment #6
jungleForgot changing the status
Comment #7
alexpottApplied the patch to 8.9.x and it passed there so this is relevant for D8 too.
Committed and pushed ef06a015ec to 9.1.x and 70c84d095f to 9.0.x and 010940e479 to 8.9.x. Thanks!