[4.x]: Matrix Field can't save new fields
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 3.6k
- Forks
- 705
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 134
Description
What happened?
Description
If I save a Matrix field twice, the new fields are gone.
I've migrated a craft 3 install to craft 4 some time ago and it is very janky.
I have a matrix field which at first glance lets me edit and add new fields. But if I go into the field settings a second time, all new fields are gone.
See here:
Steps to reproduce
- Open the field settings of a matrix field
- Create a new field
- Save
- Open the field again
- The new field is gone
See here: https://somup.com/c0ebl1y5wF
- No error shows up in the logs
- It seems to be only happening in these three fieldtypes
GIPHYYoutubeVideo

When I check craft_matrixblocktypes in the db these fields have a fieldLayoutId value of NULL. Does this have anything to do with it?
Craft CMS version
4.4.3
PHP version
8.8.1
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue with a Matrix field in the reported Craft CMS 4.4.3 migration scenario, focusing on the GIPHY, Youtube, and Video field types. Inspect the saved craft_matrixblocktypes records and their fieldLayoutId values; done means newly created fields remain present after reopening and saving the field settings.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- backend, database
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100
