Closed (fixed)
Project:
Video
Version:
6.x-4.x-dev
Component:
Video Transcoding
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
30 Jan 2012 at 16:40 UTC
Updated:
13 Feb 2012 at 17:50 UTC
Jump to comment: Most recent file
Comments
Comment #1
kevin.dutra commentedAttaching a patch.
Comment #2
Jorrit commentedAs far as I know, the $video is not replaced, but the filepath property is changed. This change is actually necessary for the functionality of the video module, because that change is saved to the database in the drupal_write_record() call just below the code you've changed.
Can you point to the line in the file_move() / file_copy() code that changes the type of the $file argument from object to string?
Comment #3
kevin.dutra commentedIt's in file_copy(), line 242:
Comment #4
Jorrit commentedThanks for your quick reply. It almost looks like a bug in the Drupal code, because it is very bad when a param gets changed from object to string. I have changed the code similar like you suggested to work around this problem, but while making sure the right path is saved to the database.
Fixed in branch 6.x-4.x and 6.x-5.x, thanks for reporting!