Problem/Motivation
When importing a node the sections are not imported.
The error is:
Type php
Location /node/add/task/import
Referrer /node/add/task/import
Message Error: Call to undefined method FieldCollectionItemEntity::__set_state() in eval() (line 225 of /modules/contrib/node_export/formats/drupal.inc(23) : eval()'d code).
Severity error
Operations
Steps to reproduce
Export a task-node with sections filled and import it again.
Proposed resolution
Apply patch in #1924906: FieldCollectionItemEntity::__set_state() seems to fix the problem
This is not the real problem. The real problem at importing nodes with sections is EntityMalformedException: Missing bundle property on entity of type field_collection_item. in entity_extract_ids() .
After further testing the patch in #3230583: EntityMalformedException on import since Drupal 7.79 fixes this problem really, not this patch.
Comments
Comment #2
joshahubbers commentedThis adds the patch to field_collections.
Comment #4
joshahubbers commentedTested on several sites. The patch works as expected.
Comment #5
joshahubbers commentedComment #6
joshahubbers commentedThis patch is not the solution. After further investigation the patch in #3230583: EntityMalformedException on import since Drupal 7.79 fixes this problem really. But that's for the field_collection_deploy module, which is not in the DVG-release. But I mention this here so if you run into this problem, you find how to fix it.
Comment #7
joshahubbers commented