May be a field collect field issue, but figure features should not be exporting an entity anyway.

      'default_value' => array(
        0 => array(
          'entity' => { // this line
            "item_id" : null,
            "field_name" : "field_name",
            "field_name_amount" : { "und" : [ { "value" : "1" } ] },
            "field_name_type" : { "und" : [] }
          }, // and line
        ),
      ),

Comments

mh86’s picture

I can confirm this problem when using a field collection with the embedded widget.

mh86’s picture

Project: Features » Entity API
Component: Code » Code - misc

Moving this bug report to the Entity API module, as it is responsible for the export code.

amitaibu’s picture

Subscribe

Ciraxis’s picture

subscribe

stevector’s picture

This looks like the same bug as #1269750: Exporting a Field Collection field with a default value to Features leads to a PHP parse error

There is discussion in that thread as to whether this is a Features bug or an Entity/Field Collection bug.

hefox’s picture

Status: Active » Closed (duplicate)

Since that one has discussion