-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
4.1.4, 4.1.5, 4.2.2, 4.3
-
MOODLE_401_STABLE, MOODLE_402_STABLE, MOODLE_403_STABLE
-
MDL-79465_master
-
-
Since MDL-78157 we've been experiencing this problem. When you have a plugin installed that contains an empty AMD module and Moodle's JavaScript Cache gets cleared (e.g. when performing any upgrade) the first time you load a page afterwards the JavaScript doesn't work. MDL-78379 hasn't fixed it in our case.
One plugin that causes this for us is mod_verbalfeedback where report.js is empty.
To reproduce:
- Install mod_verbalfeedback
- Make sure JavaScript caching is enabled (admin setting "cachejs")
- Make sure PHP output_buffering is enabled in php.ini
output_buffering = 4096
- Clear JS cache through CLI:
php admin/cli/purge_caches.php --js
- Open any page
=> You get an error in the JavaScript console:
=> JavaScript doesn't work
P.S.: If you disable PHP output buffering, this problem doesn't occur. But the request for first.js returns the wrong headers.
- is a regression caused by
-
MDL-78157 requirejs.php matches module name even if module has a name
- Closed