Hi,

Thanks for the great module... In testing the latest release, firebug is giving the following error:
"Drupal.settings.plugin_manager is undefined", which is from this line:
feed = Drupal.settings.plugin_manager.ajaxPrefix + feed;

The problem is that when you select a module to be added to the queue, it disappears from the list of modules, but doesn't appear in the install queue...

Comments

bcn’s picture

Status: Active » Closed (fixed)

never mind... i must have had some js cached or something, cuz it seems to work Okay now...

bsimon’s picture

Status: Closed (fixed) » Active

Maybe not a caching problem. I tried clearing the various caches but I still get the same error in Firefox

and Google Chrome also reports it as Uncaught TypeError: Cannot read property 'ajaxPrefix' of undefined

in plugin_manager/plugin_manager_search.js ... line 15

I don't get the ajax search any more - maybe this is why

edit: and the Browse and Queue groups on the search page won't expand any more. Plugin Manager still works, though.

mauritskorse’s picture

I had the same problem and for me a quick fix was enough to resolve the problem (Bless Opera's dev tools!!)

Apparently the function queue_show() was already initiated before the Drupal.settings object was loaded, therefore calling Drupal.settings.plugin_manager.ajaxPrefix will return of course undefined.
So by waiting for the entire page (and script) to have loaded, Drupal.settings.plugin_manager.ajaxPrefix can safely be called without getting unexpected errors.

What I used was jQuerys' $(document).ready( fn ); function to initiate queue_show()

Replace the last line(85) of plugin_manager_search.js

queue_show();

with the next code:

$(document).ready(function () {
  queue_show();
});
kbell’s picture

Hi,

Thank you for providing this fix. However, I tried adding the code listed in the latest reply, but my Browse and Queue menus are still not expanding when I've loaded things into them. Search is always expanded and does work. My site is in dev and has no caching in place, and I'm out of ideas as to how to get this to work. Just to make sure - did you add anything else besides just the code above - is that all? Is there anything missing? I did exactly as instructed and replaced the native code with your fix code.

Thank you!
Kelly Bell