Skip to content

[5.x]: When the Content Block field contains a Matrix field, creating a draft results in an error: Attempting to duplicate an element in an unsupported site #18281

@dande-sun

Description

@dande-sun

What happened?

Description

When the Content Block field contains a Matrix field, creating a draft results in an error:
The draft could not be saved.
Attempting to duplicate an element in an unsupported site.

Steps to reproduce

The record screen: https://www.awesomescreenshot.com/video/48581983?key=a149ff40afc09785bf1a5af480e71c84

  1. When the Content Block field contains a Matrix field in entry.
  2. Click the Add a site...
  3. Click the Create a draft

Expected behavior

Create a draft

Actual behavior

Get a Error.
Unsupported site – craft\errors\UnsupportedSiteException
Attempting to duplicate an element in an unsupported site.

Solution.1.1.of.1.entry.-.Entries.-.EN.-.Craft.CMS.5.Test.mp4

Craft CMS version

Craft Solo 5.8.23

PHP version

8.2.19

Operating system and version

Linux 6.6.87.2-microsoft-standard-WSL2

Database type and version

PostgreSQL 15.15

Image driver and version

Imagick 3.7.0 (ImageMagick 7.1.1-13)

Installed plugins and versions

No plugins are enabled.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions