When I click on "Add Media" two media browsers are being opened on top of each other (see attached screenshot).

This is the URL "http://my-site.com/lt/node/99#overlay=lt/media/browser%3Frender%3Dmedia-...
Site is multilingual, therefore URL has "lt" for one of the languages.

Members fund testing for the Drupal project. Drupal Association Learn more


sacre’s picture


I posted a similar issue a few days ago. If you want to take a look at it, here is the link.
Link: http://drupal.org/node/1931838

jsagotsky’s picture

Hi. We had that problem too. It's because even though media_gallery is loading its own media browser, it doesn't prevent propagation to the default media browser. While debugging that we also found a problem with once() in the javascript, leading to a class with -processed-processed.

Here's a patch.

sacre’s picture

Priority: Normal » Critical
Status: Active » Reviewed & tested by the community

Wow.... thank you, it works!

gintass’s picture

Excellent! Thank you very much! I just hope this patch will be committed to the official module code.

MrPaulDriver’s picture

Confirm that this patch works

Bernsch’s picture

The patch in #2 also works in version 7.x-1.0-beta8
Only you must do it manually.

jsagotsky’s picture

I was having trouble applying this in drush make. Removed paths from the patch.

spaxdavis’s picture

Title: Two media browsers » Plupload not working in marinelli theme

Hi can somebody please help me. plupload does not appear in media gallery.i cannot upload multiple photos on the "add media" on galleries.
plupload only appears in "add file" i can upload multiple file on my folder.when i use media gaallery "add media" i can see them on the media browser's file/library but i can only submit one by one.i cannot submit many at once.pliz help

media gallery 7.x-2.x
media 7.x-2.x
marinelli 7.x-3.0 beta 11
plupload 7.x-2.x
plupload 1.5.7

Bernsch’s picture

Title: Plupload not working in marinelli theme » Two media browsers

But this has nothing to do with this topic.
Pleace create a new issues.

attheshow’s picture

Patch #7 works for me.

nicovangog’s picture

Can someone explain to me how I can do the patch. "Media_gallery-double_browser-1939186-2.patch" manual, Copy and Past, what piece of code and in which file. Media 7.x-1.3, Media Gallery 7.x-1.0-beta8.

jsagotsky’s picture


This should explain it: http://drupal.org/patch/apply

attheshow’s picture

@nicovangog: If you're able to use the patch command from the Terminal, you can use the instructions here: http://drupal.org/patch/apply

If you just feel more comfortable copying and pasting, it actually says the file that's being modified within the code of the patch file (media_gallery.addimage.js). If you look at the far left, look for the lines that have a minus sign (-) beside them. Those are lines that the patch is removing. The lines with a plus sign (+) beside them are the lines that the patch is adding. I hope this helps.

nicovangog’s picture

Oke, I give myself a little course "patches" with you hints.
Thank you very much!

cmwelding’s picture

Version: 7.x-2.x-dev » 7.x-1.0-beta8

In my case the patch worked. Then I applied the recent development update, and did not apply the patch. Now there are two browsers again, but it is workable. The top one has the plupload integration which can be used to upload multiple media. The second browser can be closed once I am done with the first one. This is still a problem and needs to be fixed. I applied above patch later to check but the problem persists even after the patch. Anybody having the same problem?

brantwynn’s picture

Issue summary: View changes
Status: Reviewed & tested by the community » Postponed (maintainer needs more info)

I have not been able to reproduce this issue. Can you confirm if it is still happening?

stockliasteroid’s picture

I still see this on 7.x-1.x-dev.

Edit: patch in #7 fixes the problem for me.

dan@dragonflycanoe.com’s picture

I am seeing the same problem as #15

brantwynn’s picture

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

I see the same problem as #15 as well on the 2.x-dev branch. I realize this issue is for the 7.x-1.0-beta8 branch, should a different issue be opened for that?

iknowbryan’s picture

The patch worked for me on 2.x-dev!

Mirabuck’s picture

Status: Active » Reviewed & tested by the community

Worked for me as well with 2.x dev. Seem like a good number of confirmations here. Marking this as RTBC unless there are any objections.

Mirabuck’s picture

With respect to #15 and #20: until this gets committed, the patch will need to be reapplied whenever you update the module.

brantwynn’s picture

Priority: Critical » Normal
Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

fenstrat’s picture

Version: 7.x-1.0-beta8 » 7.x-1.x-dev
Status: Closed (fixed) » Reviewed & tested by the community

In #24 the patch from #7 was committed to media_gallery-7.x-2.x.

However this bug also effects 7.x-1.x as well. The patch in #7 applies cleanly and fixes the issue, marking as RTBC.