You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When this plugin is installed in a Totara 13 site, it causes the requireJS loader to error out.
To replicate:
Set up a clean install of Totara 13
Add auth/saml2 plugin
Access the site in a web browser
Expected result: The site loads successfully
Actual result: The site loads but no JS functionality works. The console shows an error message Uncaught Error: Script error for "core/autoinitialize"
A look at the Developer Tools networking tab shows that there was a 500 error from the server attempting to load /lib/requirejs.php/-1/core/bundle.js. The response's body has this content:
JS file: /auth/saml2/amd/src/connectivity_test.js cannot be loaded, or does not contain a javascript module in AMD format. "define()" not found.
It appears that the cause of this problem is that the file in question, /auth/saml2/amd/src/connectivity_test.js, is an ES5 module rather than an AMD module. Deleting the entire directory /server/auth/saml2/amd/src/ from my Totara source directory resolves the problem.
The text was updated successfully, but these errors were encountered:
When this plugin is installed in a Totara 13 site, it causes the requireJS loader to error out.
To replicate:
Expected result: The site loads successfully
Actual result: The site loads but no JS functionality works. The console shows an error message
Uncaught Error: Script error for "core/autoinitialize"
A look at the Developer Tools networking tab shows that there was a 500 error from the server attempting to load
/lib/requirejs.php/-1/core/bundle.js
. The response's body has this content:It appears that the cause of this problem is that the file in question,
/auth/saml2/amd/src/connectivity_test.js
, is an ES5 module rather than an AMD module. Deleting the entire directory/server/auth/saml2/amd/src/
from my Totara source directory resolves the problem.The text was updated successfully, but these errors were encountered: