When the Media browser is displayed with an Overlay URL, the Ajax queries returns errors.

Page: Find content > Files
admin/content/file

URL - With Overlay (broken):
http://.../#overlay=admin/content/file
OR
http://.../#overlay=%3Fq%3Dadmin%252Fcontent%252Ffile

URL - Without Overlay (no bug):
http://.../?q=admin/content/file
OR
http://.../admin/content/file

Error shown when clicking pretty much anything on the page with overlay:

An AJAX HTTP error occurred.
HTTP Result Code: 200
Debugging information follows.
Path: /?q=views/ajax&render=overlay
StatusText: OK
ResponseText: @import url("http://.../modules/system/system.base.css?mtmg0p");
@import url("http://.../modules/system/system.menus.css?mtmg0p");
@import url("http://.../modules/system/system.messages.css?mtmg0p");
@import url("http://.../modules/system/system.theme.css?mtmg0p");
[...]

Comments

gaellafond’s picture

TEMPORARY Quick and dirty patch:
Edit media_browser_plus.module
Add the following function:

/**
 * Implement: hook_admin_paths_alter
 * Issue 2111177: Quick and dirty patch
 * https://drupal.org/node/2111177
 */
function media_browser_plus_admin_paths_alter(&$paths) {
  $paths['admin/content/file'] = FALSE;
}
gaellafond’s picture

Issue summary: View changes

Clarification about when the error is triggered

das-peter’s picture

Very important information: This breaks only if clean URLs are disabled! At least in my tests with the latest dev modules of views, views_tree, views_bulkoperaton, media, file_entity and media_browser_plus (7.x-3.x) in Chrome and Firefox.

Further this looks more like a general issue with the views ajax handling. The folder navigation is basically just an exposed filter on steroids - so following views issue is likely to be related: https://drupal.org/node/1116326
And MBP specific functions seem to work just file e.g. moving files into another directory.

Thus I set this issue to works as designed - please help to get the views issue fixed instead! :)