I have a new-ish Drupal 8.7.7 installation that I recently moved from a subdirectory to root. All my CSS settings went away for a while, but I got most of them back by unchecking "Aggregate CSS files" and "Aggregate JavaScript files". Color hasn't come back, however. The Color module is enabled.

Looking at my page source I see that most stylesheet paths start out with "/core/...", but the color one starts out with "/color/...":

<link rel="stylesheet" media="all" href="/core/themes/bartik/css/components/ui-dialog.css?yyyyyy" />
<link rel="stylesheet" media="all" href="/color/bartik-xxxxxxxx/colors.css?yyyyyy" />
<link rel="stylesheet" media="print" href="/core/themes/bartik/css/print.css?yyyyyy" />

(xxxxxxxx is a hash value that changes each time I save a new color configuration.) I have confirmed that the page source is including the new hash value each time.

That /color/ directory exists not under the root, but under /sites/default/files . Could this be the cause of my missing color? Or will paths relative to /sites/default/files also be treated as relative to root somehow?

Comments

bill.zero created an issue. See original summary.

cilefen’s picture

Component: configuration system » color.module
Issue tags: -color, -CSS, -relative paths +Needs steps to reproduce

Please let us know what you did in detail leading up to this. Thank you!

bill.zero’s picture

  1. Installed Drupal 8.7.7 in /drupal8 subdirectory.
  2. Populated Drupal 8 with some content.
  3. Tweaked the color of Bartik theme at /admin/appearance/settings/bartik. Observed changed colors in display.
  4. Moved drupal8 folder contents to root and modified settings.php to point to new base_url. Observed web site contents display in browser but with no CSS atributes.
  5. Went to /admin/config/development/performance and cleared cache >>> no change. Went to /admin/config/development/performance again and unchecked "Aggregate CSS files" and "Aggregate JavaScript files" and saved. Cleared cache again. Observed web site in browser with all CSS restored except color.
bill.zero’s picture

bluemoonj’s picture

I just upgraded to latest 8.7.7 yesterday and hitting the same issue. Google Chrome reports colors.css was not found on the server.

bluemoonj’s picture

apply the patch #26 from this post can fix the color.css error, https://www.drupal.org/project/drupal/issues/2995825

bill.zero’s picture

Patch in #26 in the thread mentioned in #6 here did not work for me in 8.7.9. (I commented in that thread, too.)

Version: 8.7.7 » 8.7.x-dev

Core issues are now filed against the dev versions where changes will be made. Document the specific release you are using in your issue comment. More information about choosing a version.

Version: 8.7.x-dev » 8.9.x-dev

Drupal 8.8.7 was released on June 3, 2020 and is the final full bugfix release for the Drupal 8.8.x series. Branches prior to 8.8.x are not supported, and Drupal 8.8.x will not receive any further development aside from security fixes. Sites should prepare to update to Drupal 8.9.0 or Drupal 9.0.0 for ongoing support.

Bug reports should be targeted against the 8.9.x-dev branch from now on, and new development or disruptive changes should be targeted against the 9.1.x-dev branch. For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

Version: 8.9.x-dev » 9.2.x-dev

Drupal 8 is end-of-life as of November 17, 2021. There will not be further changes made to Drupal 8. Bugfixes are now made to the 9.3.x and higher branches only. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.2.x-dev » 9.3.x-dev
quietone’s picture

Status: Active » Postponed (maintainer needs more info)
Issue tags: +Bug Smash Initiative

Drupal 8 is End of life.

Anyone having this problem on a supported version of Drupal?

Version: 9.3.x-dev » 9.4.x-dev

Drupal 9.3.15 was released on June 1st, 2022 and is the final full bugfix release for the Drupal 9.3.x series. Drupal 9.3.x will not receive any further development aside from security fixes. Drupal 9 bug reports should be targeted for the 9.4.x-dev branch from now on, and new development or disruptive changes should be targeted for the 9.5.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

quietone’s picture

Status: Postponed (maintainer needs more info) » Closed (outdated)

This has only been reported on an outdated version of Drupal and there have been no further reports since asking 5 months ago. Therefor closing as outdated.