Problem/Motivation

This dev Module installed successfully, but when selecting Comment notification area under admin/config, the following error is generated:
The website encountered an unexpected error. Try again later.

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

Steps to reproduce

Uninstalled module and Reinstalled module, with same error. Attached is error screen.
This was installing on Drupal version 11.0.4

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

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

lee56 created an issue. See original summary.

lee56’s picture

Issue summary: View changes
sourav_paul’s picture

I've replicated the issue on D11.

I've Fixed the issue..

Please review.

Attaching SS for reference:
before:
img

after:
Only local images are allowed.

sourav_paul’s picture

Please don't forget to release new version for drupal 11.

sourav_paul’s picture

Status: Active » Needs review
tirupati_singh’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new287.84 KB
new173.85 KB

Hi, I've applied the provided MR as a patch and it applied cleanly without any errors. After applying the patch the configuration page of the module is now accessible and the module functionality is working as expected, tested on Drupal 11.0.5. I'm attaching the screenshots of the before and after fixes for reference.

Thanks!

klemendev’s picture

Tested on Drupal 11.1.1 and 10.4.1 and the configuration page opens in both instances with this MR applied as a patch. RTBC from my side

solideogloria’s picture

Issue tags: -The website encountered an unexpected error. Try again later. ArgumentCountError: Too few arguments to function Drupal\Core\Form\ConfigFormBase::__construct(), - +Drupal 11 compatibility

  • greggles committed f92146c2 on 8.x-1.x authored by sourav_paul
    [#3474577] fix: Unable to access Configuration area after module Install...
greggles’s picture

Status: Reviewed & tested by the community » Fixed

Thanks for the help, everyone!

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

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

Maintainers, please credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

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