Error when trying to access "see usage" for paragraphs

Created on 3 July 2024, 4 months ago
Updated 18 August 2024, 2 months ago

Problem/Motivation

On the "Data about paragraphs - Paragraphs count grouped by type ordered hierarchically" screen, when I click "see usage" on any of the lines, I get the following error :

TypeError: array_filter(): Argument #1 ($array) must be of type array, null given in array_filter() (line 124 of modules/contrib/xray_audit/src/Services/ParagraphUsageMap.php).
Drupal\xray_audit\Services\ParagraphUsageMap->queryGetFields('paragraph', 'commun_paragraphe_simple', Object, Object) (Line: 172)
Drupal\xray_audit\Services\ParagraphUsageMap->queryGetParagraphs('paragraph', Array, Object, NULL, Object) (Line: 134)
Drupal\xray_audit\Services\ParagraphUsageMap->queryGetFields('block_content', NULL, NULL, Object) (Line: 96)
Drupal\xray_audit\Services\ParagraphUsageMap->builParagraphTree() (Line: 75)
Drupal\xray_audit\Services\ParagraphUsageMap->getTreeMap() (Line: 75)
Drupal\xray_audit\Services\EntityUseParagraph->countEntityUses() (Line: 102)
Drupal\xray_audit\Services\EntityUseParagraph->getEntityUsePlaces() (Line: 537)
Drupal\xray_audit\Plugin\xray_audit\tasks\QueryGroup\XrayAuditQueryTaskParagraphsPlugin->paragraphsUsePlace() (Line: 145)
Drupal\xray_audit\Plugin\xray_audit\tasks\QueryGroup\XrayAuditQueryTaskParagraphsPlugin->getDataOperationResult('paragraphs_usage') (Line: 67)
Drupal\xray_audit\Controller\XrayAuditTaskController->build('queries_data', 'queries_data_paragraphs-paragraphs_usage')
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 627)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 121)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 181)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 76)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 28)
Drupal\Core\StackMiddleware\ContentLength->handle(Object, 1, 1) (Line: 32)
Drupal\big_pipe\StackMiddleware\ContentLength->handle(Object, 1, 1) (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 36)
Drupal\Core\StackMiddleware\AjaxPageState->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object, 1, 1) (Line: 704)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

🐛 Bug report
Status

Fixed

Version

1.5

Component

Code

Created by

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024