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

[5.x]: Error when saving child entry in slideout - "The owner element must be a derivative." #16566

Closed
maxstrebel opened this issue Jan 28, 2025 · 3 comments
Assignees
Labels

Comments

@maxstrebel
Copy link

What happened?

Description

I have a nested Matrix which will throw the error "The owner element must be a derivative." sometimes. It happens when we edit elements in a slideout.

When it occurs, it will prevent us from saving. The only workaround is, to open the slideout content in a new tab and save there. Or to save the owner entry, but this will delete the content of the edited child. Then the element can be edited again. We have several nested Elements (Accordion, Column Text, ...) and it happens on each of them.

While developing locally I think I got it once, but on servd it shows up a lot. To me (admin) and all of the authors.

I could not find a safe way to reproduce it. But I just have to create some nested elements and after some time it will happen.

Steps to reproduce

  1. Create a nested matrix element
  2. In the content, add children, tinker around with editing/saving until it occurs

Expected behavior

No errors should show up when saving nested elements.

Actual behavior

"The owner element must be a derivative." shows up occasionally and prevents saving. Here are two examples:

bug-short.mov
bug-accordion.mov

Craft CMS version

Craft Pro 5.6.1

PHP version

8.3.8

Operating system and version

Linux 6.10.14-linuxkit

Database type and version

MySQL 8.0.36

Image driver and version

Imagick 3.7.0 (ImageMagick 6.9.11-60)

Installed plugins and versions

Asset Rev 8.0.0
Blitz 5.9.9
CKEditor 4.5.0
Code Field 5.0.0
Feed Me 6.6.1
Formie 3.0.19
Navigation 3.0.5
oEmbed 3.1.3
Retcon 3.2.1
Retour 5.0.5
Servd Assets and Helpers 4.0.13
@maxstrebel maxstrebel added the bug label Jan 28, 2025
@brandonkelly
Copy link
Member

The next time you see this, can you please send a database backup and your Composer files over to [email protected] so we can look into it on our end?

@maxstrebel
Copy link
Author

maxstrebel commented Jan 29, 2025

Thanks for the feedback – I sent a backup and my config incl. composer files to support. I now get the error every time – also locally. I also tested Craft 5.6.2.

I could imagine it has to do with the draft.

Steps to reproduce

  1. Add a new matrix entry
  2. Add a new child of the Matrix entry with a Matrix
  3. Create Child Entry
  4. Edit Entry
  5. Save

@i-just i-just self-assigned this Jan 29, 2025
@brandonkelly
Copy link
Member

Craft 5.6.3 is out with a fix for this. Thanks for reporting!

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

No branches or pull requests

3 participants