Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
Frank Ralf CreditAttribution: Frank Ralf commentedI 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.
Comment #2
nhck CreditAttribution: nhck commentedThe (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
Comment #3
Frank Ralf CreditAttribution: Frank Ralf commentedThanks for the thorough explanation.
Comment #4
nhck CreditAttribution: nhck commentedFrank, maybe you can test this patch #2280391: Add media/*/format-form/* as an admin path?
Comment #5
Wolfgang62 CreditAttribution: Wolfgang62 commentedI know. 3.5.8 is the way to go.
So, the media modul is guilty... :D
Comment #6
markhalliwellI have updated the release notes of jquery_update 7.x-2.4 to reflect the change that occurred and the solution to fix it: