Drupal 11 displays the following error when trying to access the file_download_counter config page (admin/config/system/file-download-counter):
ArgumentCountError: Too few arguments to function Drupal\Core\Form\ConfigFormBase::__construct(), 1 passed in /var/www/html/web/modules/contrib/file_download/modules/file_download_counter/src/FileDownloadSettingsForm.php on line 38 and exactly 2 expected in Drupal\Core\Form\ConfigFormBase->__construct() (line 44 of core/lib/Drupal/Core/Form/ConfigFormBase.php).

Attached patch file is temporary while MR is processing.

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:

    1 hidden branch
  • 2.x Comparechanges, plain diff MR !9

Comments

phily created an issue. See original summary.

phily changed the visibility of the branch 2.x to hidden.

phily’s picture

While patch is OK, MR!9 is buggy, sorry for that.

  • shelane committed 9f336f93 on 2.x
    task: #3590876 Drupal 11 compatibility fixes for file_download_counter...
shelane’s picture

Status: Active » Fixed

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.