Closed (fixed)
Project:
Video
Version:
7.x-2.x-dev
Component:
General
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
15 Feb 2012 at 22:37 UTC
Updated:
17 Mar 2012 at 12:20 UTC
Jump to comment: Most recent file
Comments
Comment #0.0
gagarine commentedUpdated issue summary.
Comment #0.1
gagarine commentedUpdated issue summary.
Comment #0.2
gagarine commentedUpdated issue summary.
Comment #0.3
gagarine commentedtypo
Comment #1
gagarine commentedThe problem is around video_field_presave, insert and update.
Btw, why the thumbnail is not saved in a standard image field?
Quick fix:
- in the video_field_insert function add file usage for each added thumbnail
- in video_field_update remove usage and add a new one
- in video_field_delete remove usage and file.
This sound ok for you?
Comment #2
gagarine commentedHere a patch than should solve the problem. This certainly also need an update path to add all the file file_usage table...
Again, I think the storage structure should be different. Also the video can be only a wiget for a standard file field with some metada... Now video field wrap some file_field hook to save the video field... not sure it's a very good practice.
Comment #3
andypost@gagarine having custom field is right choice but problem in widget implementation
agree with strange behavior about thumb but current version of the module saves thumb but editing of the node broken (with your patch too)
The file used in the Video thumbnail field may not be referenced.Comment #4
gagarine commentedWith my patch if you create a new node you can still not edit/delete them without problems? It works for me :/. As I say nodes created before patched will not work and we need an upgrade path.
Comment #5
gagarine commentedCan someone test and review with new nodes and confirm this patch works (or not). I can provide after a upgrade path when I know the system works.
Comment #6
ivanhi commentedI'm really greatefull. I have spent many hours looking for a solution to the mad message The file used in the Video thumbnail field may not be referenced. but I have implemented your patch and the problem is fixed.
I haved to erased the previous thumbnail and then upload again it with the content already uploaded.
I have no much idea about using patches, so I will be really glad if you can check If I used it properly.
Thanks a lot.
Comment #8
Jorrit commentedI have committed a fix that is similar to the patch but tries to reuse the
file_field_*functions where possible. I have also fixed the situation where the default thumbnail is deleted when the last video that uses it is deleted. The notices are also gone.Please test the next 7.x-2.x-dev release (current one is: March 2, 2012 - 01:43) and let me know if all your problems have been fixed.
Comment #9.0
(not verified) commentedUpdated issue summary.