This issue (http://drupal.org/node/336299) seems to impact the 5.x-2.8 branch as well.

Transcoded files (.flv and .jpg) are created, but not correctly attached to node.

See attached for example.

CommentFileSizeAuthor
#2 flashvideo.module.fix_vid_update.patch1.72 KBjtolj
post.jpg38.25 KBjtolj
pre.jpg49.63 KBjtolj

Comments

jtolj’s picture

It looks like this is because the vids in {file_revisions} for the .flv and .jpg are not updated to match the originally attached file (which has a vid of one greater). Manually updating the vid in the database showed all files correctly attached to node. I can't figure out how to fix it though.

jtolj’s picture

Version: 5.x-2.8-rc2 » 5.x-2.x-dev
Status: Active » Needs review
StatusFileSize
new1.72 KB

This patch fixes the issue.

Adds vid to $newfile object

Changes:

db_query("INSERT INTO {file_revisions} (fid, vid, description, list) VALUES (%d, %d, '%s', 0)", $newfile->fid, $newfile->nid, $newfile->filename);

To:

db_query("INSERT INTO {file_revisions} (fid, vid, description, list) VALUES (%d, %d, '%s', 0)", $newfile->fid, $newfile->vid, $newfile->filename);
travist’s picture

Thanks for this patch,

I will update it very soon!!!

Steve Dondley’s picture

I've applied this patch to 5.x.1.7 and while the files now attach, the video still does not show.

UPDATE: disregard this. forgot the [video] tag.

attheshow’s picture

Status: Needs review » Closed (fixed)