Hi I upgraded all my site yesterday including drupal 7.26, file_entity-7.x-2.x-dev dated 16 January 2014 and media-7.x-2.x-dev dated 20 January 2014. After upgrading media (or don't know what other module may be the cause) when I click select button on any image field with media file selecter button a completely blank pop up appears with no option to even close the popup. I went to the admin/structures/views to look at media browser view and the view seems to be working in the views admin interface.

I have changed no setting from my previous version of the site. In my settings no browser plugins are selected so that all are available. I don't know what has happened.

Issue fork media-2178023

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

aanjaneyam’s picture

Ok I have done some more digging:

I am using Aegir from omega8.cc (BOA platform).

I followed HINT -6 on https://omega8.cc/import-your-sites-to-aegir-in-8-easy-steps-109 and moved my site files directory to ~/static/site-files/mysite_files using mv command and then ran:
ln -s /data/disk/c1/static/site-files/mysite_files /data/disk/c1/static/platform-path/site-name/files

It may be that media is not able to handle symlinked file system vis JS etc or folder permission needed by it is absent.

I went to firebug console and found following errors:

 Failed to load resource: the server responded with a status of 500 (Internal Server Error)       http://mydomain.com/media/browser?render=media-popup&types%5B%5D=image&schemes%5B%5D=public&schemes%5B%5D=private&file_directory=images%2Fcontent%2Fbusiness-listing%2Ffield-logo&file_extensions=png+gif+jpg+jpeg&max_filesize=2MB&uri_scheme=public&min_resolution=120x60&max_resolution=600x600&plugins=undefined

Uncaught TypeError: Cannot read property 'media' of undefined    js_tJTXMlyI9WkfUOceX6tnoFaPqKOx99ue5fRYUCWJ30s.js:497
aanjaneyam’s picture

It is Media module some how. I have another site on which I have not moved the files directory as mentioned in #2 above. The files directory is in its standard place. In order to test I just upgraded media-7.x-2.x-dev (20 Jan 14) and file_entity-7.x-2.x-dev (16 Jan 14) and nothing else. And the error mentioned in #1 above (blank media browser pop up) occurs in this site too. So it must be some how related to media and file entity upgrade.

aanjaneyam’s picture

It works when I manually revert old versions of media and file_entity modules dated 3 Dec 13 and 10 Nov 13 respectively. So it must be some how related to media and file entity upgrade.

aanjaneyam’s picture

Priority: Normal » Major
aanjaneyam’s picture

It seems nobody else is getting the same problem.

drupalok’s picture

i do

themusician’s picture

I am experiencing this as well. Both on clean install of 7.x-2.x-dev and an upgrade from alpha-3.0.

When I click the Media icon within an WYSIWYG, ckeditor, area the pop-up appears just as a white screen.

My console spits out the following:

"NetworkError: 500 Internal Server Error - http://localhost:8888/media-upgrade-test/media/browser?render=media-popup&types%5B%5D=audio&types%5B%5D=image&types%5B%5D=video&types%5B%5D=document&activePlugins=&enabledPlugins=&file_directory=&id=media_wysiwyg&plugins=undefined"
browse...defined (line (null))
TypeError: this.contentWindow.Drupal is undefined
	

if (this.contentWindow.Drupal.media == undefined) return;

I have not tried the upgrade on a live site with a FQDN, though the path just looks wrong within the Network Error 500. Shouldn't it point to the actual module, so something like /sites/all/modules/media/browser?render=...

I do have other modules enabled, and am providing a list here: they are enabled by my install profile.

;Core Modules

dependencies[] = aggregator
dependencies[] = block
dependencies[] = contextual
dependencies[] = dashboard
dependencies[] = dblog
dependencies[] = field
dependencies[] = field_ui
dependencies[] = file
dependencies[] = filter
dependencies[] = help
dependencies[] = image
dependencies[] = list
dependencies[] = menu
dependencies[] = node
dependencies[] = number
dependencies[] = options
dependencies[] = overlay
dependencies[] = path
dependencies[] = rdf
dependencies[] = search
dependencies[] = system
dependencies[] = taxonomy
dependencies[] = text
dependencies[] = update
dependencies[] = user

;Base Contributed Modules

dependencies[] = accordion_menu
dependencies[] = addressfield
dependencies[] = advanced_help
dependencies[] = auto_entitylabel
dependencies[] = cas
dependencies[] = ctools
dependencies[] = date
dependencies[] = diff
dependencies[] = entity
dependencies[] = entityreference
dependencies[] = email
dependencies[] = file_entity
dependencies[] = flexifilter
dependencies[] = fullcalendar
dependencies[] = google_appliance
dependencies[] = hierarchical_select
dependencies[] = htmlpurifier
dependencies[] = image_caption
dependencies[] = image_resize_filter
dependencies[] = insert
dependencies[] = jquery_update
dependencies[] = job_scheduler
dependencies[] = link
dependencies[] = media
dependencies[] = media_youtube
dependencies[] = media_vimeo
dependencies[] = panels
dependencies[] = pathauto
dependencies[] = pathologic
dependencies[] = phone
dependencies[] = token
dependencies[] = wysiwyg
dependencies[] = wysiwygpatch
dependencies[] = views
dependencies[] = views_bulk_operations

;Acilliary Contributed Modules

dependencies[] = admin_menu
dependencies[] = backup_migrate
dependencies[] = features
dependencies[] = field_group
dependencies[] = globalredirect
dependencies[] = google_appliance
dependencies[] = google_appliance_suggest
dependencies[] = hidden_nodes
dependencies[] = iconizer
dependencies[] = imageapi_optimize
dependencies[] = imagecrop
dependencies[] = libraries
dependencies[] = linkchecker
dependencies[] = media_browser_plus
dependencies[] = module_filter
dependencies[] = menu_block
dependencies[] = mollom
dependenceis[] = multiform
dependencies[] = nodequeue
dependencies[] = r4032login
dependencies[] = views_accordion
dependencies[] = views_responsive_grid
dependencies[] = views_tree
dependencies[] = workbench
dependencies[] = workbench_media
dependencies[] = workbench_moderation
dependencies[] = wwuzen_gsa
dependencies[] = xmlsitemap

themusician’s picture

Turning off Media YouTube allows the form to render and no errors are thrown in the console.

Media YouTube throws the following fatal error in my PHP error logs.

[30-Jan-2014 19:22:10 UTC] PHP Fatal error: Call to undefined function media_access() in /Applications/MAMP/htdocs/media-upgrade-test/sites/all/modules/media_youtube/includes/MediaYouTubeBrowser.inc on line 19

This is media-youtube-rc4.

Apparently there is a fix here: https://drupal.org/node/2178337

trumanru’s picture

Status: Active » Closed (won't fix)
Issue tags: +youtube
Related issues: +#1823376: media_access() is deceprated and will be removed

Agree with theMusician (#8) - it's Media: YouTube module's RC4 bad.

I had same trouble after I'd applied the last Media 2.x dev version. After I applied patch https://drupal.org/comment/8260713#comment-8260713 problem has been resolved.

cubeinspire’s picture

I have the same issue when I try to add media to the boy field with CKeditor.
The overlay opens and shows:
Fatal error: Call to undefined function media_access() in /home/cubein/sd/stopnoma/www/profiles/bear/modules/media_youtube/includes/MediaYouTubeBrowser.inc on line 19

----------------------------------
technical information
Drupal version: 7.23
Using clean install with profile: bear-7.x-1.x-dev-core

rcodina’s picture

Just updating to latest media_youtube release (7.x-2.0-rc4+18-dev) solved the problem for me.

alexanansi’s picture

I unchecked using thumbnails by default, and disabled using the default view at admin/config/media/media_browser_plus_settings
Also, I disable skipping fields, filetypes, and schemes at admin/config/media/file-settings

After this it worked

karolus’s picture

Issue tags: -youtube +media browser

I'm having the same issue as theMusician. This is on a new install of Drupal core. Am going over all settings now to see what could be causing this.

dat deaf drupaler’s picture

+1 for #11 above

adam1’s picture

+1 for #11 above, too. Saved me hours of debugging!

kellyimagined’s picture

This just happened with the latest update. I ended downloading again and running update.php again that solved the problem.

abedajam made their first commit to this issue’s fork.