- Issue created by @greggmarshall
- π§πΎBelarus e.bogatyrev
e.bogatyrev β made their first commit to this issueβs fork.
- Merge request !21Issue #3339733: Used Not Referenced Report Generates Error β (Open) created by e.bogatyrev
- Status changed to Needs review
over 1 year ago 5:10pm 31 March 2023 - π§πΎBelarus e.bogatyrev
Hi there,
Please take a look and review MR https://git.drupalcode.org/project/auditfiles/-/merge_requests/21How to repoduce the issue
- Create any paragraph type
- Add an icon to the field "Paragraph type icon"
- Go to the report "/admin/reports/auditfiles/usednotreferenced"
- Status changed to Needs work
over 1 year ago 10:30am 11 April 2023 - π¦πΊAustralia dpi Perth, Australia
Moreover I moved the reducer callback to separate method. IMHO, now it's more readable and maintainable.
This is a matter of opinion, and not relevant to this issue. The proposed change is rejected. The required LOC's should be very minimal.
--
Please use the nullsafe operator instead of assigning to a temporary $has variable. continue to initalise a $source=null within the closure if required.
- πΊπΈUnited States somebodysysop
I am getting the exact error on a new Drupal 10 install. Well, it's actually a 9.5.11 site that was upgraded to 10.1.16 and AuditFiles installed after the upgrade.
But, I'm only getting it with "usednotmanaged".
Any guidance on how to fix?
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).
Drupal\Core\Entity\EntityBase->toLink() (Line: 130)
Drupal\auditfiles\Form\AuditFilesUsedNotManagedForm->Drupal\auditfiles\Form\{closure}()
array_reduce() (Line: 140)
Drupal\auditfiles\Form\AuditFilesUsedNotManagedForm->buildListForm() (Line: 21)
Drupal\auditfiles\Form\AuditFilesUsedNotManagedForm->buildForm()
call_user_func_array() (Line: 536)
Drupal\Core\Form\FormBuilder->retrieveForm() (Line: 283)
Drupal\Core\Form\FormBuilder->buildForm() (Line: 73)
Drupal\Core\Controller\FormController->getContentResult()
call_user_func_array() (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 592)
Drupal\Core\Render\Renderer->executeInRenderContext() (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext() (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 181)
Symfony\Component\HttpKernel\HttpKernel->handleRaw() (Line: 76)
Symfony\Component\HttpKernel\HttpKernel->handle() (Line: 19)
Drupal\sbn\Middleware\Redirect->handle() (Line: 58)
Drupal\Core\StackMiddleware\Session->handle() (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle() (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass() (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle() (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle() (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle() (Line: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle() (Line: 704)
Drupal\Core\DrupalKernel->handle() (Line: 19) - Status changed to Needs review
10 months ago 12:43pm 17 February 2024 - π§πΎBelarus e.bogatyrev
Hi everyone,
Please review updates https://git.drupalcode.org/project/auditfiles/-/merge_requests/21/diffs
@dpi all changes are not related to the issue itself have been removed.
Thanks - πΊπΈUnited States nateb Pittsburgh, Pennsylvania, USA
e.bogatyrev's change at https://git.drupalcode.org/project/auditfiles/-/merge_requests/21/diffs resolves my issues with Used Not Referenced report returning the No link template... error for paragraphs.
Audit Files 4.2.x-dev | Drupal 10.2.6 | PHP 8.2.16
- Merge request !33Issue #3339733: Fixed issue with UsedNotReferenced form. β (Open) created by e.bogatyrev
- Status changed to Needs work
13 days ago 5:04am 6 December 2024 - π¦πΊAustralia dpi Perth, Australia
Bug should be fixed in multiple reports, including Used not managed ( π Used not managed report generates error Active ).