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.
I don't know if anyone has this issue, but after tearing my hair out trying to figure out this issue I've narrowed it down to AdvAgg not working correctly with the module. I disabled all AdvAgg modules individually until I ended up with the core AdvAgg module and still didn't work. The only way I fixed it was completely disabling AdvAgg.
I don't know if this should be posted in the AdvAgg module, just wanted to throw in another potential solution for this problem.
@atracht: your observation is insightful, since the site in question for me has AdvAgg enabled. For now my temporary fix has simply been to modify the Media browser Views display to 'Use pager: Display all items' instead of Page: Full. Not ideal, but at least it 'works'.
Quick Trick:
Install jquery_update module and change admin theme's (seven) jquery from 1.4 to 1.5 or any update version. This fixed the issue on my system.
I'm having this issue even on the first page. Turns out the browse button opening the media plugin (on product variations in commerce kickstart, in my case) triggers two media browser overlays to open on top of each other. If I close one it works just fine.
Any ideas how to get around this? I'm totally new to drupal. Quick trick above did not do the trick for me.
steinmbCreditAttribution: steinmb as a volunteer commented
Status:
Active
» Postponed (maintainer needs more info)
People seeing this. Please include in your reports if you have jQuery update installed and if so, what version of jQuery have you configured to be used. Also, please test latest dev version to make sure this is not already fixed.
Hello,
using Drupal 7.38 and Media 7.x-2.0-beta1, I have to put Seven in jQuery 1.8 to get rid of the error message "You have not selected anything!" (shown even on page #1).
cameron princeCreditAttribution: cameron prince as a volunteer commented
I can confirm that this started after recently updating the media module. jQuery Update was not originally installed. The issue was resolved after following the recommendation in #11.
Another confirmation that on our build, Media browser seems to now require Jquery 1.8 -- we're also now using 1.8 on our admin theme only and so far no issues, but in the past we've had issues with Panopoly Magic (which we also run) and Jquery versions higher than 1.7 so we shall see.
This is caused by duplicate id's in the mediabrowser field widget. A patch available in #2534724: Browser window opens twice for field image. The patch also fixes the error message 'You have not selected anything!'.
I see the Quick trick #11 worked for you, but it's just a Quick Trick. You should also check #24 too if the solution in patch works and provide your feedback here and there as well.
I think this issue will be resolved in the next version release.
Confirmed #13. In my case, it is a field collection, containing a set of "image + text", with unlimited values, and it will only happen when I try to select an image for the second or further item. Hope this helps fixing it. Thx!
Comments
Comment #1
DamienMcKennaI ran into this myself, the problem is a duplicate of #2104493: Media Browser only shows 1 page of results (Media v1).
Comment #2
atracht CreditAttribution: atracht commentedI don't know if anyone has this issue, but after tearing my hair out trying to figure out this issue I've narrowed it down to AdvAgg not working correctly with the module. I disabled all AdvAgg modules individually until I ended up with the core AdvAgg module and still didn't work. The only way I fixed it was completely disabling AdvAgg.
I don't know if this should be posted in the AdvAgg module, just wanted to throw in another potential solution for this problem.
Comment #3
paskainos CreditAttribution: paskainos commentedComment #4
paskainos CreditAttribution: paskainos commentedI reopened this issue because:
@atracht: your observation is insightful, since the site in question for me has AdvAgg enabled. For now my temporary fix has simply been to modify the Media browser Views display to 'Use pager: Display all items' instead of Page: Full. Not ideal, but at least it 'works'.
Comment #5
DamienMcKennaOk, kets keep this focused on v2, which has very different JS than v1.
Also bumping this to a Major bug report as it's kind of a glaring problem.
FYI, for anyone using AdvAgg it's recommended to update it to v7.x-2.3, which fixes some compatibility problems there.
Comment #6
vegardjo CreditAttribution: vegardjo commentedI just experienced this myself, but updating to Advagg 2.4 (from 2.0) solved the problem for me
Comment #7
dougvann CreditAttribution: dougvann commentedConfirming again.
updating to advagg 2.4 SOLVES the issue
Comment #8
steinmb CreditAttribution: steinmb commentedNot everyone seeing this uses advagg.
Comment #9
scott.browne CreditAttribution: scott.browne commentedI had to turn off in the performance area, aggragate javascript. I don't really want to do that, but it won't work otherwise.
EDIT: I turned drupal aggregate js off and back on and now it works without any issues adding files.
Comment #10
ergophobe CreditAttribution: ergophobe commentedComment #11
himanshupathak3 CreditAttribution: himanshupathak3 as a volunteer and at Srijan | A Material+ Company commentedIt's jquery 1.4 version's issue
Quick Trick:
Install jquery_update module and change admin theme's (seven) jquery from 1.4 to 1.5 or any update version. This fixed the issue on my system.
Comment #12
Hydra CreditAttribution: Hydra commentedQuicktrick worked for me, definitely worth a try if you trying diffrenet things to find out what might cause this message for you.
Comment #13
ericc123 CreditAttribution: ericc123 commentedI'm having this issue even on the first page. Turns out the browse button opening the media plugin (on product variations in commerce kickstart, in my case) triggers two media browser overlays to open on top of each other. If I close one it works just fine.
Any ideas how to get around this? I'm totally new to drupal. Quick trick above did not do the trick for me.
Drupal 7.38 and media 7.x-2.0-beta1
Comment #14
chrisjlock CreditAttribution: chrisjlock commentedhaving same issue as ericc123 D 7.38 media 7.x-2.0-beta1
Comment #15
Salif CreditAttribution: Salif as a volunteer and commentedI'm having the same issue on all pages even on page 1
Drupal 7.38 and media 7.x-2.0-beta1
Comment #16
kclstudios CreditAttribution: kclstudios commentedAlso, having same issue as eric123:
Duplicate media browser modals opening when using File field/Media widget.
Drupal 7.38
Media 7.x-2.0-beta1
Comment #17
steinmb CreditAttribution: steinmb as a volunteer commentedPeople seeing this. Please include in your reports if you have jQuery update installed and if so, what version of jQuery have you configured to be used. Also, please test latest dev version to make sure this is not already fixed.
Comment #18
PhilYHello,
using Drupal 7.38 and Media 7.x-2.0-beta1, I have to put Seven in jQuery 1.8 to get rid of the error message "You have not selected anything!" (shown even on page #1).
Comment #19
cameron prince CreditAttribution: cameron prince as a volunteer commentedI can confirm that this started after recently updating the media module. jQuery Update was not originally installed. The issue was resolved after following the recommendation in #11.
Thanks!
Comment #20
Salif CreditAttribution: Salif as a volunteer and commentedI'm using jQuery update. 1.8 as default jQuery version and seven as admin theme.
Comment #21
steinmb CreditAttribution: steinmb as a volunteer commentedComment #22
broeker CreditAttribution: broeker commentedAnother confirmation that on our build, Media browser seems to now require Jquery 1.8 -- we're also now using 1.8 on our admin theme only and so far no issues, but in the past we've had issues with Panopoly Magic (which we also run) and Jquery versions higher than 1.7 so we shall see.
Comment #23
AndyD328Another confirmation that upgrading to jQuery 1.8 for the admin theme fixed the issue.
Prior to that we were seeing this issue on all media browser 'Library' pages including page 1.
Comment #24
idebr CreditAttribution: idebr as a volunteer commentedThis is caused by duplicate id's in the mediabrowser field widget. A patch available in #2534724: Browser window opens twice for field image. The patch also fixes the error message 'You have not selected anything!'.
Comment #25
esteinborn CreditAttribution: esteinborn commentedI agree with #24, patch #30 (https://www.drupal.org/node/2534724) fixes this issue for me.
Comment #26
steinmb CreditAttribution: steinmb as a volunteer commentedI suggest we close this as a duplicate of #2534724: Browser window opens twice for field image.
Comment #27
Ralf Eisler CreditAttribution: Ralf Eisler commentedChoosing "Alternate jQuery version for administrative pages" solved the issue for me.
Comment #28
Snakehead CreditAttribution: Snakehead commentedThis Post #11 was VERY, VERY helpful. Thank You very much!
Hans
Comment #29
hamrant CreditAttribution: hamrant at DEWEB Studio commentedPost #11 helped to solve the problem
Comment #30
himanshupathak3 CreditAttribution: himanshupathak3 as a volunteer and at Srijan | A Material+ Company commentedGuys,
I see the Quick trick #11 worked for you, but it's just a Quick Trick. You should also check #24 too if the solution in patch works and provide your feedback here and there as well.
I think this issue will be resolved in the next version release.
Comment #31
Tritof CreditAttribution: Tritof commented#24 worked for me.
Comment #32
Stephen OllmanPatch supplied at #26(#24) above then #53 worked for me.
I'm now able to select library file and press submit and also double click the library file to select and submit at the same time.
Comment #33
doitDave CreditAttribution: doitDave commentedConfirmed #13. In my case, it is a field collection, containing a set of "image + text", with unlimited values, and it will only happen when I try to select an image for the second or further item. Hope this helps fixing it. Thx!