Skip to content

require errors being generated when displaying SCORM package in 'embedded' mode #2069

Closed
@moloko

Description

@moloko

As you'll have seen from #2062 and #2063 I've been doing some testing of the Adapt Learning Framework in Chamilo

Whilst testing, I noticed that if I set the course to launch in 'embedded' view mode (the default), it doesn't display and require.js is generating an error in the console:
chamilp-require-error-firefox

We've done a bit of digging and it seems that Chamilo is injecting some <script> tags into our content
chamilo-script-injection

Specifically the problem seems to be originating from https://1.11.chamilo.org/main/glossary/glossary.js.php which uses jquery-ui.min.js - which has a define statement with a missing name - and because Adapt uses requirejs, the module is trying to register with Adapt's requirejs library but with no name, which isn't allowed - hence the error.

If you want to see this for yourself go to the aabbb course on 1.11.chamilo, select learning paths > Adapt Version 2.0 demonstration.

Is there a reason for injecting stuff into the course content? This seems to us to be a bit of a risky thing to do as it can cause problems exactly like this.

I also got similar problems using all other view modes except fullscreen.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions