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.

CommentFileSizeAuthor
trace.txt11.19 KBSteve Dondley

Comments

attheshow’s picture

Version: 6.x-1.5-rc3 » 6.x-1.5-rc4
Status: Active » Postponed (maintainer needs more info)

I 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?

braindrift’s picture

Hi,

i have done the steps 1-4 and have received neither warnings nor errors.

attheshow’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

No further response here in two months. Closing issue.

dsnydernc’s picture

I have this same issue.

jpshayes’s picture

Priority: Normal » Minor
Status: Closed (fixed) » Active

I 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

travist’s picture

Assigned: Unassigned » attheshow

I 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.

jpshayes’s picture

Thank you, Let me know how I can help...

Nick Fedchik’s picture

Version: 6.x-1.5-rc4 » 6.x-1.5

warning: 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

gintass’s picture

I'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

fhinchey’s picture

me 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