Give the gift of Drupal. All merchandise is 50% off through 2016.
I created a page with the alias "media" and then on every node (with content type "Gallery"), when the "Add media" link is clicked, the page with the alias "media" is loaded in the dialogue box instead of the dialogue box.
So, apparently, the page alias "media" is unavailable when the Media module is enabled? Otherwise, you get this bug/error.