Description

When a paragraph type can contain itself in one of its fields, Drupal will crash in a PHP memory allocation error when trying to display the form of a content type that contains a field which references the aforementioned paragraph type.

This happens with the default form field settings applied to all fields in the content type and paragraph.

Steps
  1. go to the form display management page of the paragraph that causes the issue
    1. go to structure page
    2. click paragraph types
    3. click the paragraph type that causes the issue
    4. click "manage form display"
  2. edit the form field display settings of the field that contains this same paragraph type
    1. click the cog on the right side of the widget selector
    2. change "edit mode" to "closed"
    3. change "default paragraph type" to "none" or similar
  3. make sure to save
Notes
  • This circular dependency issue may be relevant to entity reference in general, rather than just to paragraphs.

  • The amount of possible field values for any of the involved fields is irrelevant. It currently works fine when set to unlimited (unless a ridiculous amount of values are attempted to be displayed at once, obviously).