I have a website which default download mode is set to "private://".
By default Spamicide will then place its .css file into private://spamicide/file.css
, accessed through the URL http://example.org/system/files/spamicide/file.css
.
This file can't be accessed because no module will handle it (and Drupal gives an Access Denied page).
That said we have 2 solutions:
- (inefficient) implement a
spamicide_file_download()
hook into spamicide module code - (best) replace all the calls to file_default_scheme() to "public://" by default
AFAIK there's no need to put a .css file under private directory, so my preferred way is #2 (see the attached patch).
Waiting for your comments...
NOTE: if you have CSS compression enabled everything works because the CSS file is merged together with others and made available through public://.
Comment | File | Size | Author |
---|---|---|---|
file_public.patch | 2.74 KB | nicorac |
Comments
Comment #1
lipcpro CreditAttribution: lipcpro commentedPlease see my response in #1762484: Costumized description in form message
Comment #2
lipcpro CreditAttribution: lipcpro commentednicorac does the latest dev version solve your problem, I'd like to clean up my issue queue. Please let me know
Comment #3
nicorac CreditAttribution: nicorac commentedSadly I'm not using spamicide anymore on my websites.
Feel free to close this issue.
Thanks for your work
Claudio
Comment #4
peterx CreditAttribution: peterx commentedI get the following when I switch on private and save the spamicide settings.
XMLsitemap works perfectly but Spamicide 7.x-1.1 fails. I am switching Spamicide off for a while.
Comment #5
lipcpro CreditAttribution: lipcpro commented