Missing arguments on config page

Created on 30 April 2025, 2 months ago

Problem/Motivation

Using dblog_filter 4.1 with Drupal 11 and PHP 8.3 causes a fatal error due to incorrect constructor arguments passed to ConfigFormBase.

ArgumentCountError: Too few arguments to function Drupal\Core\Form\ConfigFormBase::__construct(), 1 passed in /modules/contrib/dblog_filter/src/Form/DBLogFilterSettingsForm.php on line 29 and exactly 2 expected

Steps to reproduce

  1. Install dblog_filter 4.1 on a Drupal 11 site (with PHP 8.3).
  2. Enable the module.
  3. Visit /admin/reports/dblog-filter

Proposed resolution

Update DBLogFilterSettingsForm to inject missing required arguments: config.typed.

🐛 Bug report
Status

Needs review

Version

4.0

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