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.
When adding media files in Chrome browser the overlay does not disappear. Requires full page reload which resets all form values.
Uncaught TypeError: Cannot read property 'Drupal' of undefined media.popups.js:103undefined
Comment | File | Size | Author |
---|---|---|---|
#1 | chrome.png | 81.13 KB | cesar.perales |
#1 | chrome2.png | 90.1 KB | cesar.perales |
Comments
Comment #1
cesar.perales CreditAttribution: cesar.perales commentedThis happened to me too, i tested 7.x-1.0-rc1, 7.x-1.0-rc2 and 7.x-2.0-dev, all behave the same using firefox 3.6 or chrome 16 on ubuntu 10.10.
This happen when i try to add a second url, or when i press add another element and then try adding the url, the overlay doesn't disappear and a div with white background and id "media-browser-page-wrapper" remains on top.
in chrome i get this (nothing in firefox):
*in the screenshots, i added several videos one at a time.
Comment #2
Dave ReidHrm, I haven't been able to duplicate this. Can you double check with a fresh install of core, default themes, and Media 7.x-1.x-dev or 7.x-2.x-dev only? I wonder if it's a custom theme or JavaScript that is interfering.
Comment #3
cesar.perales CreditAttribution: cesar.perales commentedI tried a fresh install with media 7.x-2.x-dev and default theme, it worked just fine.
Before mi first post i tried it without my theme js, and wasn't working.
I found a work around, replacing (media.popup.js line 85 and 90):
with this:
its ugly, but it works, don't know why.
Comment #4
temaruk CreditAttribution: temaruk commentedI experienced this behaviour (exactly the same javascript error) under the following circumstances:
- Media 7.x-1.0-rc2
- Remote stream wrapper 7.x-1.x-dev
- Logged in user has only authenticated role
As soon as I enabled the 'Add media from remote URLs' permission for the authenticated role, the problem went away.
Comment #5
cesar.perales CreditAttribution: cesar.perales commentedjust for the record, my user had the right permission: "Add media from remote services", and the problem persist, using 7.x-2.x-dev.
Comment #6
tsvenson CreditAttribution: tsvenson commented@temaruk: Does it still happens with RC3?
@cesar.perales Can you reproduce this yourself? If you can, please provide a step by step description on how to do it.
Also, ask your user if he have any plugins for Chrome that might cause this to happen.
Comment #7
endrus CreditAttribution: endrus commentedI can confirm this overlay problem with both RC3 and 7.x-2.0-unstable3. In fact, the bug also occurs in Firefox 10. Tried it on both Omega and default Drupal theme.
Comment #8
cesar.perales CreditAttribution: cesar.perales commentedI found what the problem was for me, i was using jquery.validate 1.5.5 which cause
Uncaught RangeError: Maximum call stack size exceeded
, replacing it with 1.9.0 fixed it.Jquery plugin:
http://bassistance.de/jquery-plugins/jquery-plugin-validation/
Comment #9
Finn Lewis CreditAttribution: Finn Lewis commentedI had the same issue, but a slightly different error:
Uncaught TypeError: Cannot read property 'browser' of undefined
With media-7.x-2.0-unstable3, Drupal 7-12 in Google Chrome (Firefox was fine).
Upgrading to 7.x-2.x-dev 2012-Mar-14 solved this for me.
Thanks Media people!
Comment #10
seanr#3 did not work for me in 7.x-2.x. :-(
Comment #11
cesar.perales CreditAttribution: cesar.perales commented@seanr if you have jquery validation try #8, that fixed #3
Comment #12
jackread CreditAttribution: jackread commentedI had this problem and it was actually a PHP memory_limit problem. One of the images in the browser was so big it was causing PHP to crash. I increased the memory limit to 120M in the .htaccess and the browser appeared again.
Comment #13
Dave ReidAs per #8, #9, #11, and #12 I'm marking this as fixed.
Comment #14
velocitykendal CreditAttribution: velocitykendal commentedI have this problem with the most recent release (7.x-1.2) and previous versions. The initital upload of an image is fine, the dialog and overlay disappear. But on upload of a second image the dialog and overlay remain.
I took a look at lines 85 & 86 of media.popup.js as mentioned before and discovered these only fire on the first upload (as would be expected), anyone know why this might be?
Comment #15
mpgeek CreditAttribution: mpgeek commented@velocitykendal, can you verify that this problem exists with a fresh install of core, and the latest media 1.x? If so, can we get a more clear list of steps to reproduce the error? I was unable to reproduce with 1.x-dev in Chrome.
Comment #16
derjochenmeyer CreditAttribution: derjochenmeyer commentedMaybe this helps: Overlay was stuck with a clean Drupal 7.15 installation. No Modules enabled. The reason in my case was not Drupal but a Chrome extension called "Better Pop Up Blocker". Check your Chrome extensions.
Comment #17
turist CreditAttribution: turist commentedSeems to be a similar problem: http://drupal.org/node/1759862 .
I was not able to reproduce with Drupal 7.15 (upgraded with drush from 7.12)
Comment #18
Zettt CreditAttribution: Zettt commentedI have the same problem. I tested this with a new, fresh, no-extensions Firefox on OS X. Following the other issue, I'm using Seven as admin theme.
Just checked this on a virtual Windows machine. Same problem there. It's definitely one of our modules.
Comment #19
alibama CreditAttribution: alibama commentedI'm having the same issue - tested with windows IE, and firefox and on mac with chrome, firefox, and safari - no luck with any of them. am not using any internationalization modules or translation tools. I've uploaded to the latest dev with media and file entity, and have updated the database, cleared cache etc.... this seems like a duplicate of https://drupal.org/node/1364640 and https://drupal.org/node/1595194 and almost certainly a duplicate of https://drupal.org/node/1503340
any help greatly appreciated - i'm looking for other modules to replace media and am really not digging any of them half as much....
Thank you all
Comment #20
GemVinny CreditAttribution: GemVinny commentedI have also got the same problem... has anyone come up with a solution for this?
Thanks
Gemma
Comment #21
steinmb CreditAttribution: steinmb as a volunteer commented