Closed (fixed)
Project:
fastpath_fscache
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
16 Aug 2007 at 08:10 UTC
Updated:
22 Jul 2013 at 16:21 UTC
Jump to comment: Most recent file
It's not working for me.I'm getting following errors.
Warning: fread() [function.fread]: Length parameter must be greater than 0 in D:\Install\C\xampp\htdocs\news\sites\all\modules\fastpath_fscache\cache.fs.inc on line 64
Warning: Cannot modify header information - headers already sent by (output started at D:\Install\C\xampp\htdocs\news\sites\all\modules\fastpath_fscache\cache.fs.inc:64) in D:\Install\C\xampp\htdocs\news\includes\bootstrap.inc on line 531
Warning: Cannot modify header information - headers already sent by (output started at D:\Install\C\xampp\htdocs\news\sites\all\modules\fastpath_fscache\cache.fs.inc:64) in D:\Install\C\xampp\htdocs\news\includes\bootstrap.inc on line 532
# warning: unlink(/tmp/cache/8/87cd8b8808600624d8c590cfc2e6e94b) [function.unlink]: Permission denied in D:\Install\C\xampp\htdocs\news\sites\all\modules\fastpath_fscache\cache.fs.inc on line 216.
# warning: unlink(/tmp/cache/8/87cd8b8808600624d8c590cfc2e6e94b) [function.unlink]: Permission denied in D:\Install\C\xampp\htdocs\news\sites\all\modules\fastpath_fscache\cache.fs.inc on line 216.
--
Sharique
| Comment | File | Size | Author |
|---|---|---|---|
| #14 | fastpath_fscache.patch | 965 bytes | kenorb |
| #9 | windows fix.patch | 1.89 KB | sinasalek |
| #8 | windows server unlink issue.patch | 1.48 KB | sinasalek |
Comments
Comment #1
jeremy commentedLooking at your errors, I'm guessing you've set up the paths incorrectly in settings.php. The paths suggested by the module (ie /tmp) are appropriate for Unix servers, but you appear to be using Windows... Fix that path to point to a real directory for which you have write permissions and try again. You probably need to use something like 'c:\\windows\\temp' or 'c:\\winnt\\temp'.
Comment #2
sharique commentedI have fixed path settings but stillI'm getting errors
Comment #3
moshe weitzman commentedyou need to give your web server permssion to the file dir. the errors you post say 'access denied'. you will have to google to understand hown to do so if you don't already know.
Comment #4
sharique commentedI found the bug, I think.
Every time it read/write cache folder, it changes the permission to read only.
I have checked it 2-3 times.
--
Sharique
Comment #5
moshe weitzman commentedComment #6
gregglesPerhaps this is caused by files defaulting to read only on Windows and the undeclared variable problem: http://drupal.org/node/207712 ?
Comment #7
sinasalek commentedI played with it for a while to find a workaround, i tried to change files and permissions with chmod and by hand, but it didn't solve. so i'm agree with @greggles , i may come up with a solution later.
Comment #8
sinasalek commented:) I finally fixed it by using command line instead of unlink function in windows. please have a look at the patch
Comment #9
sinasalek commentedfread warning and another bug fixed
Comment #10
xtfer commentedI *think* I have this working in IIS 6 on Server 2003, however I had to remove the test in:
so that it reads:
Comment #11
sarfarazsoomro commentedI have tried both codes, while every thing else works fine, I get the output from the system command in the delete function.
It prints out the value of the $file variable.
Any thoughts on this issue, I am stuck.
U can check the issues list for detailed output i am getting.
Comment #12
kenorb commentedFixed in 6.x version: #375293: Drupal 6.x
You can backport it.
Comment #13
kenorb commentedBasically:
1.
Fixed code for fread() bug:
2. Fixed code for unlink() bug:
You can't remove file if you haven't free the file handle.
I don't have any diff on my win machine, so please test it and create some patches or download 6.x version.
Comment #14
kenorb commentedPlease test following patch.
Comment #15
kenorb commentedComment #16
kenorb commentedComment #17
kenorb commented