Warning message on admin/config/media/external-media and in log

Created on 1 August 2022, almost 2 years ago
Updated 11 June 2023, about 1 year ago

Problem/Motivation

On 9.4.3 + external_media 1.0.19 (both installed and updated via composer), a warning is given on each load of admin/config/media/external-media :

Warning: foreach() argument must be of type array|object, null given in Drupal\Core\Render\Element\Checkboxes::valueCallback() (line 113 of core/lib/Drupal/Core/Render/Element/Checkboxes.php).

Full Log Traceback (file path censored):

#0 ***SITEROOTDIR***/core/includes/bootstrap.inc(347): _drupal_error_handler_real()
#1 ***SITEROOTDIR***/core/lib/Drupal/Core/Render/Element/Checkboxes.php(113): _drupal_error_handler()
#2 [internal function]: Drupal\Core\Render\Element\Checkboxes::valueCallback()
#3 ***SITEROOTDIR***/core/lib/Drupal/Core/Form/FormBuilder.php(1282): call_user_func_array()
#4 ***SITEROOTDIR***/core/lib/Drupal/Core/Form/FormBuilder.php(1000): Drupal\Core\Form\FormBuilder->handleInputElement()
#5 ***SITEROOTDIR***/core/lib/Drupal/Core/Form/FormBuilder.php(1070): Drupal\Core\Form\FormBuilder->doBuildForm()
#6 ***SITEROOTDIR***/core/lib/Drupal/Core/Form/FormBuilder.php(1070): Drupal\Core\Form\FormBuilder->doBuildForm()
#7 ***SITEROOTDIR***/core/lib/Drupal/Core/Form/FormBuilder.php(574): Drupal\Core\Form\FormBuilder->doBuildForm()
#8 ***SITEROOTDIR***/core/lib/Drupal/Core/Form/FormBuilder.php(320): Drupal\Core\Form\FormBuilder->processForm()
#9 ***SITEROOTDIR***/core/lib/Drupal/Core/Controller/FormController.php(73): Drupal\Core\Form\FormBuilder->buildForm()
#10 [internal function]: Drupal\Core\Controller\FormController->getContentResult()
#11 ***SITEROOTDIR***/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array()
#12 ***SITEROOTDIR***/core/lib/Drupal/Core/Render/Renderer.php(564): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#13 ***SITEROOTDIR***/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(124): Drupal\Core\Render\Renderer->executeInRenderContext()
#14 ***SITEROOTDIR***/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext()
#15 ***SITEROOTDIR***/vendor/symfony/http-kernel/HttpKernel.php(158): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#16 ***SITEROOTDIR***/vendor/symfony/http-kernel/HttpKernel.php(80): Symfony\Component\HttpKernel\HttpKernel->handleRaw()
#17 ***SITEROOTDIR***/core/lib/Drupal/Core/StackMiddleware/Session.php(58): Symfony\Component\HttpKernel\HttpKernel->handle()
#18 ***SITEROOTDIR***/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle()
#19 ***SITEROOTDIR***/core/modules/page_cache/src/StackMiddleware/PageCache.php(106): Drupal\Core\StackMiddleware\KernelPreHandle->handle()
#20 ***SITEROOTDIR***/core/modules/page_cache/src/StackMiddleware/PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass()
#21 ***SITEROOTDIR***/core/modules/ban/src/BanMiddleware.php(50): Drupal\page_cache\StackMiddleware\PageCache->handle()
#22 ***SITEROOTDIR***/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\ban\BanMiddleware->handle()
#23 ***SITEROOTDIR***/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle()
#24 ***SITEROOTDIR***/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle()
#25 ***SITEROOTDIR***/core/lib/Drupal/Core/DrupalKernel.php(709): Stack\StackedHttpKernel->handle()
#26 ***SITEROOTDIR***/index.php(19): Drupal\Core\DrupalKernel->handle()
#27 {main}
.

Steps to reproduce

1. Install Drupal Core 9.4.3 via composer
2. Install embed_media 1.0.19 via composer
3. Enable embed_media module in Extend tab as normal
4. Navigate to admin/config/media/external-media
5. Note warning message

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States higherform

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.69.0 2024