Skip to content

Bug: Importing entries with matrix in matrix fails, even if import is set to not import any matrix fields. #1617

@ZapaNOR

Description

@ZapaNOR

Description

I have an entry type that contains a matrix field, with a sub matrix field (matrix in matrix).
This field is not set to be imported at all, and the Feed Me mapping just says "matrix in matrix is not currently supported" anyways.

But, trying to import any entries will give the error:
foreach() argument must be of type array|object, null given - Matrix.php: 284.

Image
Image

It seems Feed Me somehow "checks" or tries to do something with this matrix field anyways, and throws an error without importing any data.

Removing the matrix field, and resaving the import fixes the problem and entries are imported correctly.

Steps to reproduce

  1. Create entry with matrix in matrix field.
  2. Set up import to create entries, just as simple sa importing with title.

Additional info

  • Craft version: 5.6.13
  • Plugins & versions: Feed Me - 6.8.0

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions