Trying to embed using the wordpress [ted id=xxx] format, after saving I get this:

The selected file emvideo-ted-vu=http:--video.ted.com-talks-dynamic-DavidPogue_2007-medium.flv&su=http:--images.ted.com-images-ted-tedindex-embed-posters-DavidPogue-2007.embed_thumbnail.jpg&vw=432&vh=240&ap=0&ti=196&introDuration=15330&adDuration=4000&postAdDuration=830&adKeys=talk=david_pogue_on_the_music_wars;year=2007;theme=live_music;theme=ted_in_3_minutes;theme=whipsmart_comedy;theme=the_creative_spark;event=TED2007;&preAdTag=tconf.ted-embed;tile=1;sz=512x288;.jpg could not be saved. Its name exceeds the 255 characters limit. Please rename the file and try again.

Comments

Anonymous’s picture

Also happens for the embed code format. I'm using the "store inline media" with the video cck emfield.

Also get this in watchdog:

	User warning: Data too long for column 'field_video_value' at row 1 query: UPDATE content_field_video SET vid = 4812, nid = 135, field_video_embed = '[ted id=196]', field_video_value = 'vu=http://video.ted.com/talks/dynamic/DavidPogue_2007-medium.flv&su=http://images.ted.com/images/ted/tedindex/embed-posters/DavidPogue-2007.embed_thumbnail.jpg&vw=432&vh=240&ap=0&ti=196&introDuration=15330&adDuration=4000&postAdDuration=830&adKeys=talk=david_pogue_on_the_music_wars;year=2007;theme=live_music;theme=ted_in_3_minutes;theme=whipsmart_comedy;theme=the_creative_spark;event=TED2007;&preAdTag=tconf.ted/embed;tile=1;sz=512x288;', field_video_provider = 'ted', field_video_data = 'a:3:{s:19:\"emvideo_ted_version\";i:1;s:5:\"flash\";a:3:{s:3:\"url\";s:494:\"http://video.ted.com/assets/player/swf/EmbedPlayer.swf?vu=http://video.ted.com/talks/dynamic/DavidPogue_2007-medium.flv&su=http://images.ted.com/images/ted/tedindex/embed-posters/DavidPogue-2007.embed_thumbnail.jpg&vw=432&vh=240&ap=0&ti=196&introDuration=15330&adDuration=4000&postAdDuration=830&adKeys=talk=david_pogue_on_the_music_wars;year=2007;theme=live_music;theme=ted_in_3_minutes;theme=whipsmart_comedy;theme=the_creative_spark;event=TED2007;&preAdTag=tconf.ted/embed;tile=1;sz=512x288;\";s:4:\"size\";s:6:\"429074\";s:4:\"mime\";s:29:\"application/x-shockwave-flash\";}s:7:\"emthumb\";i:0;}', field_video_status = 1, field_video_version = 0, field_video_duration = 0 WHERE vid = 4812 in _db_query() (line 141 of C:\Inetpub\wwwroot\tedxworld.com\includes\database.mysqli.inc).
Anonymous’s picture

Here's what I did to solve it:

	if ($embed && preg_match('@\"vu=([^\"]+)\"@i', $embed, $matches)) {
	  parse_str($matches['0'], $query);
		return 'vu=' . $query['"vu'];
	}
zerolab’s picture

Thanks for the debug info.

This should be solved in the new dev version to be pushed soon to CVS.
Can you test the code from http://drupal.org/node/925140#comment-3551226 and see if it gives any other errors?
The fix there is pretty much the same, except I am saving a bit more stuff there (looking into avoiding using global variables)

zerolab’s picture

Status: Active » Patch (to be ported)
zerolab’s picture

Status: Patch (to be ported) » Closed (fixed)