I got this message when i add the lines from README in "settings":
Warning: fopen(C:\Program Files\wamp\www\mysite/sites/default/files/.ht.filecache/cache_bootstrap-bootstrap_modules) [function.fopen]: failed to open stream: No such file or directory in DrupalFileCache->set() (line 134 of C:\Program Files\wamp\www\mysite\sites\all\modules\filecache\filecache.inc).
Warning: fopen(C:\Program Files\wamp\www\mysite/sites/default/files/.ht.filecache/cache_bootstrap-variable:language:en) [function.fopen]: failed to open stream: Invalid argument in DrupalFileCache->set() (line 134 of C:\Program Files\wamp\www\mysite\sites\all\modules\filecache\filecache.inc).
...... there is 35 warnings like that
Any ideas?
Comment | File | Size | Author |
---|---|---|---|
#4 | normal_urlencode_cid_for_windows-1153796-4.patch | 890 bytes | David4514 |
Comments
Comment #1
ogi CreditAttribution: ogi commentedIt turns out that ":" is reserved file name character in Windows. Please edit
filecache.inc
and replace return statement in line 56 with the the following simper return:Comment #2
Barfly CreditAttribution: Barfly commentedthank you, it works ^^
Comment #4
David4514 CreditAttribution: David4514 commentedI hate hacking modules! Would it be possible to put in a test for Windows and perform the simple return, otherwise perform the original return. Something like:
There may be a more elegant way of doing this, but this seems to work. I can now have this one version on my staging and production sites (Linux) and on my development site (Wampserver).
A proposed patch is attached.
Comment #5
roderikAbove works, but #1211166-7: Create separate directories for each cache bins fixes it too. By (a.o.) replacing all ':' by another character, on all platforms. (A space.)
Comment #6
ogi CreditAttribution: ogi commentedMicrosoft Windows is important platform that should be supported.
Comment #7
ogi CreditAttribution: ogi commentedFixed in c787423. I committed the solution provided by roderik to replace : with space and / with ^.