Scorm Courses Not Loading in Latest Version of Moodle.

Scorm Courses Not Loading in Latest Version of Moodle.

by Matt Ross -
Number of replies: 4

I have created SCORM courses using articulate which have worked fine in Moodle 2.8, but in the latest version of 2.9 my Scorm files will not load.

Below are the error codes I'm receiving from various browsers.


User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E)

Timestamp: Thu, 10 Sep 2015 15:53:50 UTC


Message: 'datamodel.undefined.cmi.core.lesson_mode' is null or not an object

Line: 5

Char: 168

Code: 0

URI: .../lib/javascript.php/1441895836/mod/scorm/datamodels/scorm_12.js




Using //@ to indicate sourceMappingURL pragmas is deprecated. Use //# instead jquery.min.js:1:0

moodle-core-dock-loader: Dock loader initialising yui_combo.php:5828:21

Bootstrap initialised first.js:5:143

The character encoding of a framed document was not declared. The document may appear different if viewed without the document framing it. index_lms.html

The character encoding of a framed document was not declared. The document may appear different if viewed without the document framing it. blank.html

The character encoding of a framed document was not declared. The document may appear different if viewed without the document framing it. AICCComm.html

The character encoding of a framed document was not declared. The document may appear different if viewed without the document framing it. blank.html

TypeError: datamodel.undefined is undefined


Uncaught TypeError: Cannot read property 'cmi.core.lesson_mode' of undefined


Average of ratings: -
In reply to Matt Ross

Re: Scorm Courses Not Loading in Latest Version of Moodle.

by Matteo Scaramuccia -

Hi Matt,
could you share more info? I mean:

  • the exact Moodle version
  • the browser version: it seems IE8 and Moodle support starts from IE9. Does it happen with IE9+, Firefox and Chrome too?
  • the exact trace from the API debug, https://docs.moodle.org/29/en/SCORM_FAQ#Debugging
  • optional but extremely helpful, the package (or a demo version instead of the complete package) that replicates the issue

TIA,
Matteo

In reply to Matteo Scaramuccia

Re: Scorm Courses Not Loading in Latest Version of Moodle.

by Matt Ross -
Currently I'm testing in Moodle 2.8.7+ (Build: 20150910). I was trying it in 2.9, but the 2.8 build wasn't giving me the error at first. It just started up out of the blue.

 

I'm using the latest versions of Chrome, Firefox, and developing for IE8, which all give me the same error. 

The SCORM debug info is as following: 

LMSInitialize Failed! Error Code: 101 Error Description: General exception


Thanks

In reply to Matt Ross

Re: Scorm Courses Not Loading in Latest Version of Moodle.

by Matt Ross -

Mon, 14 Sep 2015 18:45:30 GMT: Moodle SCORM 1.2 API Loaded, Activity: test, SCO: Access_to_Medical_Records_SCO
Mon, 14 Sep 2015 18:45:32 GMT: LMSInitialize("", "") => 0 scoid = undefined
Mon, 14 Sep 2015 18:49:37 GMT: LMSInitialize("", "") => 101 scoid = undefined
Mon, 14 Sep 2015 18:49:37 GMT: LMSGetErrorString("101", "General exception") => 0 scoid = undefined
Mon, 14 Sep 2015 18:49:38 GMT: LMSGetErrorString("101", "General exception") => 0 scoid = undefined
Mon, 14 Sep 2015 18:49:39 GMT: LMSGetValue("") - => 201 scoid = undefined
Mon, 14 Sep 2015 18:49:39 GMT: LMSGetErrorString("201", "Invalid argument error") => 0 scoid = undefined
Mon, 14 Sep 2015 18:49:39 GMT: LMSGetErrorString("201", "Invalid argument error") => 0 scoid = undefined
Mon, 14 Sep 2015 18:49:40 GMT: LMSSetValue("", "") => 201 scoid = undefined
Mon, 14 Sep 2015 18:49:40 GMT: LMSGetErrorString("201", "Invalid argument error") => 0 scoid = undefined
Mon, 14 Sep 2015 18:49:42 GMT: LMSGetErrorString("201", "Invalid argument error") => 0 scoid = undefined
Mon, 14 Sep 2015 18:49:43 GMT: LMSGetDiagnostic("201", "201") => 0 scoid = undefined

In reply to Matt Ross

Re: Scorm Courses Not Loading in Latest Version of Moodle.

by Matteo Scaramuccia -

Hi Matt,
the issue here is scoid being undefined. Are you launching the course in a popup window?

Have you already tried to upload your package to http://demo.moodle.net? It is a good testbed, being re-initialized every hour.

HTH,
Matteo