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] Child blocks disappearing/popping out of parent blocks, especially on cloned or copy/pasted blocks #964

Open
TheFunkyMonk opened this issue Nov 15, 2024 · 6 comments
Labels
bug report status: unconfirmed A bug report that has not yet been reproduced by the maintainer(s), and more information is required bug report

Comments

@TheFunkyMonk
Copy link

Bug Description

We've had 3 separate clients report (as well as been experiencing a lot ourselves) child blocks disappearing or popping out of parent blocks recently, causing errors about blocks not being allowed at top level. Refreshing the entry and saving from there sometimes works, and running garbage collection on the server (per other issue recommendations) does help alleviate the issue for a while, but it keeps coming back. These aren't very complex Neo blocks and generally have only one child block, none with more than 1 level of nesting.

Glad to provide composer files/db backup if it's helpful, but it seems to be happening across the board enough at this point that hopefully it's easily reproducable.

Steps to reproduce

  1. Create a Neo block with a child block
  2. Add content
  3. Clone the block and attempt to save

Expected behaviour

Entry should save and child blocks should stay in parent containers

Neo version

5.2.15

Craft CMS version

5.4.10

What is the affected Neo field's propagation method?

Save blocks to all sites the owner element is saved in

Does this issue involve templating, and if so, is eager-loading used?

This is not a templating issue

@nikolenko-dmitriy
Copy link

nikolenko-dmitriy commented Nov 18, 2024

Having the same trouble. Command ./craft gc/run helps indeed, but for a short period of time only

@ttempleton
Copy link
Contributor

This seems similar to some of the behaviour from #957. Does your Craft project override Craft's autosaveDrafts general config setting?

@nikolenko-dmitriy
Copy link

This seems similar to some of the behaviour from #957. Does your Craft project override Craft's autosaveDrafts general config setting?

@ttempleton In mine project it's not overwritten, the default true value is used

@ttempleton
Copy link
Contributor

Following the resolution of #961 it might be worth running one more gc/run and re-cloning the cloned blocks, and seeing if that resolves this issue as well.

@ttempleton ttempleton added bug report status: unconfirmed A bug report that has not yet been reproduced by the maintainer(s), and more information is required and removed bug report status: new labels Nov 27, 2024
@IrateGod
Copy link

Hi, just wanted to tag along and mention that I've been having the same issue on Craft 4, using Craft 4.9.7 and above, with Neo's version being 4.2.21.

@ttempleton
Copy link
Contributor

If it's happening on Craft 4 as well, then this is probably unrelated to #961. If possible, could someone please send in their composer.json/lock files and database backup to [email protected], along with information about an entry where this is reliably reproducible, and we'll have a look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug report status: unconfirmed A bug report that has not yet been reproduced by the maintainer(s), and more information is required bug report
Projects
None yet
Development

No branches or pull requests

4 participants