Saving the colour theme in the theme settings creates an error.

Created on 2 February 2024, 5 months ago
Updated 1 March 2024, 4 months ago

Problem/Motivation

Saving the color theme in the theme settings gives an error with Drupal 10

Steps to reproduce

Change the color theme and save it.
The php error is:
ArgumentCountError: Too few arguments
"CssOptimizer() needs exactly 1 parameter in constructor at line 133 of color_submit.php"

Error is specific for Drual 10.

Proposed resolution

Change line 133 from
$css_optimizer = new CssOptimizer(); to
$css_optimizer = new CssOptimizer(\Drupal::service('file_url_generator'));.

Remaining tasks

Review, merge and release

User interface changes

NA

API changes

NA

Data model changes

NA

🐛 Bug report
Status

Active

Version

5.2

Component

Theme Settings

Created by

🇧🇪Belgium EricVL

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024