Problem/Motivation

Only one of my records using a simple Paragraph composed of 2 fields gives the error when I try to add the first paragraph into it.

"You are not allowed to edit this Paragraph."

I do not use the Paragraphs Type Permissions

Steps to reproduce

I don't know the steps, it is happening to an old node after we added the new paragraph field, it cannot be filled. To all of the other thousands of records, it works.
If I create a new node and copy the data by hand, it works.

I'd appreciate any suggestions or hides of what I can look into. Maybe some specific paragraphs php file I can debug? Thank you

Comments

afeijo created an issue.

shank115’s picture

Is this issue still reproducible on the latest Drupal core and Paragraphs versions?
Since this only affects a single older node and cannot be reproduced on new nodes, this sounds more like a data or revision inconsistency than a general bug in the Paragraphs module.

A few things that might be worth checking:

  • Revision mismatch (Does the referenced paragraph revision still exist?)
  • Content moderation / translations
yashaswi18’s picture

This looks more like a data or revision inconsistency affecting that specific node rather than a general issue in Paragraphs, especially since it works for new content.
Since the paragraph field was added later, the existing node might have missing or mismatched references. You could check the following:

- Verify the field data for that node:
SELECT * FROM node__FIELD_NAME WHERE entity_id = NODE_ID;

- Check if the referenced paragraph and its revision exist:
SELECT * FROM paragraphs_item WHERE id = PARAGRAPH_ID;
SELECT * FROM paragraphs_item_revision WHERE id = PARAGRAPH_ID;

If there is any missing or inconsistent data, that could cause the “not allowed to edit” error.

You could also try saving the node as a new revision or re-saving it to refresh the field references.

If you’re able to find a consistent way to reproduce this, it would help check further.