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

Gurpartap Singh’s picture

Status: Active » Fixed

Probably aggressive mode side effect. You should change to Normal Caching, is feasible.

Anonymous’s picture

Status: Fixed » Closed (fixed)
tanc’s picture

Priority: Minor » Normal
Status: Closed (fixed) » Active

I'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.

tanc’s picture

Title: comment/reply/css/widgContent.css Not Found » css/widgContent.css Not Found

Edited title to reflect problem

dr00b’s picture

I can confirm that your change fixes the problem (thanks).

Gurpartap Singh’s picture

Status: Active » Fixed

Added hard-coded var widgStylesheet = "/sites/all/modules/widgeditor/scripts/css/widgContent.css"; to Drupal 5 release.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.