Hi.

I cannot get into the settings of the module, getting an error. I am in D 11.4.4 and PHP 8.5.2

ArgumentCountError: Too few arguments to function Drupal\Core\Form\ConfigFormBase::__construct(), 1 passed in /web/modules/contrib/role_classes/src/Form/AdminConfigForm.php on line 35 and exactly 2 expected in Drupal\Core\Form\ConfigFormBase->__construct() (line 47 of /web/core/lib/Drupal/Core/Form/ConfigFormBase.php).

Anyone has an idea what causes this?

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

stixer created an issue. See original summary.

stixer’s picture

Issue summary: View changes
stixer’s picture

Issue summary: View changes

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

garvitasakhrani’s picture

Status: Active » Needs review

I was able to reproduce the issue on Drupal 11.4.x. Updated the constructor and the create() method to inject the typed config manager. After the changes, the configuration page opens and saves successfully. MR attached for the fix.
Please review. Thanks!

  • garvitasakhrani committed 285b198a on 1.0.x
    Issue #3612160: Fix ArgumentCountError in AdminConfigForm for Drupal 11.
    
rathod03’s picture

Version: 1.0.6 » 1.0.7
Component: User interface » Code
Assigned: Unassigned » rathod03
Status: Needs review » Fixed

Issues is resolved and releases new 1.0.7 version.
Also added support for Drupal 12.
Thanks for using this module.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

stixer’s picture

Thanks!

garvitasakhrani’s picture

Thank you for reviewing and merging the fix.
When you have a chance, could you please add contribution credit for this issue? Thank you!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.