After updating jQuery Update 7.x-2.3 to 2.4, youtube, soundcloud or vimeo videos can not be uploaded any more.
Media 7.x-1.4
Media: SoundCloud 7.0-1.0
Media: Vimeo 7.x-1.0-beta5
Media YouTube 7.0-2.0 rc4

Comments

Frank Ralf’s picture

I can confirm this issue. When uploading a local image file, the final "Save" button of Media Browser doesn't react to clicking so no image gets inserted.

nhck’s picture

The (unsatisfying) answer to this is simple:
Media doesn't support jquery > 1.5 and you cannot use the setting Alternate jQuery version for administrative pages because media is including an iframe for this dialog which apparently (as per path_is_admin()) is not an admin page.

Maybe media should set this to be an admin path. It does this for these paths: media/browser and media/browser/* but the iframe uses a path like this: media/*/format-form/*

And I suppose this could be changed, but there are other underlying issues:

Note also: There are known problems with ckeditor > 4.0: #2177893: Custom wrapper breaks tokens with CKEditor >=4.0 without widget plugin

Frank Ralf’s picture

Thanks for the thorough explanation.

nhck’s picture

Frank, maybe you can test this patch #2280391: Add media/*/format-form/* as an admin path?

Wolfgang62’s picture

Note also: There are known problems with ckeditor > 4.0

I know. 3.5.8 is the way to go.

So, the media modul is guilty... :D

markhalliwell’s picture

Category: Bug report » Support request
Priority: Major » Normal
Status: Active » Closed (works as designed)

I have updated the release notes of jquery_update 7.x-2.4 to reflect the change that occurred and the solution to fix it:

Important:

#2102211: Default to the latest version of jQuery changed the default version from 1.5 to the latest available jQuery version, in the case of 7.x-2.4: 1.10.

If your site has never set the jquery_update_jquery_version variable, it will now default to the latest jQuery version available.

If any modules break because of this update, you should open an issue with the relevant module so it can update it's code to support newer versions of jQuery. jQuery Update has always allowed a site to choose which jQuery version is appropriate for that particular site (ie: what works with other installed libraries). Opening issue and declaring that jQuery Update has broke your site will be "Closed (works as designed)".

To mitigate the pain of upgrading and waiting for the affected module(s) to fix their code, you can temporarily set the version being used back to 1.5.x in /admin/config/development/jquery_update, or by adding the following to your settings.php file:

$conf['jquery_update_jquery_version'] = '1.5';