[warning] Undefined array key in ParagraphsReport.php

Created on 14 November 2022, about 2 years ago
Updated 18 August 2023, over 1 year ago

I suddenly get a [warning] Undefined array key in ParagraphsReport.php for every Paragraph in the list

I'm on D9.4.8 & php8.1.12.

I tried updating DB, running cron, flushing caches, updating the report data, hitting Save on the settings page, etc.

Here's the full error log:

Warning: Undefined array key "foo" in Drupal\paragraphs_report\ParagraphsReport->getParaUseCounts() (line 670 of /var/www/foobarbaz.com/web/modules/contrib/paragraphs_report/src/ParagraphsReport.php)

#0 /var/www/foobarbaz.com/web/core/includes/bootstrap.inc(347): _drupal_error_handler_real()
#1 /var/www/foobarbaz.com/web/modules/contrib/paragraphs_report/src/ParagraphsReport.php(670): _drupal_error_handler()
#2 /var/www/foobarbaz.com/web/modules/contrib/paragraphs_report/src/ParagraphsReport.php(555): Drupal\paragraphs_report\ParagraphsReport->getParaUseCounts()
#3 /var/www/foobarbaz.com/web/modules/contrib/paragraphs_report/src/Controller/ParagraphsReportController.php(47): Drupal\paragraphs_report\ParagraphsReport->showReport()
#4 [internal function]: Drupal\paragraphs_report\Controller\ParagraphsReportController->showReport()
#5 /var/www/foobarbaz.com/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array()
#6 /var/www/foobarbaz.com/web/core/lib/Drupal/Core/Render/Renderer.php(564): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#7 /var/www/foobarbaz.com/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(124): Drupal\Core\Render\Renderer->executeInRenderContext()
#8 /var/www/foobarbaz.com/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext()
#9 /var/www/foobarbaz.com/vendor/symfony/http-kernel/HttpKernel.php(169): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#10 /var/www/foobarbaz.com/vendor/symfony/http-kernel/HttpKernel.php(81): Symfony\Component\HttpKernel\HttpKernel->handleRaw()
#11 /var/www/foobarbaz.com/web/core/lib/Drupal/Core/StackMiddleware/Session.php(58): Symfony\Component\HttpKernel\HttpKernel->handle()
#12 /var/www/foobarbaz.com/web/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle()
#13 /var/www/foobarbaz.com/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(106): Drupal\Core\StackMiddleware\KernelPreHandle->handle()
#14 /var/www/foobarbaz.com/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass()
#15 /var/www/foobarbaz.com/web/core/modules/ban/src/BanMiddleware.php(50): Drupal\page_cache\StackMiddleware\PageCache->handle()
#16 /var/www/foobarbaz.com/web/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\ban\BanMiddleware->handle()
#17 /var/www/foobarbaz.com/web/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle()
#18 /var/www/foobarbaz.com/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle()
#19 /var/www/foobarbaz.com/web/core/lib/Drupal/Core/DrupalKernel.php(709): Stack\StackedHttpKernel->handle()
#20 /var/www/foobarbaz.com/web/index.php(19): Drupal\Core\DrupalKernel->handle()
#21 {main}
πŸ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

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.

Production build 0.71.5 2024