-
|
A client is struggling with an issue where entries in a nested Matrix field intermittently disappear as they're editing content. The setup: This is a single-site build, with a section called "Trips". Trip entries have a Matrix field "Programs", which uses the Cards view mode and has a single entry type "Program". Nested program entries have a Matrix field called "Program Content Blocks". This field uses the inline-editable blocks view mode. As per the client, what happens is that sometimes after they edit and save a "Trip" entry, some of the previously saved/published nested entries in the "Program Content Blocks" field in some of the nested "Program" entries, will disappear. Details are scarce at this point and I'm unable to reproduce, so it's unclear if this is a workflow issue or an actual bug (and if so, what the prerequisite actions/circumstances are to trigger that bug) – so I'm holding off on creating an issue until I feel more confident one way or the other. But: In investigating a "Trip" entry where this had occurred, I realised the following by comparing revisions and looking at the affected (nested) entries in the database, and I'm looking for some guidance in trying to figure out what actually happened:
One additional fact:
If we believe the client that they did not copy/paste/delete/do anything weird to the original "Program", but simply double-clicked it to edit it in its slideout, and then saved the root owner "Trip" entry, then I'm left with the following questions: - In what circumstances, if any, will an existing nested entry be assigned a new ID in the Aside from those questions: for further debugging, I'd appreciate any advice or guidance in terms of what I should look for, where I should look, specific questions to ask the client, etc. to try and figure this one out and ideally, reproduce. The client is essentially saying "I saved the trip and some of the content blocks in one of the programs disappeared" 🤷, but as I'm unable to reproduce or even imagine how that could theoretically happen, I'm kinda stumped. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 7 replies
-
That will happen when applying a draft (whether normal or provisional). Any nested Matrix entries that were initially created for the draft will be duplicated for the canonical owner entry. I’m not sure what would prevent the doubly-nested entries from being duplicated along with them, though… |
Beta Was this translation helpful? Give feedback.
-
|
Hi! I'm having a similar issue with a custom element type. It can be probably an error in my side, but I have been struggling to find the root cause and I'm about to surrender. I have a teams element related to address with a nested element manager. I follow some similar examples from the code base (cms user, commerce variants, stripe prices). But anytime a draft team is created, the existing address disappear (after reload) from the list, and get deleted after save. Here is the code (not all, just the related parts). Note that, if I don't provide a |
Beta Was this translation helpful? Give feedback.
-
|
Hello! We've been trying to investigate this problem as well. Unusually it happened after we updated to 5.9.14 on the 3rd of March. It also happened early in Jan but the issue seemed to have been resolved after we updated to 5.9.10 until now. Our situation is very similar to @mmikkel's. Our client was the only user in the CMS at the time and the same "Invalid Element UUID" error message is logged around the time the entries were deleted. If it helps we've included the trace below. A brief description of our setup is that we have two main sections, a Pages and a Components. Both channels share the same content builder matrix field. The matrix builder may contain relations to one or more components. When the error occurs while editing a Page the nested Component's content builder contents go missing. The nesting occurs at multiple levels to allow for things like 'containers' so it is a bit more complex in practice but this is the gist of our setup. Unfortunately it is also a bit hard for us to reproduce but we can provide with further details if needed. Just also adding our 'Component' section contains the Content Builder matrix inside a Content Block. We don't know if this may have something to with it. Screenshot attached for reference.
|
Beta Was this translation helpful? Give feedback.
-
|
For posterity: I was never able to reliably reproduce the deeply-nested entries going missing, but I'm confident that #18461 was the underlying issue in our case, and we haven't had a single case of deeply-nested entries disappearing since updating to Craft 5.9.13 (which included a fix for that bug). |
Beta Was this translation helpful? Give feedback.

For posterity: I was never able to reliably reproduce the deeply-nested entries going missing, but I'm confident that #18461 was the underlying issue in our case, and we haven't had a single case of deeply-nested entries disappearing since updating to Craft 5.9.13 (which included a fix for that bug).