I'm using flashvideo module with filefield cck. The following steps will produce a warning:
1) Create a new node with a filefield for a video upload
2) Leave the filefield blank
3) Submit the node
4) Now delete the node and get this warning:
unlink(sites/drupal6.prometheuslabor.com/modules/flashvideo/video_MIA.png) [<a href='function.unlink'>function.unlink</a>]: Permission denied in /home/unionsites/drupal6/includes/file.inc on line 435.
What appears to be going on is that when the node is loaded prior to deletion, flashvideo places a reference to the video_MIA.png file into the file field. Then the file field think it's supposed to delete the file. An error is returned because it does not have permission to delete files from that directory (at least not on my server).
Attached is the end of the stack trace of the function calls that lead up to the error.
| Comment | File | Size | Author |
|---|---|---|---|
| trace.txt | 11.19 KB | Steve Dondley |
Comments
Comment #1
attheshow commentedI followed the directions above and didn't receive the error you mentioned. I know the FileField integration code pretty well (actually I wrote all of that). To my knowledge, there is no connection there to the video_MIA.png file. If there is, it is accidental. Have you been able to figure out any specific problematic lines within the existing module code?
Comment #2
braindrift commentedHi,
i have done the steps 1-4 and have received neither warnings nor errors.
Comment #3
attheshow commentedNo further response here in two months. Closing issue.
Comment #4
dsnydernc commentedI have this same issue.
Comment #5
jpshayes commentedI am having the same problem described above.
1) Create a new node with a filefield for a video upload
2) Leave the filefield blank (I dont upload a video to the node)
3) Submit the node
4) Now delete the node and get this warning:
warning: unlink(sites/all/modules/flashvideo/video_MIA.png) [function.unlink]: Permission denied in /var/www/includes/file.inc on line 435.I know this is probably not enough info, could some point me in the direction to dig for more info.
The module is working fine, except the warning when deleting a node. If the node has a video uploaded to it, and I delete it. I don't receive any warning.
I am using version 6.x-1.5
Comment #6
travist commentedI looked at the code and can't see where this bug is coming from. I am pretty sure that the issue is that the video_MIA image is getting thrown in the database and shouldn't be. When we delete the node, we are simply deleting the images that are added to the database. Assigning to mark since he is more familiar with how the videos get added to the database when the FileField is used. If he doesn't jump on it within the next week or so, then I will take a closer look.
Thanks for your patience.
Travis.
Comment #7
jpshayes commentedThank you, Let me know how I can help...
Comment #8
Nick Fedchik commentedwarning: unlink(sites/all/modules/flashvideo/video_MIA.png) [function.unlink]: Permission denied in /var/www/drupal/includes/file.inc on line 444.FlashVideo CCK 1.5
Comment #9
gintass commentedI'm also getting this warning in the same situation:
warning: unlink(sites/all/modules/flashvideo/video_MIA.png) [function.unlink]: Permission denied in /..../drupal6/includes/file.inc on line 471.I'm using Flashvideo version 6.x-1.5 without FlashVideo CCK
Comment #10
fhinchey commentedme too:
warning: unlink(sites/all/modules/flashvideo/video_MIA.png) [function.unlink]: Permission denied in /var/www/vhosts/newmatador.com/httpdocs/drupal-6.19/includes/file.inc on line 471.
i was attempting to do the the nodes created by flashvideo after the conversion