Hello,

I've just installed the module and encountered an error when accessing the configuration page at /admin/config/evac:

ArgumentCountError: Too few arguments to function Drupal\Core\Form\ConfigFormBase::__construct(), 1 passed in /var/www/manager_proiecte/public_html/web/modules/contrib/evac/src/Form/ConfigForm.php on line 47 and exactly 2 expected in Drupal\Core\Form\ConfigFormBase->__construct() (line 43 of /var/www/manager_proiecte/public_html/web/core/lib/Drupal/Core/Form/ConfigFormBase.php).

I'm using Drupal 11.0.4 and php 8.3.11.

Thanks!

Issue fork evac-3474344

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

gge created an issue. See original summary.

gge’s picture

For me the error is gone by adding use Drupal\Core\Config\TypedConfigManagerInterface; to the use statements and changing the constructor from:

  public function __construct(ConfigFactoryInterface $config_factory) {
    parent::__construct($config_factory);

to

  public function __construct(ConfigFactoryInterface $config_factory, TypedConfigManagerInterface $typed_config_manager) {
    parent::__construct($config_factory, $typed_config_manager);
andreasderijcke’s picture

Assigned: Unassigned » andreasderijcke

Had fix already in dev branch, just didn't come around to release it. Will use this to do it now.

andreasderijcke changed the visibility of the branch 3474344-argumentcounterror-too-few to hidden.

andreasderijcke’s picture

Assigned: andreasderijcke » Unassigned
Status: Active » Fixed
andreasderijcke’s picture

Status: Fixed » Closed (fixed)

Voila, released. Thank you for the nudge.

gge’s picture

Thank you!