When a create a new rule (simple example below)

h1{ color : #c0c0c0; }

Which is applied to all pages and "preprocess css" enabled. Clicking save gets the error:

"the selected file could not be copied, because no file by that name exists. Please check that you supplied the correct filename"

It's trying to save here (as denoted under "file path") :

sites/site1.domain.com/files/css_injector_1.css

The folder was given read/write rights. I get the same error with the dev version. When I manually create the css file, the rule gets applied but I can't edit it from the drupal interface (get the same error as above).

Comments

rfay’s picture

Status: Active » Closed (works as designed)

Please visit admin/reports/status and see if there is a warning there about writability of the file system.

It's almost 100% certain that your css_injector directory is not writable by the webserver. You can test this with something like a file upload.

But the problem has nothing to do with css injector.

I'm putting "works as designed". You can reopen if you like. But problems like this are "web server can't write to specified directory".

jboyce2011’s picture

Thanks. I just wanted to make sure I didn't miss anything obvious. My folder sites/site1.domain.com/files/ where it was trying to write was fine, because I was able to use imce to upload ok. I figured out my problem : needed to give the internet guest account write access to c:\windows\temp