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.
| Comment | File | Size | Author |
|---|---|---|---|
| file_download-file_download_counter-drupal_11.patch | 2.63 KB | phily |
Issue fork file_download-3590876
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:
- 2.x
changes, plain diff MR !9
Comments
Comment #4
philyWhile patch is OK, MR!9 is buggy, sorry for that.