Adding comment to paragraph type triggers UndefinedLinkTemplateException

Created on 7 May 2020, almost 5 years ago
Updated 22 May 2023, almost 2 years ago

I started to experiment with adding comments to individual paragraph types. It's possible to create the types and create a few Articles that hold these paragraphs and display the comments fields below them. When I try to save a comment, though, I get an error:

Drupal\Core\Entity\Exception\UndefinedLinkTemplateException: No link template 'canonical' found for the 'paragraph' entity type in Drupal\Core\Entity\EntityBase->toUrl() (line 227 of /var/www/html/ann/web/core/lib/Drupal/Core/Entity/EntityBase.php).

If this is a configuration issue on my end, I would appreciate any pointers. It's not clear where a link template should go. (Not that I included any links in the comment text, although I'm guessing the words mean something else.)

Thx.

πŸ› Bug report
Status

Active

Version

1.11

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States bogdog400

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.

  • πŸ‡΅πŸ‡±Poland jkowalski20210204@gmail.com

    I use comments to comment on paragraphs - on Drupal 8 everything worked fine.
    I have the problem described above after upgrading Drupal from 8.9.20 to 9.5.9 i.e. comment 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)

    Ten same message after entering the page where the comments to the paragraph are displayed.
    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).

    Similarly, after entering the page where the comments to the paragraph were displayed.

    Problem registered in https://www.drupal.org/project/drupal/issues/3249628#comment-15052451 πŸ› No link template 'canonical' found for the 'paragraph' entity type Needs work

Production build 0.71.5 2024