When saving a content type with paragraphs block used, produces an error – This entity (paragraph: xxx) cannot be referenced.
- Created a custom content type
- Needed to have a paragraph Header Block in place
- Re-used an existing paragraph block used in another content type that serves the purpose
- No error when creating a new item for this content type
- However, when editing/updating the paragraph block of an already existing content item of this type, it produces an error “This entity (paragraph) cannot be referenced.”
Drupal and Modules
Versions used and affected:
- Drupal core 8.9.2
- PHP 7.3.16
- Paragraphs module 8.x-1.12 (Classic widget)
Tests and Research
- https://www.drupal.org/project/paragraphs/issues/2744835
- https://www.drupal.org/project/paragraphs/issues/3082335
- https://www.drupal.org/project/paragraphs/issues/2908451 (with multi-lingual setup)
- https://www.drupal.org/project/paragraphs/issues/2631590 (disabling entity reference revision)
- TEST – switch from Classic widget to Experimental (without the collapsible button/feature) – tested working for admin roles!, for another role with lesser permissions NOT working
- TEST – created a new paragraph, do not re-use existing – untested, but would be the next viable option probably
- Check permissions for the targeted role is correct – permissions on Paragraphs, Nodes, Content, etc.
Workaround / Solution
- Backup database and all relevant folders/directories/files
- Switch from Experimental field widget to classic Paragraphs mode (without the collapsible button/feature) – working for ADMIN role only, despite everything and necessary permissions are checked.
- Seems an outstanding issue for non-admin roles. See issues from Paragraph project page.
- Test updating the paragraph block of an item of this content type, OK!
