Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ErrorException 'Undefined array key "type"' when Handling Empty set Handles in Replicator Field #9983

Closed
yehor-hromov opened this issue May 2, 2024 · 0 comments · Fixed by #10014

Comments

@yehor-hromov
Copy link

yehor-hromov commented May 2, 2024

Bug description

A critical issue has been identified when working with replicator fields within blueprints. The bug arises when following a specific sequence of actions:

How to reproduce

  1. Create Replicator Field: Begin by creating a replicator field within any blueprint.
  2. Add Set: After creating the replicator field, proceed to add a set to it.
  3. Leave Handle Empty: Within the set, intentionally leave the handle field empty.
  4. Save Blueprint: Save the blueprint after configuring the replicator field and set.
  5. Add Content to Replicator Set: Following the blueprint configuration, add content to the replicator set.
  6. Save Changes: Save the changes made to the replicator set.
  7. Attempt to Load Frontend or Backend: Upon attempting to load either the frontend or backend of the website, or even just reloading the backend interface, the following error occurs: ErrorException: Undefined array key "type"

Logs

No response

Environment

Environment
Application Name: test
Laravel Version: 10.48.10
PHP Version: 8.3.6
Composer Version: 2.4.2
Environment: local
Debug Mode: ENABLED
URL: test.test
Maintenance Mode: OFF

Cache
Config: NOT CACHED
Events: NOT CACHED
Routes: NOT CACHED
Views: CACHED

Drivers
Broadcasting: log
Cache: statamic
Database: mysql
Logs: daily
Mail: smtp
Queue: sync
Session: file

Statamic
Addons: 6
Antlers: runtime
Sites: 1
Stache Watcher: Enabled
Static Caching: Disabled
Version: 4.57.2 PRO

Statamic Addons
alt-design/alt-password-protect: 1.1.2
jacksleight/statamic-bard-texstyle: 3.2.0
rias/statamic-data-import: 1.4.0
ryanmitchell/statamic-translation-manager: 1.5.0
spatie/statamic-responsive-images: 4.1.1
steadfastcollective/statamic-csv-exporter: 2.2.1

Installation

Fresh statamic/statamic site via CLI

Antlers Parser

Runtime (default)

Additional details

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants