Closed (fixed)
Project:
Slick extras
Version:
2.0.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
15 Oct 2025 at 02:09 UTC
Updated:
2 Nov 2025 at 02:24 UTC
Jump to comment: Most recent
I upgraded to Drupal 11.2.5 along with the latest Slick extras 2.0.1 version and got the following error when going to the development tab in the Slick UI page. (/admin/config/media/slick/devel)
ArgumentCountError: Too few arguments to function Drupal\Core\Form\ConfigFormBase::__construct(), 1 passed in /var/www/html/web/modules/contrib/slick_extras/slick_devel/src/SlickDevelSettingsForm.php on line 27 and exactly 2 expected in Drupal\Core\Form\ConfigFormBase->__construct() (line 44 of core/lib/Drupal/Core/Form/ConfigFormBase.php).
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
grgcrlsn321 commentedI updated the configuration form to fix the constructor. Setting to needs review.
Comment #4
gausarts commentedThank you.
For future compatibility we should remove the constructor entirely, and rely on static
::create()to allow Core change anything later.new static()is a best practice in Drupal. Many samples are in Blazy environment. The closest is Ajaxin:https://git.drupalcode.org/project/ajaxin/-/commit/a09e840fd0d3ed5ea395a...
Or here is the final result for better read:
https://git.drupalcode.org/project/ajaxin/-/blob/2.0.x/src/Form/AjaxinSe...
Feel free to update it.
Comment #5
grgcrlsn321 commentedGood call! Thanks for the examples. I've updated the code and setting back to needs review.
Comment #7
gausarts commentedThank you for contributions.