Picture of Trieu Truong
SCORM Resume issues
by Trieu Truong - Friday, 18 May 2018, 8:03 AM
 

Hi guys,

So, we've been using the Spoor plugin to track SCORM for one of our ADAPT courses. There are about 53 components in the course - which I guess is a lot? - and the course loads quick quickly on SCORM cloud.

However, whenever we complete a number of chapters (for example, 5 chapters) and save/quit and try and resume - the course hangs on the loading screen (after the initial menu has loaded correctly).

We also experienced something similar in Windows 10 on Microsoft Edge, where the first initial menu would load, but the screen with the components would hang on the 'isReady' function.

Here is a copy/paste from the console:

SCORM.data.get('cmi.core.lesson_location') value: 5ad984e05fb2090021067f7b
adapt.min.js:13584 SCORM.data.set('cmi.core.lesson_location') value:
4adapt.min.js:13584 SCORM.data.set('cmi.suspend_data') value: {"lang":"en","assessment":{"Assessment1":[0,0,4,0,1,{"5ad984e05fb209002106800f":null,"5ad984e05fb2090021068010":null,"5ad984e05fb209002106800e":null,"5ae6bdbaf0685970211dd99b":null,"5ad984e05fb209002106801e":null,"5ad984e05fb209002106801f":null}]},"completion":"-0010000000110000000000000000000000001000000000000","questions":"","_isCourseComplete":false,"_isAssessmentPassed":false}
adapt.min.js:13584 SCORM.data.set('cmi.core.lesson_location') value: 5ad984e05fb2090021067f7b

I've tried to resume in Windows 10 on both Edge and Chrome, with no luck. The majority of the components are the <Media> component, along with some basic Multiple Choice and Drag & Drop components. We believe (think?) it's related to the Media component.

Any help you could provide would be greatly appreciated, as we are struggling to fix this!

Is there anything we need to provide, or does this ring a bell?

Thanks :)

 

Picture of Matt Leathes
Re: SCORM Resume issues
by Matt Leathes - Monday, 21 May 2018, 5:30 PM
 

Any chance of getting a link to view the course on SCORM Cloud? Otherwise it's hard to know where to even begin with this

Picture of Trieu Truong
Re: SCORM Resume issues
by Trieu Truong - Tuesday, 22 May 2018, 12:27 AM
 

Of course, sorry - I should have thought of that. I've PM'd you the link.

Picture of Trieu Truong
Re: SCORM Resume issues
by Trieu Truong - Tuesday, 22 May 2018, 3:23 AM
 

So, when we check the "_isReady" of each of the components, we get the following screenshot:

(Basically some of the assessment questions are marked as not ready.


Picture of Matt Leathes
Re: SCORM Resume issues
by Matt Leathes - Tuesday, 22 May 2018, 3:59 PM
 

Well, that was a tough problem... still not sure I have solved it but I think I have a suggestion.

So, what I noticed is that Adapt.components contains 53 items - but Adapt.course.findDescendants('components') only has 32 items.

The difference between those two values is 21 which happens to be the exact number of components that are failing to set _isReady to true.

Looking at those components, they all appear to be part of articles that contain assessments.

I then had a look through those articles to see if I could find anything odd - and I spotted that all the assessments have the same _assessment._id (or 'Assessment name' in the authoring tool) - they're all set to "Assessment1".

So, my suggestion would be to try giving them each a unique _id/name to see if that makes any difference.

Additionally, you might check what version of the assessment extension you are using as from v2.1.1 you should get a warning in the browser console if your ids aren't unique.

BTW Adapt.components is a Backbone Collection so you could simplify the code you have in your screenshot above to something like:

Adapt.components.where({_isReady: false}).forEach(function(component) {
    console.log('title:', component.get('title'), '_isReady:', component.get('_isReady'));
});
Picture of Trieu Truong
Re: SCORM Resume issues
by Trieu Truong - Wednesday, 23 May 2018, 12:27 AM
 

Ahh, okay - that makes perfect sense, thank you so much.

I had duplicated most of the assessment questions to save on duplicating the settings for each question. I'll see if changing the unique id's makes a difference, but I'm going to assume it does.

We are currently running 2.1.2 and just noticed there was an update. I'll do that now as well.

This is our first ADAPT package for a client, and gotta say you guys have done a fantastic job. Very cool tool.

I'll let you know how we go, really appreciate your help.

Picture of Trieu Truong
Re: SCORM Resume issues
by Trieu Truong - Wednesday, 23 May 2018, 12:47 AM
 

That worked! You're a legend! :)

Picture of Matt Leathes
Re: SCORM Resume issues
by Matt Leathes - Wednesday, 23 May 2018, 10:10 AM
 

Well that's good because quite frankly if that hadn't been the problem I would have had no idea what to suggest next!!

Don't forget you'll also need to update any assessment results components to have the right 'assessment name' reference too i.e. needs to be the same as the assessment you want them to show the results for.