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
Comment #2
cilefen commentedPlease let us know what you did in detail leading up to this. Thank you!
Comment #3
bill.zero commentedComment #4
bill.zero commentedComment #5
bluemoonj commentedI just upgraded to latest 8.7.7 yesterday and hitting the same issue. Google Chrome reports colors.css was not found on the server.
Comment #6
bluemoonj commentedapply the patch #26 from this post can fix the color.css error, https://www.drupal.org/project/drupal/issues/2995825
Comment #7
cilefen commentedComment #8
bill.zero commentedPatch in #26 in the thread mentioned in #6 here did not work for me in 8.7.9. (I commented in that thread, too.)
Comment #13
quietone commentedDrupal 8 is End of life.
Anyone having this problem on a supported version of Drupal?
Comment #15
quietone commentedThis 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.