I'm having an issue where, if I edit any matrix content in Live Preview, all matrix content disappears.

When I first open preview, any existing matrix content will display properly, but as soon as I add a new block, or edit the contents of an existing block, all matrix content gets removed from the preview.

This also happens when I edit matrix content before opening live preview -- when I open preview, all matrix content will be gone.

Nothing is deleted from the editor, and when I save, the content remains and displays properly on the front end. It's only in preview where it's an issue.

I'm running Craft 3.7.37, but I've also had the issue with previous versions.

Here's the relevant part of the template:

        {% set content = entry.myMatrixField.all() %}
        {% for block in content %}
            {% include "blocks/_" ~ block.type ignore missing %}
        {% endfor %}
  • Please post the relevant parts of the template that's rendering the matrix blocks, It's likely related to this issue.
    – MoritzLost
    Apr 7 at 10:22
  • I suspect you're running into an issue similar to this one, but it's impossible to help further without more details. Apr 8 at 7:09
  • 1
    @MatsMikkelRummelhoff that was it. Thank you!
    – artmem
    Apr 8 at 18:05

1 Answer 1


Turned out to be related to [this issue].1

In my SEOMatic Content SEO I was setting an image from a matrix block. Changing object.entry.myMatrixField.type... to clone(object.entry.myMatrixField.type... fixed it.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.