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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

JoshaHubbers created an issue. See original summary.

JoshaHubbers’s picture

This adds the patch to field_collections.

  • JoshaHubbers authored 085e563 on 7.x-1.x
    Issue #3231931 by JoshaHubbers: Sections are not correctly handled on...
JoshaHubbers’s picture

Status: Active » Fixed

Tested on several sites. The patch works as expected.

JoshaHubbers’s picture

Issue summary: View changes
JoshaHubbers’s picture

This 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.

JoshaHubbers’s picture

Issue summary: View changes

Status: Fixed » Closed (fixed)

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