Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Currently we find this in settings.php
$conf['system.performance']['css.gzip'] = FALSE;
$conf['system.performance']['js.gzip'] = FALSE;
This is incorrect as everything behind system.performance is an array so we have to access it as an array
Following code DOES work.
$conf['system.performance']['css']['gzip'] = FALSE;
$conf['system.performance']['js']['gzip'] = FALSE;
System.performance is a KEY js.css are two ARRAY ELEMENTS. We can't combine array elements with a '.'
Attached patch fixes this misunderstanding. I tested this with css/js aggregation.
Comment | File | Size | Author |
---|---|---|---|
conf_overrides.patch | 625 bytes | aspilicious | |
Comments
Comment #1
BerdirMakes sense. It is a bit unfortunate that this doesn't map to the way it is accessed but changing that would be a different issue.
Comment #2
webchickCommitted and pushed to 8.x. Thanks!