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)
Issue fork form_alterer-3619638
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
Comment #4
dkmishra commentedComment #5
vinodhini.e commentedHi,
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.