Closed (fixed)
Project:
Video
Version:
7.x-2.5
Component:
General
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 Apr 2012 at 09:02 UTC
Updated:
19 Aug 2012 at 17:12 UTC
Hi,
for the my video field, I setted as files destination a private folder.
The video is showed without problem, but If I add to a view the video field as thumbnail, the thumbnail image generated is linked to public folder instead of the private folder, and the image is not showed!
The same happen if I add the thumbnail visualizzation to the node.
Comments
Comment #1
Jorrit commentedI have been working on this in the current -dev release. That release is not very stable yet, but you can test it to see if it works for you. If you experience any problems with the -dev release, please let me know!
Comment #2
mecmartini commentedWell I will test it!
Comment #3
mecmartini commentedI'm trying to update the module to dev, but when I run update.php it return white page with this error:
Fatal error: Class 'video_utility' not found in /var/www/portal/sites/all/modules/video/video.module on line 113Comment #4
Jorrit commentedThat class should be autoloaded, but I think that Drupal only clears its autoload cache after update.php is run. Can you clear your cache on the Performance page and then run update.php?
Comment #5
mecmartini commentedI did it but it doesn't work :(
Comment #6
Jorrit commentedPlease add
module_load_include('utility.inc', 'video');before line 114 of video.module, so it looks like:Comment #7
mecmartini commentedOk the good news are that now the dev release work and thumbnail too!
The bas news is that now I can't play the video :(
Comment #8
Jorrit commentedDo you have more information about this problem? Are there error messages? Also read http://drupal.org/node/1543886
Comment #9
mecmartini commentedThere aren't error messages. The player is showed correctly, but when I click on play it doesn't start. I'm using video.js as player.
Comment #10
Jorrit commentedCan you take a look at the HTML source code and look for the
<video*</video>part. Can you post that part here?Comment #11
mecmartini commentedThe HTML source code:
Comment #12
mecmartini commentedLooking the code seems that now there is the same problem of thumbnail before. The video is linked in the public folder instead of private folder!
I already edited the video field after the upgrade to the dev version with the new settings.
Comment #13
Jorrit commentedThe URLs point to
/system/files/, which means that the private file system is used. Why the files can't be retrieved, I don't know.If you run the following query on the database, what is the result?
SELECT * FROM file_managed WHERE filename = 'thumbnail-189_0001.png' OR filename = 'nuovo_spot_mac_ita_certe_cose_non_cambiano_mai_flv_1335527015.flv'Comment #14
mecmartini commentedThe my private folder is /system/files/private.
Running the query I get two results:
|190|1|thumbnail-189_0001.png|private://videos/thumbnails/189/thumbnail-189_0001.png|image/png|99877|1|1335526968|195|1|nuovo_spot_mac_ita_certe_cose_non_cambiano_mai_flv_1335527015.flv|private://videos/converted/189/nuovo_spot_mac_ita_certe_cose_non_cambiano_mai_flv_1335527015.flv|video/x-flv|1515522|1|1335527015Comment #15
Jorrit commentedI think I have found the problem. In video.module, change
output.fidtoconverted.fidon line 239. The line becomes:$fileinfo = db_query('SELECT video.uri videouri, converted.* FROM {file_managed} video JOIN {video_output} op ON video.fid = op.original_fid JOIN {file_managed} converted ON converted.fid = op.output_fid WHERE converted.uri = :uri', array(':uri' => $uri))->fetchObject();Comment #16
mecmartini commentedOk found the problem!
In realy the string converted.fid was already like that, but looking at your code I found a difference into "WHERE" conditions. The my code was this:
$fileinfo = db_query('SELECT video.uri videouri, converted.* FROM {file_managed} video JOIN {video_output} op ON video.fid = op.original_fid JOIN {file_managed} converted ON converted.fid = op.output_fid WHERE output.uri = :uri', array(':uri' => $uri))->fetchObject();So I replaced the query with your code and now it's works!!!
Great job thank you so much for your awesome support :)
Comment #17
Jorrit commentedYes, I should have said output.uri, my bad. Thanks for correcting me and many thanks for taking the effort of testing this version! You have helped me a lot. Can you change the status of this issue to fixed if there are no more issues?
Comment #18
mecmartini commentedOk everything seems to work well now!
Hope to have a new stable release soon :)
Comment #20
fox_01 commentedI got the same problem and just had to activeate a playermodule like video.js or flowplayer api and the error was gone.