Hi all,

Drupal 8.7.7 or 8.8.0

In /admin/structure/types/manage/treatment/display if I select paragraph summary, my paragraph displays ok on the node but if I select
jquery_ui_accordion the relevant node gives a php error:

InvalidArgumentException: Field is unknown. in Drupal\Core\Entity\ContentEntityBase->getTranslatedField() (line 587 of /data/disk/o1/static/platforms/880-061219/core/lib/Drupal/Core/Entity/ContentEntityBase.php).

I don't have any translations by the way. I have flushed caches and run db updates.

Any ideas please?

Comments

Juc1 created an issue.

janec’s picture

I encountered the same error when I tried to use fields from the entity (paragraph) that had the accordion display settings applied.

There is no error if you use fields from a child entity (paragraph type) in a container entity (paragraph) display settings.

skowyra’s picture

Ran into this on a Drupal 9 site. Placed it into a Custom Block. Tried placing the block through both Layout Builder and Block layout. I do have Translation set up. The custom block will work if not set to display as the Accordion.

Yanivs’s picture

Encountered the same problem and spent 2 hours until I found one of my other paragraph types, that was not supposed to use the format "Paragraphs jQuery UI Accordion", was using it. Changed it to "Rendered" and the problem was solved.

umac_de’s picture

For me was the problem, that I had not set the options for jquery_ui_accordion display

Barsk66’s picture

For me also I hade set the contents setting to wrong value (same as title).When I set the content to the correct field - it worked.