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.
I have Aggregate and compress CSS files enabled in Administer » Site configuration » Performance.
I am getting warnings in my log for comment/reply/css/widgContent.css File Not Found. Is it just me?
Comments
Comment #1
Gurpartap Singh CreditAttribution: Gurpartap Singh commentedProbably aggressive mode side effect. You should change to Normal Caching, is feasible.
Comment #2
(not verified) CreditAttribution: commentedComment #3
tancI'd like to reopen this bug as I can confirm that the stylesheet for the content iframe textarea is not being loaded. This results in the browser displaying the default font (Times) for the textarea. I don't think this has anything to do with aggregating the stylesheet as it affects widgeditor with aggregation turned off (default install setting).
To get around this problem I have edited the widgStylesheet variable to point to the full path of the stylesheet. It would be much better if this was done automatically, but I don't know how in JS.
For example, the original in widgEditor.js:
/* Location of stylesheet file for editor content */
var widgStylesheet = "css/widgContent.css";
My altered version:
/* Location of stylesheet file for editor content */
var widgStylesheet = "/sites/all/modules/widgeditor/scripts/css/widgContent.css";
Any chance of a fix for this? It would be good if the JS could replace the path with something like Drupal's base_path() variable so as to avoid problems if the Drupal installation was not in the root www folder.
Comment #4
tancEdited title to reflect problem
Comment #5
dr00b CreditAttribution: dr00b commentedI can confirm that your change fixes the problem (thanks).
Comment #6
Gurpartap Singh CreditAttribution: Gurpartap Singh commentedAdded hard-coded
var widgStylesheet = "/sites/all/modules/widgeditor/scripts/css/widgContent.css";
to Drupal 5 release.