I installed the latest version.
I'm able to create new calleries but then the button to add media does not work. No error but no action. If I use "open link in a new window" I get the window to add new media after saving the images are not assigned to the gallery.

- I installed jQuery Update as well
- is the module Media elements needet as well?

Thanks for some help

Comments

JacobSingh’s picture

You don't need / want jQuery update.. I don't know what the problem is, my guess is there is a JS error somewhere on your page. Check the console in your browser.

stoltoguzzi’s picture

the output in the console Firefox is:
Drupal.settings.media is undefined
[Break on this error] src: Drupal.settings.media.brows... (if you want to totally override it)

if I check it is this function:

Drupal.media.popups.mediaBrowser.getDefaults = function () {
  return {
    global: {
      types: [], // Types to allow, defaults to all.
      activePlugins: [] // If provided, a list of plugins which should be enabled.
    },
    widget: { // Settings for the actual iFrame which is launched.
      src: Drupal.settings.media.browserUrl, // Src of the media browser (if you want to totally override it)
      onLoad: Drupal.media.popups.mediaBrowser.mediaBrowserOnLoad // Onload function when iFrame loads.
    },
    dialog: Drupal.media.popups.getDialogOptions()
  };
};

in IE I got this:

Benutzer-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C)
Zeitstempel: Sun, 20 Mar 2011 09:41:44 UTC


Meldung: 'Drupal.settings.media.browserUrl' ist Null oder kein Objekt
Zeile: 108
Zeichen: 3
Code: 0
URI: http://classic.localhost:8082/sites/all/modules/media/javascript/media.popups.js?v=7.x
stoltoguzzi’s picture

Title: Add media does not work » Add media does not work (beta3 outdated?)

Can not finde a working combination, looks like beta3 is outdated other needed modules are newer?
Looks like a great module, would be nice somebody could help, thank you.

L-four’s picture

Issue tags: +colorbox

I had a similar issue where when the add media button was pressed it opened the image bowser page(not in modal). I found that it was actually colorbox.js causing this issue and updating this file from the colorbox dev release fixed it.

I hope this helps.

JacobSingh’s picture

Huh... I don't know why that wouldn't be defined. Can you test on a fresh install w/o jQuery update and see if that fixes the problem?

stoltoguzzi’s picture

no chance, does not work.
somebody have a working media_gallery?

jucovschi’s picture

try to look in the apache error log file. If you see it trying to access the folder drupal/media_gallery. If that's the case then that's the problem I had as well and solved by enabling the Clean URL.

stoltoguzzi’s picture

clean URL is enabled.
What I did now:
- created a testsite a drupalcarden
- exported this site
- copied the contained media modules
- and now this works perfect

the version from drupalgarden does not have version infos in the module.info

tomasbedrich’s picture

Version: 7.x-1.0-beta3 » 7.x-1.x-dev

As said in #7 - now I have media_gallery working:
- latest dev snapshot from git
- Clean URL enabled
solved my problem.

Tagging dev to implement independency on Clean URL feature.

TripX’s picture

Status: Active » Fixed

As the problem is solved > fixed.

Status: Fixed » Closed (fixed)
Issue tags: -colorbox

Automatically closed -- issue fixed for 2 weeks with no activity.