I am posting this bug report under both Fscache and filestore2, as I am not sure which module has an issue.
I am using drupal 4.5.2, fscache (4.5.0) and filestore2 (4.5.0). After "uploading file" through the "create content" area, I try to read the file after it is submitted. The Adobe .pdf file cannot be viewed and I receive the message: "there was an error opening this document. The file cannot be found." I have checked the path to fscache and it is apparently correct. I have, to my knowledge properly installed both modules, including the database tables (I have verified the existence of these tables through phpMyAdmin). I have also verified the presence of the fscache directory under "misc."
In addition to these modules, I have the attachment module and filemanager module installed. The standard "upload" module is not enabled. I have confirmed that filestore2 doesn't work even with these other modules uninstalled.
Any ideas???
Comments
Comment #1
gordon CreditAttribution: gordon commentedCheck that the permissions on the files is correct. be sure that the web server user can access the file.
Comment #2
gordon CreditAttribution: gordon commentedComment #3
wedge CreditAttribution: wedge commentedI had a similar problem to this. I was running with php5 and it seemed like an error message (array_merge problem) was sent with the datastream to the client so the file was corrupted. What I did was to change a function in the filestore2 module (added the may_cache bit). Perhaps this will work for you as well. Replace the filestore2_menu function with the one below.
Comment #4
gordon CreditAttribution: gordon commentedCan you please provide a patch.