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 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
Comment #1
gaellafond CreditAttribution: gaellafond commentedTEMPORARY Quick and dirty patch:
Edit
media_browser_plus.module
Add the following function:
Comment #1.0
gaellafond CreditAttribution: gaellafond commentedClarification about when the error is triggered
Comment #2
das-peter CreditAttribution: das-peter commentedVery 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! :)