Problem/Motivation

When we use slick paragraphs vanilla as a display format for a paragraph referenced in a block and then we try to add that block via layout builder it shows orphaned error, This only happens first time when block is added and if we save the node and then edit the block again on layout builder page it works fine.

Steps to reproduce

  • On fresh Drupal 8 site, install and enable paragraphs, slick, entity_browser, slick_paragraphs module
  • Create a new paragraph as card with a media reference field of type image
  • Choose entity browser as form widget(Create an entity browser first)
  • Now create a block type hero and add a paragraphs as entity reference revision field and select paragraph of type card that you have created above.
  • Go to manage display and select slick paragraphs vanilla as display format and save
  • Now go to lay builder page of node and add hero block, In the preview it is rendered as orphaned

Additional info

  • It only happens with preview when block is first created, if we save the node the error disappears.

Comments

arshadkhan35 created an issue. See original summary.

matt_paz’s picture

I can confirm this behavior as well. slick_entityreference has similar conditions, but slick_paragraphs seems to have better support for edits to existing paragraph entries. It doesn't not happen on other paragraphs not using slick and if the entity formatter is used, it displays expected rendered entity as well.

matt_paz’s picture

Note, I'm seeing this behavior on Drupal 9 with recent patches from #3047022 applied.

vinay15’s picture

IMO, this issue is not because of the Slick Paragraphs Vanilla formatter but due to the Drupal\blazy\Dejavu\BlazyEntityBase, which is extended by this class' parent: Drupal\slick\Plugin\Field\FieldFormatter\SlickEntityFormatterBase

Please see: https://www.drupal.org/project/blazy/issues/3214001

gausarts’s picture

Status: Active » Fixed

Sorry for terrible late reply. I don't seem to monitor this project :)

@Vinay15, thanks.

Feel free to re-open if still an issue as per #3214001: Label is displayed for a newly created Paragraph entity instead of its preview in layout builder.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.