Forums | Mahara Community
Support
/
Help info missing after an upgrade
06 June 2023, 20:59
Hi, just started new role where I'll be looking after our Mahara install going from 20.040 to 20.10.0 running on Microsoft Server and MYSQL. I've decided to update the DEV side for testing to be on safe side and have run into an issue.
I've done the upgrade and the help tooltips all over the site no longer work and all show "an error occurred trying to retrieve the help page" when clicked, any thoughts?
Thanks, Chris
07 June 2023, 9:18
Hi Chris,
Hmm, I'm not sure why help popups would fail but here is something you can try, you can add some console log lines and check in your browser the results - hopefully that will give you some insight to the failues:
diff --git a/htdocs/js/mahara.js b/htdocs/js/mahara.js
index 383e86aebe..2686a5e5be 100644
--- a/htdocs/js/mahara.js
+++ b/htdocs/js/mahara.js
@@ -542,6 +542,7 @@ function contextualHelp(formName, helpName, pluginType, pluginName, page, sectio
contextualHelpDeferrable.cancel();
}
badIE = true;
+console.log(url);
sendjsonrequest(url, url_params, 'GET', function (data) {
if (data.error) {
contextualHelpCache[key] = data.message;
@@ -556,6 +557,7 @@ function contextualHelp(formName, helpName, pluginType, pluginName, page, sectio
processingStop();
},
function (error) {
+console.log(error);
contextualHelpCache[key] = get_string('couldnotgethelp');
buildContextualHelpBox(contextualHelpCache[key]);
processingStop();
Cheers
Robert