After running migration the following error occurs when trying to edit an imported node: Fatal error: Call to a member function isNewRevision() on null in core/modules/node/src/NodeForm.php on line 141.

When trying to view the node the following error occurs: Fatal error: Call to a member function displaySubmitted() on null in core/modules/node/node.module on line 606.

Comments

mpp created an issue. See original summary.

mpp’s picture

Title: Call to a member function isNewRevision() on null » Call to a member function isNewRevision() and displaySubmitted() on null
Related issues: +#1876394: You have to specify $node->changed when comment.module is enabled.

Seems like you have to specify $node->changed when comment.module is enabled. (https://www.drupal.org/node/1876394).

heddn’s picture

Project: Migrate Source CSV » Drupal core
Version: 8.x-2.x-dev » 8.2.x-dev
Component: Code » migration system
Priority: Major » Normal

This isn't an issue in the source CSV plugin, but rather how the migration is actually configured. I'm not sure if this is something that can be fixed in the node destination plugin or where, but for now moving it into the right queue.

Seeing there is a work-around (define a 'changed' timestamp), bumping this back down to a normal priority.

mpp’s picture

Assigned: Unassigned » mpp
Status: Active » Fixed
Related issues: +#2452267: Entities can be created programatically without titles or with bogus bundle names

Seems like the real issue here is that I don't have the content type "people" and the error occurs because content can be created without having a valid bundle (people).

Marking this as closed as it is up to d8_custom_migrate to fix this.
See this issue for more: https://github.com/heddn/d8_custom_migrate/issues/2

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.