Active
Project:
Color backport
Version:
2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
28 Nov 2022 at 04:13 UTC
Updated:
26 Dec 2022 at 20:06 UTC
Jump to comment: Most recent
I was getting an error about the deprecated drupal_get_path command in color_submit.php, so I replaced it on line 98 with:
\Drupal::service('extension.list.theme')->getPath('my_theme_name')
That got me further to the current error.
Using Drupal 10, and this occurs when I try to change the color theme in AdaptiveTheme.
Thanks
Comments
Comment #2
dribgnikcom commentedComment #3
sagar25 commentedComment #4
markusk commentedClarified issue subject for readability.
Original subject was
ArgumentCountError: Too few arguments to function Drupal\Core\Asset\CssOptimizer::__construct(), 0 passed in /home/ubuntu/web/themes/contrib/adaptivetheme/at_core/forms/color/color_submit.php on line 134 and exactly 1 expected in Drupal\Core\Asset\CssOComment #5
dribgnikcom commentedNo -- you changed the title to the incorrect error... That is a seperate error that is fixed by replacing the deprecated command. The actual error is deeper somewhere in the code.