The module had been working fine for a while, until just a few days ago. It will accept other providers, but not YouTube, when I get the following error message: You have specified an invalid media URL or embed code.

Thanks in advance

CommentFileSizeAuthor
#21 media_youtube.patch647 bytesshacky7
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

EmpireNM’s picture

Version: 6.x-1.26 » 6.x-2.4

I also tried upgrading to 6.x-2.4, and 6.x-2.x-dev but I still get the same error.

Thanks in advance for any assistance.

EmpireNM’s picture

I was wondering if it would be an HTML5 issue. So after a closer look, I see that the embed code options on YouTube now feature a checkbox to "Use old embed code".

thanks

kevinwalsh’s picture

I can confirm this on 6.x-2.4. This was the case with Vimeo a few months ago, now Youtube has joined the "use old embed code" party.

liquidcms’s picture

i think if you select the Long Link option it still works.

liquidcms’s picture

Version: 6.x-2.4 » 6.x-2.5
Priority: Normal » Critical

Long Link worked last week; but no longer.

up-revving version and priority.. module seems busted at moment at least with YouTube.

liquidcms’s picture

tried back revving to 2.3.. still busted. gone back to 1.26 - that works. :)

SteveK’s picture

Also having this issue, specifically with YouTube videos. I'm assuming this is a change with YouTubes URL and embed code.

jhofer’s picture

Also having this problem... even with the latest dev version... is there a cache that needs to be cleared for it to work? I've installed the Youtube and Vimeo modules but only Vimeo is shown where it says:

Enter the URL or Embed Code here. The embedded third party content will be parsed and displayed appropriately from this.
The following services are provided: Vimeo

jhofer’s picture

Also - are we supposed to use the video's url or the embed code... noticing that the embed code is much smaller than before.

ptsai’s picture

Also having this problem.

stephanieshea’s picture

having same problem...

ptsai’s picture

@SteveK @stephaniechausse @jhofer how are you dealing with this issue? @liquidcms have you experienced any issues with going back to 1.26? Any patches out there I'm not finding?

thanks.

coolhandlukek2’s picture

Subscribe - Same problem with the youtube iframe here

wfx’s picture

same issue here - subscribe

jhofer’s picture

Try removing all other providers.

I found that by backing out my other provider (Vimeo) Youtube is now working. This is okay since we are working with a small group of content providers who all want to use Youtube anyway. Could be a problem for sites that wish to source from multiple 3rd party video content providers.

truyenle’s picture

+subscribe

Roze-1’s picture

Subscribing !

pnkflydgr’s picture

Subscribing

gawlowski’s picture

May be it's stupid question. Have You installed the media_youtube?

Works fine for me with - 6.x-2.5 (media_youtube 6.x-1.3).

unc0nnected’s picture

Priority: Critical » Normal

Using the old embed code worked for me

shacky7’s picture

FileSize
647 bytes

Fixed, patch attached.

Some urls like:
http://www.youtube.com/watch?feature=player_embedded&v=gBZnPM27gK8#!
failed regex because it required v= to be first argument. Now it works fine.

crosshairs’s picture

I'm experiencing the same problem described above, ie the embedded media field accepts Vimeo links but not embed codes from YouTube (tried both old and new format). I get the message:

You have specified an invalid media URL or embed code

and as in #8:

... I've installed the Youtube and Vimeo modules but only Vimeo is shown where it says:

Enter the URL or Embed Code here. The embedded third party content will be parsed and displayed appropriately from this.
The following services are provided: Vimeo

Using emfield 6.x-2.5 and Media: YouTube 6.x-1.3. Edit: Have also tried with latest dev of Media:YouTube (6.x-1.x-dev).

I've allowed content from both Vimeo and YouTube at admin/content/emfield/emvideo
I've tried applying the patch in a dev environment. I get the following result and no change to the issue:

patching file youtube.inc
patch unexpectedly ends in middle of line
Hunk #1 succeeded at 122 with fuzz 1.

Any thoughts?

elnucli’s picture

Subscribing

crosshairs’s picture

Title: You have specified an invalid media URL or embed code. » Youtube: You have specified an invalid media URL or embed code.
Category: support » bug
Priority: Critical » Normal
Status: Needs review » Active

Upgrading to latest dev of emfield (6.x-2.x-dev) and Media: YouTube fixed the issue. Edit: Also, check that in your content type's video field, under 'Manage Fields > Video Settings > Providers Supported'. that you have selected for all/both providers to be supported. I sheepishly discovered I had overlooked this setting.

torafat’s picture

Title: Youtube: You have specified an invalid media URL or embed code. » You have specified an invalid media URL or embed code.
Assigned: Unassigned » torafat

not solve - You have specified an invalid media URL or embed code.

dyke it’s picture

the problem for me seems to be when the link is of the form "http://youtu.be/vCifjbni0LM" rather than the direct youtube link or embed code (which work fine). this is the format youtube provides when you click the share button on a video, which means that users will likely encounter the error.

a.d2000’s picture

Can I add any custom URL without knowing Provider like if my audio files are hosted on Kickapps or somewhere else and I want to give direct url as below :

http://media.kickstatic.com/kickapps/03383.mp3

Is that work with this module ? It is not working for me right now. I have added one Embedded Audio field into my content type.

Giving me error : You have specified an invalid media URL or embed code.

anyone can help here ?

indydas’s picture

Installing the media_youtube module fixed it for me as pointed out in http://drupal.org/node/1041652#comment-5070808.

This means I can use embed code too now. :)

truyenle’s picture

Yeah, intall media_youtube work for me too.

But there is another issue. I set the display of embedded video field to Shadowbox: Image Thumbnail -> Full Size Video. The video seem to play ok on pc, mac, android, but not on IPAD, IPHONE, IPOD.

On these apple mobile device, it open the thumbnail image in the shadowbox and need user to do one more touch then it go to the same thumbnail in youtube. From there, user need to do one more click to open video in youtube not in the shadowbox of my site anymore.

This behavior doens't happen in other devices like pc, mac, android phones. android tablet.

bharathkumarkn’s picture

Assigned: torafat » Unassigned
Category: bug » support
Priority: Normal » Critical
Status: Active » Needs review

I have the same problem in embeding slideshare videos. I get the same msg
"You have specified an invalid media URL or embed code"". Need Help..

zeuscool’s picture

Title: Youtube: You have specified an invalid media URL or embed code. » You have specified an invalid media URL or embed code.
Category: bug » support
Priority: Normal » Critical
Status: Active » Needs review

installing media_youtube worked just fine, thanks

drupal3013’s picture

i have the same error message
You have specified an invalid media URL or embed code.
with blip.tv , myspace, Ku6, Livestream, myvi.ru, sevenload, spike TV, TED, tube.ua, TVBrussel, UStream.TV.

Katharine_Gates’s picture

Hello I finally solved this problem by:
1) enabling the appropriate video submodule, i.e. Media:YouTube
2) making sure that the link was in the form http://www.youtube.com/watch?v=oWv7Bc6CtAI.