Active
Project:
Plugin Manager
Version:
6.x-1.7
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
21 Dec 2008 at 23:06 UTC
Updated:
8 Jan 2009 at 03:01 UTC
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
Comment #1
bcn commentednever mind... i must have had some js cached or something, cuz it seems to work Okay now...
Comment #2
bsimon commentedMaybe 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.
Comment #3
mauritskorse commentedI 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 callingDrupal.settings.plugin_manager.ajaxPrefixwill return of course undefined.So by waiting for the entire page (and script) to have loaded,
Drupal.settings.plugin_manager.ajaxPrefixcan safely be called without getting unexpected errors.What I used was jQuerys'
$(document).ready( fn );function to initiatequeue_show()Replace the last line(85) of plugin_manager_search.js
with the next code:
Comment #4
kbell commentedHi,
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