Picture of Ailiniyazi Maimaiti
Re: "Could Not Connect to the LMS"
by Ailiniyazi Maimaiti - Wednesday, 13 January 2021, 3:52 PM
 

Hi Matt, 

 

I also met this problem, after I uploaded a course to our LMS, I got this error message after I clicked "OK" :

16:19:23.762 ScormWrapper::setVersion:

1.216:19:23.762 ScormWrapper::initialize

16:19:23.851 Course could not connect to the LMS

16:19:47.281 ScormWrapper::commit

16:19:47.282 Course is not connected to the LMS

 

The attached image is from browser's console.

I had added and enabled the plugin, I've tried both "passed" and "completed" at Tracking success status.

I'm using Spoor 3.3.2 and Framework v4.4.1.

 

The second image is the log from adapt authoring tool.

 



Picture of Ailiniyazi Maimaiti
Re: "Could Not Connect to the LMS"
by Ailiniyazi Maimaiti - Wednesday, 13 January 2021, 4:00 PM
 

I don't if it was related to our LMS, I've tried SCORM Cloud, it works there. 

Picture of Matt Leathes
Re: "Could Not Connect to the LMS"
by Matt Leathes - Wednesday, 13 January 2021, 5:21 PM
 

well, in the first image you see the error "API.LMSInitialize is not a function" and just below that "API: [object Window]" - I think that's the source of your problem.

It should be "API: [object Object]" and the API object needs to have the following functions defined on it:

  • LMSInitialize
  • LMSGetValue
  • LMSSetValue
  • LMSCommit
  • LMSFinish
  • LMSGetLastError
  • LMSGetErrorString
  • LMSGetDiagnostic

Given that it works OK in SCORM Cloud I think it probably is an issue on your LMS.

This is the key part of the 'find SCORM API' code. Seems like it might be finding something else (a browser window going by the [object Window] reference you're getting) that has the same name as the SCORM API..?

I can also see some errors that appear to be from your LMS e.g.

Picture of Ailiniyazi Maimaiti
Re: "Could Not Connect to the LMS"
by Ailiniyazi Maimaiti - Monday, 18 January 2021, 1:11 PM
 

Hello Matt,

 You are right, that was the problem from the LMS, now it works fine, many thanks!