- πΊπΈUnited States dalemoore
Seeing this too.
If you add a paragraph, then view the node, the paragraph will be there. However, if you go into the Layout Builder, it won't be until you save and then reload Layout Builder.
However, if instead you add a paragraph, go into Layout Builder, and revert to default WITHOUT saving, it will actually remove the paragraph you added to the node! So it actually causes data loss if you don't go to the Layout Builder and save immediately after adding a paragraph and decide later to revert to defaults.
- πΊπΈUnited States smustgrave
Upgrading this to a major as I'm experiencing this too.
Added 2 paragraph bundles
Went into layout builder 0 appear
Add to click save layout for any of them to show. - πΊπΈUnited States smustgrave
Wonder if there could be conflicts with the internal_dynamic_cache module of core?
- Assigned to basvredeling
- π³π±Netherlands basvredeling Amsterdam
Yes, this is quite annoying. Thanks for the bug report. I'll have a look.
- @basvredeling opened merge request.
- @basvredeling opened merge request.
- Status changed to Needs review
over 1 year ago 4:26pm 8 May 2023 - π³π±Netherlands basvredeling Amsterdam
- πΊπΈUnited States smustgrave
Sure!
Has anyone figured out those the exact scenario this gets triggered? For me it's random.
- π³π±Netherlands basvredeling Amsterdam
@smustgrave as far as I can tell you should create a node with content moderation enabled. If you do you can pretty easily recreate the problem by adding a paragraph to that node that when that node has either: a) no published revisions at all or b) the latest published revision is not the latest revision.
- Status changed to Needs work
over 1 year ago 6:51pm 9 May 2023 - πΊπΈUnited States smustgrave
So the way I triggered it
Installed internal_dynamic_cache
Created a page with a pargraph block - in draft
Saw the component in layout builder.
Edited the page adding another component but saving as published
In layout builder the new component is missing even with the patch. - π³π±Netherlands basvredeling Amsterdam
I've merged MR 6 because it solves this issue on my end. And I have trouble reproducing this issue as described in #13. As far as I can tell, the alter hooks triggered in \Drupal\Core\Plugin\FilteredPluginManagerTrait::getFilteredDefinitions() are running correctly and this list is not cached in the LayoutPluginManager.
@smustgrave Can you check if the route response is cached on your end? Try to bypass it by overriding the
layout_builder.choose_block
route and setting theno_cache: TRUE
option. - π³π±Netherlands basvredeling Amsterdam
Release 3.1.4 of the paragraph_blocks module contains the fixes in MR6. I'll keep this issue open for the time being for you all to report your findings. Hopefully this issue is fixed despite not dealing with the cache issues.
- πΊπΈUnited States smustgrave
Tested again but still seeing the bug
Create a page with a block, saving as draft
Verified I see blockEdited page adding a new block, saving as draft
Verified I see both blocksEdited page adding a new block, saving as published
Actually only see the first block now, not block 2+3 - π³π±Netherlands basvredeling Amsterdam
@smustgrave I believe the behaviour only occurs if the workflow has been configured incorrectly. Can you please check if the workflow is configured to apply to the content type in question?
- Go to /admin/config/workflow/workflows/manage/editorial (or the workflow your configuring.
- scroll to the This workflow applies to: section.
- check the content type (or other entity type) this workflow needs to apply to.
If that fixes the problem on the latest dev release, we probably need to add this to the readme.
-
basvredeling β
committed fcf49b73 on 3.x
Issue #3346580 by basvredeling: Layout builder blocks do not appear if...
-
basvredeling β
committed fcf49b73 on 3.x
-
basvredeling β
committed fcf49b73 on 4.x
Issue #3346580 by basvredeling: Layout builder blocks do not appear if...
-
basvredeling β
committed fcf49b73 on 4.x
- Status changed to Needs review
over 1 year ago 11:16pm 9 June 2023 - π³π±Netherlands basvredeling Amsterdam
- Status changed to Fixed
over 1 year ago 8:56am 10 June 2023 - π³π±Netherlands basvredeling Amsterdam
Moving these fixes to a release. I've tested use case #16 and was able to reproduce and fix it. Please re-open if issue resurfaces in a different use case.
Thanks all for your contributions.
- Status changed to Fixed
over 1 year ago 9:02am 10 June 2023 - π¨π¦Canada peterhebert
Using release 3.1.8 - issue still exists, I inspected the code, and confirm all of the code changes from this thread are present. I do not have Workflows module installed on the site. I cannot see new paragraphs as blocks in Layout Builder, until I save the layout as well. In addition, paragraphs that have been removed on the Edit form are still appearing in the list of available Paragraph blocks.
- π³π±Netherlands basvredeling Amsterdam
@peterhebert are you using some aggressive caching mechanism?
- Status changed to Active
over 1 year ago 6:57am 6 September 2023 - π³π±Netherlands basvredeling Amsterdam
Re-opened becaused this also resurfaced in 4.x
- Status changed to Postponed: needs info
over 1 year ago 1:59pm 8 September 2023 I'm seeing this same issue. It appears that any paragraphs added after I initially use Layout to place blocks on a node aren't registered with the Paragraph Blocks module and aren't available to be placed from there on out.
- Issue was unassigned.