We have the problem that on some cases, dynamic autocomplete fields are not working.
For example, we are on /enrol/instances.php?id=13 and press the edit button.
In like 50% of the cases, the edit page does not load properly on our stage server.
The problem mostly appears on firefox 82
Locally we cannot reproduce it.
$CFG->cachejs is not set. If we set it to false, we get other JS errors.
We found this bug report:
https://tracker.moodle.org/browse/MDL-67327
But on our Moodle version this should be already fixed. We are on ('3.8.1 (Build: 20200113)
Uncaught TypeError: a is not a function
<anonymous> https://example.com/lib/requirejs.php/1603719734/core/first.js:52
execCb https://example.com/lib/javascript.php/1603719734/lib/requirejs/require.min.js:5
check https://example.com/lib/javascript.php/1603719734/lib/requirejs/require.min.js:5
enable https://example.com/lib/javascript.php/1603719734/lib/requirejs/require.min.js:5
bind https://example.com/lib/javascript.php/1603719734/lib/requirejs/require.min.js:5
emit https://example.com/lib/javascript.php/1603719734/lib/requirejs/require.min.js:5
each https://example.com/lib/javascript.php/1603719734/lib/requirejs/require.min.js:5
emit https://example.com/lib/javascript.php/1603719734/lib/requirejs/require.min.js:5
check https://example.com/lib/javascript.php/1603719734/lib/requirejs/require.min.js:5
The code at this position is
define('core/first', [
'jquery'
], function (a) {
a(document).bind('ajaxStart', function () {
M.util.js_pending('jq')
}).bind('ajaxStop', function () {
M.util.js_complete('jq')
})
and should normally work to my understanding.
How can this be debugged and fixed?