Hi,
I tried adding a youtube video and upon submit it gave me something like :
link to video (video id) with 0 bytes, clicking on link opens up a pop up displaying the video which is fine but when clicked on view of the media, I get nothing (Am I missing something here)
Also when tried to find the video in wysiwyg browser or youtube media library i get nothing? I can probably look into this but I quickly wanted to find out if I am missing something here, maybe adding something in styles to display the video correctly?
I have:
1> Media youtube enabled.
2> In Media Types, Video settings I have allowed youtube streams.
3> Anything else I am missing?
Comments
Comment #1
aaron commentedodd. works fine for me, with your set up. from admin video, i click on youtube, then the 'from url' vertical tab. from wysiwyg, i just click on the 'from url' tab, and enter the youtube url. you get a thumbnail representation after that, and if you put it through wysiwyg, you get the large video. :(
Comment #2
effulgentsia commentedThis issue is quite old, so I'm closing it. Please re-open if you're still having the original problem. Thanks!
Comment #3
mstrelan commentedI am also experiencing this issue with a fresh D7 RC2 install.
media-7.x-1.x-dev
media_youtube-7.x-1.x-dev
styles-7.x-1.0-alpha4
I get the following error at admin/config/media/file-styles/edit/original
* Notice: Undefined index: preset_name in theme_media_youtube_embed() (line 216 of /home/michael/workspace/sandbox/sites/all/modules/media_youtube/media_youtube.module). * Notice: Undefined index: effects in theme_media_youtube_embed() (line 229 of /home/michael/workspace/sandbox/sites/all/modules/media_youtube/media_youtube.module). * Warning: Invalid argument supplied for foreach() in theme_media_youtube_embed() (line 229 of /home/michael/workspace/sandbox/sites/all/modules/media_youtube/media_youtube.module).Comment #4
Anonymous (not verified) commentedIn media_youtube.module on line 216 there is
But it should be
This solves at least part of the problem. But now I'm on a page without a "Save" button... can't save changes...
Comment #5
Anonymous (not verified) commentedI have to say the Media-Media_Youtube-Styles-File_style stack is a real mess. I got it almost working now by installing non-matching module versions. Things that go wrong:
- add a new file style (doesnt work, no log error)
- save an existing file style (no submit/save button on the page at admin/config/media/file-styles/edit/large
- show the actual youtube video on the node.tpl.php page (using file-style "large" I get a media icon with the Youtube ID as a link to the youtube video, I don't get the youtube embedded widget as I see on the file style preview)
Also uninstalling this stack is very problematic. All kinds of errors prevent quick uninstall-reinstalls. For example, Style 7x2x wants to add an index key on column 'label', which does not exist.
Comment #6
aaron commentedsorry about the confusion between stacks. unfortunately, though the versions are a bit more stable now, we still can't create or save file styles yet. that's next on my list. not related per se to this module, although once that's in place (in the styles ui module), there will be likely work to integrate this with it.
the other issues reported should be resolved, however.
Comment #7
jamc17 commentedI'm working width media_youtube module, media and media_gallery, but when I want see a video form youtube I can't see the preview image, This preview file don't exists in media_gallery_thumbnail/public/media-youtube, I only see the ID and when I click on it, I can see the video.
How can I solve this problem please?.
Comment #8
ischia commentedI have the same problem like #7. I found out that this problem occurs only in live web. In my copy on localhost there is all ok. So I upload video on localhost, then copy created image from sites/default/files/media-youtube to server. And then I upload the video in my web. According to this I think the problem is with copying image to temp folder and then to sites/default/files/media-youtube.
Maybe this helps to solve the bug in module...
Comment #9
effulgentsia commentedRetitling issue to reflect #8. Sounds like from the comment thread here, there may have been other issues with older releases of Styles. If any of those problems are still happening, please search the issue queue, and if not there, open a new issue.
Comment #10
Toxid commentedI have the same problem, but it works with normal images, it's just the youtube thumbnails that doesn't appear. That's why I don't think it's a styles-issue, more likely a media_youtube problem.
Comment #11
steinmb commentedHmm I'm also seeing this on one of my live sites, but doing the same on my local copy, seems to be working just fine.
I changed tmp-directory to 777, but that did not change anything, nor should it, then all the other modules are able to R/W to it without any problems. But I think my logs might shed some light on this issue:
Zr7wNQw12l8 is the correct youtube ID, so I think this it might be where it fails to do it's stuff. Note that this is not only a media_youtube related problem, but also the media_vimeo have problem creating thumbnails, and aslo that one works perfecton my local sandbox.
Edit: Checked $file that we pass to file_save() and the content of the array is identical on both servers:
Comment #12
wjaspers commentedJust tidying up the queue so all efforts are documented in the same place.
See: http://drupal.org/node/1180386#comment-4607124