Skip to content

[6.x] Adding set in nested Replicator causes "Something went wrong" #13687

Description

@o1y

Bug description

When working with a nested Replicator field, attempting to add a new set inside the nested Replicator causes the publish form to crash with a generic "Something went wrong" error.

This might be related to overlapping set handles, but I haven’t been able to fully confirm this yet.

I've attached the relevant replicator / blueprint configuration to make the issue reproducible.

page.zip

Image

How to reproduce

  1. Add the provided blueprint / fieldset configuration
  2. Add an entry using this blueprint
  3. Try to add a new set inside the nested Replicator

Logs

local.ERROR: Cannot find Replicator field [page_builder.article.bard_field.cards.attrs.values.cards] {"userId":"***","exception":"[object] (Exception(code: 0): Cannot find Replicator field [page_builder.article.bard_field.cards.attrs.values.cards] at /**/src/Http/Controllers/CP/Fieldtypes/ReplicatorSetController.php:97)
[stacktrace]
#0 /**/src/Http/Controllers/CP/Fieldtypes/ReplicatorSetController.php(32): Statamic\\Http\\Controllers\\CP\\Fieldtypes\\ReplicatorSetController->getReplicatorField(Object(Statamic\\Fields\\Blueprint), 'page_builder.ar...')

Environment

v6.0.0-beta.6

Installation

Fresh statamic/statamic site via CLI

Additional details

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions