Here are the errors that kept popping out when I load a page that contains View:Block of videos using Video.JS
Notice: Undefined index: filemime in template_preprocess_videojs() (line 33 of /var/www/drupal7/sites/all/modules/videojs/includes/videojs.theme.inc).
Notice: Undefined property: stdClass::$uri in file_validate_is_image() (line 1746 of /var/www/drupal7/includes/file.inc)
I created a new content type to upload videos. In Managed Display I selected the Format as Video Player. (Refer attachment: Video Managed Display.png).
I configure View:Block to display the video content in one of my page and that's how I got the above 2 error message that kept showing. Please refer to attached file "Errors.png"
My configuration-->Media-->Videos-->Player, I configured the extension of the respective Video extension to HTML5 Player and VidoeJS as my video player.
I have also included the 2 files mentioned in the errors.png. I have search the entire internet and failed to get a solution. Really appreciate if someone encounter the same problem and got a solution able to help me here.
Desperate Drupal Noob
Danny.
Comment | File | Size | Author |
---|---|---|---|
#8 | Configure Views.png | 32.74 KB | dannycheah |
#8 | Update Preview.png | 47.41 KB | dannycheah |
videojs.theme_.zip | 778 bytes | dannycheah | |
file.zip | 21.57 KB | dannycheah | |
Errors.png | 75.83 KB | dannycheah |
Comments
Comment #1
Jorrit CreditAttribution: Jorrit commentedFor some reason, the information given to the Video.js module is wrong. Could you add the following line to videojs.theme.inc on a new line after
function template_preprocess_videojs(&$vars) {
:var_dump($vars);
This will cause some data to be displayed on the screen. Could you post that here?
Comment #2
Jorrit CreditAttribution: Jorrit commentedCould you also explain how the view is configured?
Comment #3
hendry.a CreditAttribution: hendry.a commentedsubscribe
Hi, I have similar problem but version for videojs is different(videojs-7.x-2.x-dev) and this is code display in my page after i follow comment #1 :
thank you.
Regards Hendry
Comment #4
Jorrit CreditAttribution: Jorrit commentedThis was a bug in the Video module. Please try the next 7.x-2.x-dev version of the Video module.
Comment #5
hendry.a CreditAttribution: hendry.a commentedI have been using video module "video-7.x-2.x-dev" but error message still display (media player works well).
At below is module that i install in my drupal:
1. Video (video-7.x-2.x-dev)
2. Video JS (videojs-7.x-2.x-dev) & VideoJS Library (video-js-3.1.0)
3. Video Preset (video_presets-7.x-2.1)
thank before for your quick repply.
Comment #6
Jorrit CreditAttribution: Jorrit commentedYou should wait one day until the code with my fix is turned into the next -dev release. This does not happen instantly, Drupal.org creates -dev releases once a day.
Comment #7
dannycheah CreditAttribution: dannycheah commentedSorry Jorrit for the late reply. Here is the output after I added the var_dump($vars); as instructed.
array(18) {
["items"]=> array(2) {
["mov"]=> array(6) {
["filename"]=> string(36) "Student_Alpha-Starfish(09-01-05).mov"
["filepath"]=> string(61) "public://videos/original/Student_Alpha-Starfish(09-01-05).mov"
["url"]=> string(118) "http://www.alphafriends.org.my/accelerate/sites/default/files/videos/ori..."
["uri"]=> string(61) "public://videos/original/Student_Alpha-Starfish(09-01-05).mov"
["filemime"]=> string(15) "video/quicktime" ["extension"]=> string(3) "mov" }
["thumbnail"]=> array(0) { }
}
["player_id"]=> string(9) "video-286"
["attributes"]=> array(2) {
["width"]=> string(3) "320" ["height"]=> string(3) "240"
}
["theme_hook_suggestions"]=> array(0) { }
["zebra"]=> string(3) "odd" ["id"]=> int(1)
["directory"]=> string(25) "sites/all/modules/videojs"
["classes_array"]=> array(1) { [0]=> string(7) "videojs" }
["attributes_array"]=> array(0) { }
["title_attributes_array"]=> array(0) { }
["content_attributes_array"]=> array(0) { }
["title_prefix"]=> array(0) { } ["title_suffix"]=> array(0) { }
["user"]=> object(stdClass)#8 (4) {
["uid"]=> int(0) ["hostname"]=> string(13) "183.78.10.235"
["roles"]=> array(1) { [1]=> string(14) "anonymous user"
}
["cache"]=> int(0) } ["db_is_active"]=> bool(true)
["is_admin"]=> bool(false) ["logged_in"]=> bool(false)
["is_front"]=> bool(false) }
Comment #8
dannycheah CreditAttribution: dannycheah commentedHere are the snapshot (attached: Configure Views.png) of how I configure my views. I'm not sure if this is what you are asking. If not please let me know and I will try my best to furnished you with the information you needed.
Also, now i am getting a new error when I click on Update Preview in the edit View page. Please refer to attached "Update Preview.png"
Comment #9
dannycheah CreditAttribution: dannycheah commentedHi Jorrit,
I am now using the latest 7.x-2.x-dev released on 2012-Mar-05. It solved my problem now. Will continue to test and see if there are any more problems.
Thank you very much for your help.
Regards,
Danny
Comment #10
Jorrit CreditAttribution: Jorrit commentedI am going to mask this one as fixed. If you encounter another error, please reopen this issue or open a new one.
Comment #11
hendry.a CreditAttribution: hendry.a commentedthank you jorrit..new video module dev solved the problem..
Comment #12
dannycheah CreditAttribution: dannycheah commentedDear Jorrit,
So far it has work flawlessly. I will keep you updated if there is any issues with the module. Once again thank you.
Regards,
Danny.