Closed (fixed)
Project:
Critical CSS
Version:
2.0.1
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Reporter:
Created:
29 Oct 2024 at 19:02 UTC
Updated:
30 Oct 2024 at 06:19 UTC
Jump to comment: Most recent
On D11 (PHP8.3), the module's settings form throws this error:
ArgumentCountError: Too few arguments to function Drupal\Core\Form\ConfigFormBase::__construct(), 1 passed in /var/www/html/web/modules/contrib/critical_css/src/Form/SettingsForm.php on line 36 and exactly 2 expected in Drupal\Core\Form\ConfigFormBase->__construct() (line 43 of core/lib/Drupal/Core/Form/ConfigFormBase.php).
Install this module on D11 and go to /admin/config/development/performance/critical-css.
Update SettingsForm::__construct() and SettingsForm::create() as required.
I already have a fix, so will create a fork & MR.
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 #3
albertosilvaThanks for the report, already fixed and published
Comment #4
albertosilvaComment #5
albertosilva