Problem/Motivation
After running the comment migration as described in the parent issue, I end up with comments that are not attached to entities. The node types themselves don't end up with any "comment fields" on them. (I'm still new to the D8 comment configuration, so didn't do any pre-configuration of the D8 site, but presume this should work even when done on a fresh D8 install?) If I try to manually edit one of the comments on /admin/content/comment, I get this PHP error:
PHP Fatal error: Call to a member function getSetting() on a non-object in .../core/modules/comment/src/CommentForm.php on line 86
If relevant, the "field_id" column in the D8 comments table for the imported comments is: node__comment
Proposed resolution
Make sure that the comment fields are created before comments are migrated. Hopefully this will fix the unattached comments problem.
Remaining tasks
- Confirm that fix is a good idea
- Implement that fix
Comments
Comment #1
brockfanning CreditAttribution: brockfanning commentedComment #2
benjy CreditAttribution: benjy commentedWould be great if we could test this again? Also, not sure if this could be related #2340401: Fill commented entity during stub comment saving
Comment #3
jcost CreditAttribution: jcost commentedComment #4
mikeryanThis apparently was fixed somewhere along the way.