Closed (fixed)
Project:
FlashVideo
Version:
6.x-1.5-rc4
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 Oct 2009 at 15:42 UTC
Updated:
4 Nov 2009 at 00:50 UTC
If your not using the upload module, or don't have it enabled you get an error when you delete/regenerate thumbnails. I don't have CVS installed or I would hook you up with a patch but line 147 in the flashvideo_cck.module makes a call to delete from the upload table. This should change to this:
if(module_exists('upload')) {
db_query("DELETE FROM {upload} WHERE (fid = %d)", $file->fid);
}
That way it checks before it does this.
Comments
Comment #1
iLLin commentedAnother Fix:
This should change:
to this
This is right after the fix on line 147. Notice the movement of the hook for deleting is moved to inside the while loop and the $node_type variable is changed to reflect the node object. I'm sorry I dont have skill with cvs on my linux box or I would give you patch.
-iLLin
Comment #2
travist commentedThank you so much for the patch. I just submitted this to CVS. It will make it in the next release.