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?

CommentFileSizeAuthor
#7 mediaYoutubeProblems.jpg75.49 KBjamc17

Comments

aaron’s picture

Status: Active » Postponed (maintainer needs more info)

odd. 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. :(

effulgentsia’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

This issue is quite old, so I'm closing it. Please re-open if you're still having the original problem. Thanks!

mstrelan’s picture

Status: Closed (cannot reproduce) » Active

I 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).
Anonymous’s picture

In media_youtube.module on line 216 there is

$preset_name = $variables['preset_name'];

But it should be

$preset_name = $variables['style_name'];

This solves at least part of the problem. But now I'm on a page without a "Save" button... can't save changes...

Anonymous’s picture

I 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.

aaron’s picture

sorry 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.

jamc17’s picture

Version: 7.x-1.x-dev » 7.x-1.0-alpha4
StatusFileSize
new75.49 KB

I'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?.

ischia’s picture

I 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...

effulgentsia’s picture

Title: Adding a youtube video returns no preview » On some web hosts, preview thumbnail image isn't generated

Retitling 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.

Toxid’s picture

I 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.

steinmb’s picture

Version: 7.x-1.0-alpha4 » 7.x-1.x-dev

Hmm 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:

http://example.com/media/browser?render=media-popup&types=&activePlugins=&disabledPlugins%5B%5D=library&multiselect=true&plugins=undefined
Referrer	http://example.com/media/browser?render=media-popup&types=&activePlugins=&disabledPlugins%5B%5D=library&multiselect=true&plugins=undefined
Message	Warning: filesize() [function.filesize]: stat failed for youtube://v/Zr7wNQw12l8 in file_save() (line 573 of /drupal7/includes/file.inc).

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:

    uid (String, 1 characters ) 1
    filename (String, 11 characters ) Zr7wNQw12l8
    uri (String, 23 characters ) youtube://v/Zr7wNQw12l8
    filemime (String, 13 characters ) video/youtube
    filesize (Integer) 0
    timestamp (Integer) 1307667343
    status (Integer) 1
    is_new (Boolean) TRUE
wjaspers’s picture

Status: Active » Closed (duplicate)

Just tidying up the queue so all efforts are documented in the same place.
See: http://drupal.org/node/1180386#comment-4607124