Error : This entity (paragraph: x) cannot be referenced.

Created on 24 May 2021, almost 4 years ago
Updated 3 April 2023, about 2 years ago

When I try to save a node that already exists, I got this error : This entity (paragraph: x) cannot be referenced.

I found an old issue related, but I can not reproduce the solution given due to the lack of specification, can someone help me to understand better the steps needed?

The solutions mentioned ( Solutions proposed already β†’ ) were:
Solution 1-The problem linked to some changes in paragraph configuration.
Solution 2-My issue was I removed the allowed paragraph types on my basic page content type and when I went to resave an existing node that had that now disabled paragraph type I got the error. Reenabling that paragraph type on my basic page content type fixed it.

Thanks

πŸ› Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

πŸ‡ͺπŸ‡ΈSpain manuel.garcia.coosto

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States kiranmayi.acharya

    Tried to follow the solution mentioned above, however it seems to be giving a trouble for our websites.
    https://screenrec.com/share/LjDY6v1oaZ

  • πŸ‡ΊπŸ‡ΈUnited States reshma.i

    In my case, there is already option "Include the selected below" selected and paragraph types are enabled for the content type. I am not able to update the existing content which have more data added into paragraph types.

    I have tried above solution, "Exclude the selected below" and enabled Paragraph types accordingly. but didn't work for me.

    I am getting below error for some contents and many paragraph types when editing content,

    This entity (paragraph: ID) cannot be referenced.

  • Status changed to Active about 2 years ago
  • πŸ‡ΊπŸ‡ΈUnited States reshma.i
  • Status changed to Fixed over 1 year ago
  • πŸ‡ΊπŸ‡ΈUnited States reshma.i
  • Automatically closed - issue fixed for 2 weeks with no activity.

  • Status changed to Fixed about 1 year ago
  • πŸ‡ͺπŸ‡ΈSpain pcambra Asturies

    Thanks @taniachque that was my issue :)

  • πŸ‡¨πŸ‡¦Canada vamirbekyan Toronto

    @reshma.i, hving the same issue. How it was fixed for you?

  • πŸ‡ΊπŸ‡ΈUnited States reshma.i

    Debugging "This entity (paragraph: ID) cannot be referenced." Error
    If you're encountering this error while editing content with Paragraphs, especially after changing paragraph type permissions, consider the following checklist.

    - Go to: Structure β†’ Content types β†’ [Your Content Type] β†’ Manage fields β†’ [Paragraph field].
    - Ensure the "Allowed paragraph types" includes all types currently used in your content.
    - If uncertain, switch to "All paragraph types" temporarily to confirm if that resolves the issue.

    Or

    Check for Custom hook_query_alter() In my case issue was with this unwanted hook.
    If you’ve recently added custom code using hook_query_alter() (or similar), it might be interfering with paragraph loading.

    Example:

    function MYMODULE_query_alter(QueryAlterableInterface $query) {
      // Check if this is affecting entity reference or paragraphs
    }
Production build 0.71.5 2024