Not sure if this is an issue with bitcache or fileframework, but I've been unable to add new files since fileframework-dev has required bitcache-alpha2. I get the following when adding a new file node:
# user warning: Must be given a directory path in /var/www/html/xxxx/sites/all/modules/bitcache/bitcache.inc on line 105.
# warning: copy(/d423bd69a575911dd33ddb98e61be0422fea017a) [function.copy]: failed to open stream: Permission denied in /var/www/html/cfes/sites/all/modules/bitcache/bitcache.inc on line 225.
# Error saving file XXXX_Brochure.pdf. Please, contact site administrator.
I put some debug statements into the bitcache.inc and it looks like it's being told to copy my uploaded file from /tmp to the root directory (hence the permission denied). Having trouble tracing the problem beyond that though.
Any ideas? Or should I push this to fileframework?
Comments
Comment #1
Anonymous (not verified) commentedFound my issue, fileframework is expecting a repository named 'file' and this was not present after some number of module upgrades.
Comment #2
Arto commentedApologies, I think the problem is that we didn't add an explicit update migration to create the subrepository when upgrading. I guess we underestimated the number of brave souls already using these modules at their alpha stage :-)
Miglius, do you want to add a
hook_update_6000()hook for making the necessarybitcache_create_repository('file')call in case the repository doesn't yet exist? The update hook should probably also attempt to move any existing files infiles/bitcachetofiles/bitcache/file.Comment #3
miglius commentedSorry for inconvenience. The upgrade script is committed to the dev version.
Comment #4
Anonymous (not verified) commentedYup. This is what I get for using the module on a production site. It's just that good :)
Keep the updates coming!
Comment #5
Arto commentedComment #6
sezer commentedhi there,
i still have a problem
"user warning: Must be given a directory path in /home/xxxxxx/public_html/xxxxxx/sites/all/modules/bitcache/bitcache.inc on line 108."
i installed both dev version and that alpha but could not find what to do.. i still cannot upload any file as attachment and get that error
(and more errors codes actually)..
as jackmaninov said "Found my issue, fileframework is expecting a repository named 'file' and this was not present after some number of module upgrades."
is it just a repository issue?? because i created lots and lots of folders almost everyplace on server.. and chmod 777 actually.. (also created many repositories)
where do i have to put that directory "file" ???? please help!!! i am about to be crazy..
i get error belove when attaching file..
* user warning: Must be given a directory path in /home/xxxx/public_html/xxxxxxx/sites/all/modules/bitcache/bitcache.inc on line 108.
* warning: copy(/c0081bc07df92e0fd477918011dba66ba526cdb3) [function.copy]: failed to open stream: Permission denied in /home/xxxxx/public_html/xxxxxx/sites/all/modules/bitcache/bitcache.inc on line 232.
* Error saving file yen-deneme-text-dosyasi.txt. Please, contact site administrator. (tihs sentence makes my feelings confuse, lol)
Comment #7
miglius commentedCan you go to the 'admin/content/bitcache/upload' and check if you are able to upload a file to the "File framework" repository?
Comment #8
sezer commentedthanks anyway, i just erased and install drupal again :)
Comment #9
miglius commentedComment #10
natable commentedI am having a similar problem. I can upload a bitstream via 'admin/content/bitcache/upload' and it goes to the repository 'sites/default/files/bitcache'. However, when I try to create a file node or attach a file to a page, the file node is not created. The errors are:
I'm using bitcache 6.x-1.0-alpha2.
Comment #11
miglius commentedI would recommend upgrading to the latest bitcache 6.x-1.0-beta2 and fileframework 6.x-1.0-alpha4.
Comment #12
natable commentedit's working - thanks!
Comment #13
cmjns commentedNot for me. I'm using bitcache 6.x-1.0-beta2 and file framework 6.x-1.0-alpha5. Seems to be broken again.