hi,
drupal 11.4.5
php 8.3.6

After installation, this error occurs and the site does not open.

TypeError: Drupal\Core\Form\FormBuilder::__construct(): Argument #10 ($csrf_token) must be of type Drupal\Core\Access\CsrfTokenGenerator, Drupal\form_alterer\Services\FormAltererPluginManager given, called in /home/xxxxxxx/public_html/web/core/lib/Drupal/Component/DependencyInjection/Container.php on line 262 in Drupal\Core\Form\FormBuilder->__construct() (line 158 of /home/xxxxxxxxx/public_html/web/core/lib/Drupal/Core/Form/FormBuilder.php)

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

bolaghi created an issue. See original summary.

dkmishra made their first commit to this issue’s fork.

dkmishra’s picture

Status: Active » Needs review
vinodhini.e’s picture

Hi,

Tested this on Drupal 11.4.5 and was able to reproduce the issue after installing and enabling the module. The site was not accessible after enabling the module.

I applied MR !6 and retested. After clearing caches, the issue was resolved, and the site loaded correctly.

The patch works for me on Drupal 11.4.5.