Issues of undefined array keys and foreach() argument.......

Created on 3 July 2024, 4 months ago
Updated 17 July 2024, 3 months ago

Steps to reproduce

1: Installed the module using Composer with the command: composer require 'drupal/admin_status_report:^1.0'.

2: when we tried to enable this module it threw a warning

Warning: foreach() argument must be of type array|object, null given in Drupal\admin_status_report\EventSubscriber\AdminStatusEventSubscriber->kernelRequest() (line 86 of modules\contrib\admin_status_report\src\EventSubscriber\AdminStatusEventSubscriber.php).

3: When we went /admin/config/system/admin_status_report it showed warnings.

Warning: Undefined array key "config" in Drupal\admin_status_report\Form\AdminStatusReportForm->buildForm() (line 137 of modules\contrib\admin_status_report\src\Form\AdminStatusReportForm.php).

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

I've attached an image illustrating my actions—installing the module and searching within the extend panel.

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇮🇳India aman_lnwebworks

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