I’ve just upgraded from Moodle 3.3 (on my dev server) to Moodle 3.5+ (Build: 20180621) and encountered a similar issue to my previous one. None of the widgets (user menu, edit menus, sidebar toggle, Bootstrap collapses, etc) are working. I’ve tested this using the Boost theme with no modifications to make sure it wasn’t an issue with my child theme.
I tried to turn on Debugging in Moodle and clear the Moodle’s caches but none of the tabs in the Site administration area are working.
After testing in different web browsers I opened my browsers Developer Tools and found the below errors:
Uncaught sytaxError or unexpected token - first.js:1
Uncaught Error: No define call for core/first - require.min.js:1
http://requirejs.org/docs/errors.html#nodefine
at makeError (require.min.js:1)
at Object.completeLoad (require.min.js:1)
at HTMLScriptElement.onScriptLoad (require.min.js:1)
makeError @ require.min.js:1
completeLoad @ require.min.js:1
onScriptLoad @ require.min.js:1
load (async)
req.load @ require.min.js:1
load @ require.min.js:1
load @ require.min.js:1
fetch @ require.min.js:1
check @ require.min.js:1
enable @ require.min.js:1
enable @ require.min.js:1
(anonymous) @ require.min.js:1
(anonymous) @ require.min.js:1
each @ require.min.js:1
enable @ require.min.js:1
init @ require.min.js:1
(anonymous) @ require.min.js:1
setTimeout (async)
req.nextTick @ require.min.js:1
o @ require.min.js:1
requirejs @ require.min.js:1
(anonymous) @ view.php?id=25:639
I also decided to take a look at my Moodle install using the Firefox Developer Tools and received a different error message:
SyntaxError: illegal character[Learn More] first.js:1
Error: No define call for core/first
http://requirejs.org/docs/errors.html#nodefine require.min.js:1:1067
makeError http://ubuntu-dev/moodle-dev/lib/javascript.php/1530258227/lib/requirejs/require.min.js:1:1067
completeLoad http://ubuntu-dev/moodle-dev/lib/javascript.php/1530258227/lib/requirejs/require.min.js:1:12223
onScriptLoad http://ubuntu-dev/moodle-dev/lib/javascript.php/1530258227/lib/requirejs/require.min.js:1:13014
Learn More link.
I’m not really sure where to go from here. Any advice or assistance would be much appreciated.
System details
Moodle 3.5+ (Build: 20180621)
Ubuntu Server 16.04.4 LTS
PHP Version 7.0.30
Apache Version Apache/2.4.18 (Ubuntu)