I was using /tmp/sample1.com and /tmp/sample2.com for temp files directories, but just ran into an issue where if that subdir got removed by some process when the machine restarts. So the CSS/JS aggregator would completely barf with an error saying "The selected file /tmp/filechFmhX could not be uploaded, because the destination css/9552f5b9401db9e020656be9e5e3268f.css is not properly configured." This is a bad error message as it really means that /tmp/sample1.com folder needs to be created. If you go to admin >> files, it will say /tmp/sample1.com was just created.
We should create these on demand along with the files dir instead of requiring people to go to the admin screen to do so. I had an issue a while ago on this but couldn't find it.
Comment | File | Size | Author |
---|---|---|---|
#1 | file_check_directory-157143-1.patch | 1.68 KB | chx |
Comments
Comment #1
chx CreditAttribution: chx commentedThis tries to create these paths on demand. The performance overhead is next to nothing.
Comment #2
snufkin CreditAttribution: snufkin commentedI could not even reproduce the first error. I created the subfolder in tmp, but the performance css and js directories are constantly created in files only. Tried multiple times. it seemed that the temporary settings are completely ignored.
Comment #3
dpearcefl CreditAttribution: dpearcefl commentedIs this issue report still needed?