Comments

DamienMcKenna’s picture

Status: Active » Closed (duplicate)

I ran into this myself, the problem is a duplicate of #2104493: Media Browser only shows 1 page of results (Media v1).

atracht’s picture

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.

paskainos’s picture

Issue summary: View changes
Status: Closed (duplicate) » Active
paskainos’s picture

I reopened this issue because:

  1. I am experiencing this issue.
  2. #2104493: Media Browser only shows 1 page of results (Media v1) pertains to Version: 7.x-1.3, and the patch (i.e. solution) pertains to the media.library.js file - which isn't part of 7.x-2.0-alpha2.

@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'.

DamienMcKenna’s picture

Title: You have not selected anything! when not on page 1 » "You have not selected anything!" when not on page 1 (Media v2)
Version: 7.x-2.0-alpha2 » 7.x-2.x-dev
Priority: Normal » Major

Ok, 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.

vegardjo’s picture

I just experienced this myself, but updating to Advagg 2.4 (from 2.0) solved the problem for me

dougvann’s picture

Title: "You have not selected anything!" when not on page 1 (Media v2) » SOLVED "You have not selected anything!" when not on page 1 (Media v2)

Confirming again.
updating to advagg 2.4 SOLVES the issue

steinmb’s picture

Title: SOLVED "You have not selected anything!" when not on page 1 (Media v2) » "You have not selected anything!" when not on page 1 (Media v2)

Not everyone seeing this uses advagg.

scott.browne’s picture

I 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.

ergophobe’s picture

himanshupathak3’s picture

It'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.

Hydra’s picture

Quicktrick worked for me, definitely worth a try if you trying diffrenet things to find out what might cause this message for you.

ericc123’s picture

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.

Drupal 7.38 and media 7.x-2.0-beta1

chrisjlock’s picture

having same issue as ericc123 D 7.38 media 7.x-2.0-beta1

Salif’s picture

I'm having the same issue on all pages even on page 1
Drupal 7.38 and media 7.x-2.0-beta1

kclstudios’s picture

Also, 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

steinmb’s picture

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.

PhilY’s picture

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 prince’s picture

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.

Thanks!

Salif’s picture

I'm using jQuery update. 1.8 as default jQuery version and seven as admin theme.

steinmb’s picture

Status: Postponed (maintainer needs more info) » Active
broeker’s picture

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.

AndyD328’s picture

Another 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.

idebr’s picture

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!'.

esteinborn’s picture

I agree with #24, patch #30 (https://www.drupal.org/node/2534724) fixes this issue for me.

steinmb’s picture

Status: Active » Closed (duplicate)

I suggest we close this as a duplicate of #2534724: Browser window opens twice for field image.

Ralf Eisler’s picture

Choosing "Alternate jQuery version for administrative pages" solved the issue for me.

Snakehead’s picture

This Post #11 was VERY, VERY helpful. Thank You very much!
Hans

hamrant’s picture

Issue summary: View changes

Post #11 helped to solve the problem

himanshupathak3’s picture

Guys,

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.

Tritof’s picture

#24 worked for me.

Stephen Ollman’s picture

Patch 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.

doitDave’s picture

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!