- πΊπΈUnited States vinmassaro
Ran into an issue where the Rules overview page would no longer load. Patch fixed the issue, thanks. Moving to RTBC
A type declaration was added to the arguments of the paragraphs_paragraphs_item_access() function requiring the $entity parameter to be of type ParagraphsItemEntity.
function paragraphs_paragraphs_item_access(ParagraphsItemEntity $entity, $op, $account) {
This causes a PHP TypeError exception when the $entity parameter is NULL. It looks like the type declaration was added in this patch: https://www.drupal.org/project/paragraphs/issues/2854100#comment-13344509 β
Call the access() function from the EntityValueWrapper of a property of an entity that has a paragraphs field.
EntityValueWrapper->access('view')
In my case, I encountered this issue when using RESTful Web services module (restws) and trying to query for a node resource with a paragraphs field.
Make the $entity argument for paragraphs_paragraphs_item_access nullable.
function paragraphs_paragraphs_item_access(?ParagraphsItemEntity $entity, $op, $account) {
1.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Ran into an issue where the Rules overview page would no longer load. Patch fixed the issue, thanks. Moving to RTBC