Warning: foreach() argument must be of type array in Element\Checkboxes

Created on 4 October 2024, 3 months ago

Problem/Motivation

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).

on fresh install with Drupal 10.3.6 when visiting /admin/config/media/external-media

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇮🇹Italy kopeboy Milan

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

Comments & Activities

  • Issue created by @kopeboy
  • please refer to attached patch.

  • 🇮🇹Italy kopeboy Milan

    Nope, that didn't solve. Now I have the same warning above once and this new one repeated 3 times:

    Warning: Array to string conversion in Drupal\Core\Render\Element\Checkbox::processCheckbox() (line 129 of core/lib/Drupal/Core/Render/Element/Checkbox.php).

Production build 0.71.5 2024