All views associated with paragraph comments throw an error in rdf_comment_storage_load

Created on 1 June 2023, over 1 year ago
Updated 1 July 2024, 6 months ago

Problem/Motivation

I have the problem after upgrading Drupal from 8.9.20 to 9.5.9
All views associated with paragraph comments throw an error:

Error: Call to a member function toString() on string in rdf_comment_storage_load() (line 261 of modules/contrib/rdf/rdf.module).

Steps to reproduce

upgrading Drupal from 8.9.20 to 9.5.9
upgrading all modules to latest current version
upgrading all depreciated modules, including RDF

on overview page /admin/content/comment is not displayed - error mesage:
Drupal\Core\Entity\Exception\UndefinedLinkTemplateException: No link template 'canonical' found for the 'paragraph' entity type in Drupal\Core\Entity\EntityBase->toUrl() (line 196 of core/lib/Drupal/Core/Entity/EntityBase.php).
rdf_comment_storage_load(Array) (Line: 877)

added modifications to the code described on the page https://www.drupal.org/project/drupal/issues/3249628#comment-15052451 🐛 No link template 'canonical' found for the 'paragraph' entity type Needs work

Error message chcnage to:
Error: Call to a member function toString() on string in rdf_comment_storage_load() (line 261 of modules/contrib/rdf/rdf.module).

Interestingly, when I uninstalled DRF module on the copy of the site - pages with comments to paragraphs still display an error but this time:
Error: Call to a member function getOptions() on string in Drupal\Core\Field\Plugin\Field\FieldFormatter\EntityReferenceLabelFormatter->viewElements() (line 84 of core/lib/Drupal/Core/Field/Plugin/Field/FieldFormatter/EntityReferenceLabelFormatter.php).

Any idea to solve this error

🐛 Bug report
Status

Closed: outdated

Version

2.1

Component

Code

Created by

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

Comments & Activities

Production build 0.71.5 2024