-
- 23 Posts
Hello,
I use ManagerManager in one of my sites. It worked perfectly, but then today a problem has appeared. Whenever I attempt to edit a document, I get this message:
"ManagerManager: An error has occurred: undefined - undefined"
To the best of my knowledge I’ve not made any changes to the site which would have affected ManagerManager.
Can anyone advise me as to possible causes and solutions?
Thanks in advance for all your help.
Cheers
-
- 143 Posts
"ManagerManager: An error has occurred: undefined - undefined"
Yes I can confirm this. I worked yesterday evening on a site and everything worked fine. Now all of a sudden I get the same Javascript alert. I tested it in Safari 3 and Firefox 3, both show the same alert. The version of ManagerManager I use is 0.3.2 and the MODx version is 0.9.6.3.
I investigated a little bit further: activating the ManagerManager plugin without any rules works, using just the mm_hideTabs function works also, but as soon as I call a mm_hideFields of any kind the error occurs.
Thanks for taking a look at this,
Bogdan
-
- 143 Posts
Ah ... that’s the point:
// The URL to the Jquery library. Leave blank and it will use the one available from jquery.com ...
I guess the location on jquery.com has changed or is temporarily unavailable. Tricky!
-
- 327 Posts
Looks like Google has change their JSAPI loader - it no longer supports jQuery. A peril of relying on third party hosted scripts.
We can still use their hosted AJAX libraries (presumably their preferred method now).
To fix, just
replace the "includeJquery" function in /assets/plugins/managermanager/functions/utilities.inc.php with the following:
// Return the HTML necessary to link to the jQuery library
function includeJquery($js_url) {
// If no JS url has been supplied, use the Google hosted version
if (!$js_url || empty($js_url)) {
$html .= '<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.2/jquery.min.js" type="text/javascript" charset="utf-8"></script>';
$html .= "\n";
} else {
$html .= '<script src="'.$js_url.'" type="text/javascript" charset="utf-8"></script>';
$html .= "\n";
}
return $html;
}
I’ve updated the version in the repository accordingly to version 0.3.2.1.
Author:
ManagerManager plugin - customise your ModX manager interface
Rckt - web development, Sheffield, UK
-
- 36 Posts
I’m confused. Does this error negatively affect anything else on my site or in the manager? Why is it showing up and how do I make it not show up anymore. (I’m sorry, my web designer is not available and I’m trying to take care of things on my own).
Thanks for your help!
- Ruben
-
- 388 Posts
Bunk58
I tried your approach, didn’t have any affect. Still getting error. Is there anything different if on WAMP?
www.terrybarthdesign.com
-
- 898 Posts
jquery1.3 doesnt work with it. Need to use 1.2.6 or 1.2.3