ConfigurationForm is throwing a 500 error in Drupal 11

Created on 9 September 2024, 2 months ago

Problem/Motivation

It appears that the test 'testConfigurationForm' in tests/src/Functional/SessionLimitConfigTest.php fails on Drupal 11, PHP 8.3.11

Confirmed that the configuration page fails to load on Drupal 11 with the error,

ArgumentCountError: Too few arguments to function Drupal\Core\Form\ConfigFormBase::__construct(), 1 passed in /home/public/drupal/modules/session_limit/src/Form/SettingsForm.php on line 35 and exactly 2 expected in Drupal\Core\Form\ConfigFormBase->__construct() (line 43 of /home/public/drupal/core/lib/Drupal/Core/Form/ConfigFormBase.php).

Steps to reproduce error

  1. Install module on Drupal 11 site.
  2. Enable the module.
  3. Visit the configuration page.

Steps to reproduce test failure

  1. Create a fork.
  2. Create a merge request with some minor changes.
  3. Review the pipeline job 'phpunit (next major)' and see that it fails. E.g. seen here https://git.drupalcode.org/issue/session_limit-3395489/-/jobs/2700741

Proposed resolution

Review whether the actual settings page errors out with a 500 error - Done. Fix that issue which should make the test pass. If it is just the test, verify why it is failing and make the necessary updates to the test.

Confirmed it is an actual error on the configuration page and Drupal 11.

πŸ“Œ Task
Status

Closed: duplicate

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States dmundra Eugene, OR

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