Closed (fixed)
Project:
Role Classes
Version:
1.0.7
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
21 Jul 2026 at 06:56 UTC
Updated:
12 Aug 2026 at 05:00 UTC
Jump to comment: Most recent
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?
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 #2
stixer commentedComment #3
stixer commentedComment #6
garvitasakhrani commentedI 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!
Comment #8
rathod03 commentedIssues is resolved and releases new 1.0.7 version.
Also added support for Drupal 12.
Thanks for using this module.
Comment #10
stixer commentedThanks!
Comment #11
garvitasakhrani commentedThank you for reviewing and merging the fix.
When you have a chance, could you please add contribution credit for this issue? Thank you!