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

iLLin’s picture

Another Fix:

This should change:

        // Delete all unsuccessful conversions.
        db_query("DELETE FROM {ffmpeg_data} WHERE (fid = %d)", $file->fid);
      }
      // Allow other modules do do some delete operations.
      module_invoke_all('flashvideo_delete_file', $file, $node_type);

to this

        // Delete all unsuccessful conversions.
        db_query("DELETE FROM {ffmpeg_data} WHERE (fid = %d)", $file->fid);
        // Allow other modules do do some delete operations.
        module_invoke_all('flashvideo_delete_file', $file, $node->type);
      }

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

travist’s picture

Status: Active » Fixed

Thank you so much for the patch. I just submitted this to CVS. It will make it in the next release.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.