Used Not Referenced Report Generates Error missing link template for Paragraphs
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3339733. --> Reported by: [greggmarshall](https://www.drupal.org/user/84148) Related to !33 !21 >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>When I select the Used Not Referenced report via the admin menu, I get a PHP error:</p> <pre>The website encountered an unexpected error. Please try again later.<br><br>Drupal\Core\Entity\Exception\UndefinedLinkTemplateException: No link template 'canonical' found for the 'paragraphs_type' entity type in Drupal\Core\Entity\EntityBase-&gt;toUrl() (line 196 of core/lib/Drupal/Core/Entity/EntityBase.php).<br>Drupal\Core\Config\Entity\ConfigEntityBase-&gt;toUrl('canonical') (Line: 244)<br>Drupal\Core\Entity\EntityBase-&gt;toLink('dojo_block_quote') (Line: 154)<br>Drupal\auditfiles\Form\AuditFilesUsedNotReferencedForm-&gt;Drupal\auditfiles\Form\{closure}(Array, Object)<br>array_reduce(Array, Object) (Line: 183)<br>Drupal\auditfiles\Form\AuditFilesUsedNotReferencedForm-&gt;buildListForm(Array, Object) (Line: 21)<br>Drupal\auditfiles\Form\AuditFilesUsedNotReferencedForm-&gt;buildForm(Array, Object)<br>call_user_func_array(Array, Array) (Line: 534)<br>Drupal\Core\Form\FormBuilder-&gt;retrieveForm('audit_files_used_not_referenced', Object) (Line: 281)<br>Drupal\Core\Form\FormBuilder-&gt;buildForm(Object, Object) (Line: 73)<br>Drupal\Core\Controller\FormController-&gt;getContentResult(Object, Object)<br>call_user_func_array(Array, Array) (Line: 123)<br>Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber-&gt;Drupal\Core\EventSubscriber\{closure}() (Line: 580)<br>Drupal\Core\Render\Renderer-&gt;executeInRenderContext(Object, Object) (Line: 124)<br>Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber-&gt;wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)<br>Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber-&gt;Drupal\Core\EventSubscriber\{closure}() (Line: 169)<br>Symfony\Component\HttpKernel\HttpKernel-&gt;handleRaw(Object, 1) (Line: 81)<br>Symfony\Component\HttpKernel\HttpKernel-&gt;handle(Object, 1, 1) (Line: 58)<br>Drupal\Core\StackMiddleware\Session-&gt;handle(Object, 1, 1) (Line: 48)<br>Drupal\Core\StackMiddleware\KernelPreHandle-&gt;handle(Object, 1, 1) (Line: 106)<br>Drupal\page_cache\StackMiddleware\PageCache-&gt;pass(Object, 1, 1) (Line: 85)<br>Drupal\page_cache\StackMiddleware\PageCache-&gt;handle(Object, 1, 1) (Line: 48)<br>Drupal\Core\StackMiddleware\ReverseProxyMiddleware-&gt;handle(Object, 1, 1) (Line: 51)<br>Drupal\Core\StackMiddleware\NegotiationMiddleware-&gt;handle(Object, 1, 1) (Line: 49)<br>Drupal\remove_http_headers\StackMiddleware\RemoveHttpHeadersMiddleware-&gt;handle(Object, 1, 1) (Line: 23)<br>Stack\StackedHttpKernel-&gt;handle(Object, 1, 1) (Line: 713)<br>Drupal\Core\DrupalKernel-&gt;handle(Object) (Line: 19)</pre><p> Drupal 9.5.2 running on PHP 8.0.26. From the traceback reference to paragraphs something related to that?</p> <h4 id="summary-steps-reproduce">Steps to reproduce</h4> <p> Select the Used Not Referenced report via the admin menu</p> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <h3 id="summary-remaining-tasks">Remaining tasks</h3> <h3 id="summary-ui-changes">User interface changes</h3> <h3 id="summary-api-changes">API changes</h3> <h3 id="summary-data-model-changes">Data model changes</h3>
issue