Hi,

I really like the look of emfield and it could replace the video module on our web site, but I cant get it to work out of the box.

When I try and add a video using custom url all I get is a message to say "You have specified an invalid media URL or embed code" it doesn't matter what video I use but I still get the problem.

I would customise the custom url inc file for what I want but would like to see it work out of the box first.

David

CommentFileSizeAuthor
#5 zzz_custom_url.inc_.patch137 bytespfournier

Comments

Flake’s picture

I'm having the same issue.

Was looking at the zzz_custom_url.inc with no success....

Ok, so its falling down on the validation as it can't find a provider.... I think...

Drupal 5, by the way.

humanoid’s picture

Priority: Normal » Critical

I have the same problem suddenly. But it worked fine before. Now when I edit the custom flied configuration of Embedded Media Field, it alwas say "You have specified an invalid media URL for Custom URL". Also if I edit a node with a video inside, it will not work anamyore because the provider information ist lost after saving.

Edit/Update: This Bug is definetly a bug in Version 5.x 1.3. I've rolled back to version 5.x 1.2 and it works fine again.

best regards
humanoid

dwkitchen’s picture

I am also now using 5.x-1.2 and it is working

David

High_Noonan’s picture

Thanks for the tip on downgrading.

If it helps, I noticed that the tag got stripped off of the Audio embed. I have working video embeds (YouTube and Last.fm) with 5.x-1.3, but no image (Flickr URL) or audio (embed from odeo). At present, those two would just be gravy for me. Video is really what I was after.

pfournier’s picture

StatusFileSize
new137 bytes

There is a bug in the function that validates the URL (video_cck_zzz_custom_url_extract). Use the attached patch on version 5.x-1.7 to fix it, or just replace

preg_match('@\ .('. $types .')@i', $embed, $matches)

by

preg_match('@\.('. $types .')@i', $embed, $matches)

(no space between \ and .)

romansta’s picture

Works for me.

spottmedia’s picture

Just incase you were still having this problem with flickr (on V6), just be aware you also get this error to if you have not set up your flickr API details in:

/admin/content/emfield/media

It's not a very specific error message and caused me grief for a while.

plcoelho’s picture

Version: 5.x-1.3 » 6.x-1.0

I have the same problem with Picasa and D6.11.
It doesn't accept neither the URL nor the html.

endlasuresh’s picture

same for me it doesnt accepts images from any sites either imageshack or flickr or picasa

kobnim’s picture

subscribing

danny englander’s picture

subscribing

pradeepbagga’s picture

I m adding YouTube embed code or url. It works fine but when I add our generated youtube embed code this error show and page doesn't save. Can any one tell me about solution.
Thanks in advance

j0e’s picture

Version: 6.x-1.0 » 6.x-1.19

Same issue here for custom url; I tried several links to wmv and flv files. All returned: You have specified an invalid media URL or embed code.

calebgilbert’s picture

Status: Active » Reviewed & tested by the community

The patch from pfournier worked for me - thanks

j0e’s picture

Does anyone have a solution for custom url 6.x-1.19?

Dracolyte’s picture

Version: 6.x-1.19 » 6.x-1.16

I'm having the same problem -- the fixes above seem more relevant for D5 than D6. I'm wading through the code now to try to find the problem.

j0e’s picture

Hope you find it!

Dracolyte’s picture

Well, I'm embarrassed to say that for me the solution was pretty easy. After I enabled "Custom URL" in the Embedded Video admin section, I then edited my custom content type that contained the embedded video field. The trick is that you ALSO have to enable "Custom URL" there by configuring the embedded video content type and checking the "Custom URL" checkbox.
Like I said, embarrassing.

j0e’s picture

well, that makes two of us. heheh....thanks for that. kinda like having your glasses on your head.

well, not exactly though, because it's a bit redundant to have a general settings checkbox and then a second widget checkbox... a per widget setting alone would do the trick... and would have been less puzzling...

aaron’s picture

Version: 6.x-1.16 » 5.x-1.x-dev
Status: Reviewed & tested by the community » Fixed

thanks, @pfournier. i fixed that in the d5 branch. that doesn't apply to the d6 branch of course. the d6 issue is more of a ui issue. please open a new thread for that, along with suggestions.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

sojusnik’s picture

tipplefip’s picture

Status: Closed (fixed) » Active

you ALSO have to enable "Custom URL" there by configuring the embedded video content type and checking the "Custom URL" checkbox.

Where is this? I don't see any configuration option for "Custom URL" either at admin > settings > video, or on the video content type itself.

alex ua’s picture

Please don't reopen old cases that aren't relevant to your issue. This was fixed in 5.x, if you're even using 5.x, your issue should be added to other already existing and open tickets.

alex ua’s picture

Status: Active » Closed (fixed)
stevegmag’s picture

et voila!

kbell’s picture

" the d6 issue is more of a ui issue. please open a new thread for that, along with suggestions."
Can someone please cross-post that issue link here?
Thanks,
=k=