Got this on the usage page.

TypeError: Argument 1 passed to Drupal\entity_usage\Controller\ListUsageController::getReferencingEntityLink() must implement interface Drupal\Core\Entity\ContentEntityInterface, null given, called in /app/web/modules/contrib/entity_usage/src/Controller/ListUsageController.php on line 166 in Drupal\entity_usage\Controller\ListUsageController->getReferencingEntityLink() (Zeile 154 in /app/web/modules/contrib/entity_usage/src/Controller/ListUsageController.php)
#0 /app/web/modules/contrib/entity_usage/src/Controller/ListUsageController.php(166): Drupal\entity_usage\Controller\ListUsageController->getReferencingEntityLink(NULL, '')
#1 /app/web/modules/contrib/entity_usage/src/Controller/ListUsageController.php(90): Drupal\entity_usage\Controller\ListUsageController->getReferencingEntityLink(Object(Drupal\paragraphs\Entity\Paragraph))
#2 [internal function]: Drupal\entity_usage\Controller\ListUsageController->listUsagePage('media', '63')

Based on the recursive calls, it looks like this is a paragraph with a broken parent. Which is not something that should happen but we have some bugs about that still.

CommentFileSizeAuthor
#2 entity-usage-missing-parent-2937865-2.patch943 bytesBerdir
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Berdir created an issue. See original summary.

Berdir’s picture

Status: Active » Needs review
FileSize
943 bytes

This should do the trick :)

Status: Needs review » Needs work

The last submitted patch, 2: entity-usage-missing-parent-2937865-2.patch, failed testing. View results

Berdir’s picture

Status: Needs work » Needs review

Testbot had a (very) bad moment...

  • marcoscano committed 00c9a1c on 8.x-1.x authored by Berdir
    Issue #2937865 by Berdir: Broken usage can result in a fatal error
    
marcoscano’s picture

Status: Needs review » Fixed

Makes sense, thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.