Picture of Gaizka Martinez
Scorm not starting on Chamilo 1.11.8 Adapt AT
by Gaizka Martinez - Thursday, 31 January 2019, 7:38 PM
 

Hi, 

I am developing a course for Chamilo using the Adapt Authoring Tool for exporting de scorm. 

When it's launched on Chamilo 1.11.8 the lesson doesn't start until you click on the name of the lesson, but when you do that you get a 100% of lesson.

Doing some research, in the console of the firefox inspector it drops some errors:

The first time the scorm opens it drops this error:

TypeError: Backbone.Controller is undefined[Learn More] adapt.min.js:1:6235

    • <anonymous> https://agoraformacionvirtual.com/chamilo/courses/UF1169/scorm/adapt-2/adapt/js/adapt.min.js:1
    • execCb https://agoraformacionvirtual.com/chamilo/courses/UF1169/scorm/adapt-2/libraries/require.min.js:29
    • check https://agoraformacionvirtual.com/chamilo/courses/UF1169/scorm/adapt-2/libraries/require.min.js:18
    • enable https://agoraformacionvirtual.com/chamilo/courses/UF1169/scorm/adapt-2/libraries/require.min.js:23
    • enable https://agoraformacionvirtual.com/chamilo/courses/UF1169/scorm/adapt-2/libraries/require.min.js:27
    • enable https://agoraformacionvirtual.com/chamilo/courses/UF1169/scorm/adapt-2/libraries/require.min.js:22
    • z https://agoraformacionvirtual.com/chamilo/courses/UF1169/scorm/adapt-2/libraries/require.min.js:7
    • y https://agoraformacionvirtual.com/chamilo/courses/UF1169/scorm/adapt-2/libraries/require.min.js:6
    • enable https://agoraformacionvirtual.com/chamilo/courses/UF1169/scorm/adapt-2/libraries/require.min.js:21
    • init https://agoraformacionvirtual.com/chamilo/courses/UF1169/scorm/adapt-2/libraries/require.min.js:16
    • m https://agoraformacionvirtual.com/chamilo/courses/UF1169/scorm/adapt-2/libraries/require.min.js:26

The second click on the left panel it drops more errors:

Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user’s experience. For more help http://xhr.spec.whatwg.org/ jquery.min.js:4:15141
The character encoding of a framed document was not declared. The document may appear different if viewed without the document framing it. require.min.js
 
Error: Mismatched anonymous define() module: function(e){function t(t,s){var n,a,o,r=t.nodeName.toLowerCase();return"area"===r?(n=t.parentNode,a=n.name,t.href&&a&&"map"===n.nodeName.toLowerCase()?(o=e("img[usemap='#"+a+"']")[0],!!o&&i(o)):!1):(/^(input|select|textarea|button|object)$/.test(r)?!t.disabled:"a"===r?t.href||s:s)&&i(t)}function i(t){return e.expr.filters.visible(t)&&!e(t).parents().addBack().filter(function(){return"hidden"===e.css(this,"visibility")}).length}function s(e){for(var t,i;e.length&&e[0]!==document;){if(t=e.css("position"),("absolute"===t||"relative"===t||"fixed"===t)&&(i=parseInt(e.css("zIndex"),10),!isNaN(i)&&0!==i))return i;e=e.parent()}return 0}function n(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog… require.min.js:7:290
    • F https://agoraformacionvirtual.com/chamilo/courses/UF1169/scorm/adapt-2/libraries/require.min.js:7
    • P https://agoraformacionvirtual.com/chamilo/courses/UF1169/scorm/adapt-2/libraries/require.min.js:14
    • m https://agoraformacionvirtual.com/chamilo/courses/UF1169/scorm/adapt-2/libraries/require.min.js:26
    • requirejs https://agoraformacionvirtual.com/chamilo/courses/UF1169/scorm/adapt-2/libraries/require.min.js:32
    • loadFoundationLibraries https://agoraformacionvirtual.com/chamilo/courses/UF1169/scorm/adapt-2/adapt/js/scriptLoader.js:89
    • loadShim https://agoraformacionvirtual.com/chamilo/courses/UF1169/scorm/adapt-2/adapt/js/scriptLoader.js:71
    • checkJQueryStatus https://agoraformacionvirtual.com/chamilo/courses/UF1169/scorm/adapt-2/adapt/js/scriptLoader.js:57
    • j https://agoraformacionvirtual.com/chamilo/courses/UF1169/scorm/adapt-2/libraries/modernizr.js:4
    • g https://agoraformacionvirtual.com/chamilo/courses/UF1169/scorm/adapt-2/libraries/modernizr.js:4
    • h https://agoraformacionvirtual.com/chamilo/courses/UF1169/scorm/adapt-2/libraries/modernizr.js:4
    • onload https://agoraformacionvirtual.com/chamilo/courses/UF1169/scorm/adapt-2/libraries/modernizr.js:4
 

TypeError: $(...).mediaelementplayer is not a function[Learn More] jquery.frameready.js line 279 > eval:3:53

 

The third click on the name of the left panel it charges de scorm but at 100% of the progression:

ReferenceError: $ is not defined[Learn More] jquery.frameready.js line 279 > eval:2:9

The character encoding of a framed document was not declared. The document may appear different if viewed without the document framing it. jquery.v2.min.js
The character encoding of a framed document was not declared. The document may appear different if viewed without the document framing it. adapt.min.js
connection.initialize called. adapt.min.js:5:11252
SCORM.API.find: API found. Version: 1.2 adapt.min.js:5:11252
API: [object Object] adapt.min.js:5:11252
SCORM.data.get('cmi.core.lesson_status') value: completed adapt.min.js:5:11252
SCORM.data.get('cmi.suspend_data') value: adapt.min.js:5:11252
SCORM.data.get('cmi.core.lesson_location') value: adapt.min.js:5:11252
SCORM.data.get('cmi.core.score.raw') value: 0 adapt.min.js:5:11252
SCORM.data.get('cmi.core.lesson_status') value: not attempted adapt.min.js:5:11252
SCORM.data.get('cmi.core.student_name') value: Sistemas, Administrador
SCORM.data.get('cmi.core.student_id') value: 1 adapt.min.js:5:11252
SCORM.data.set('cmi.suspend_data') value: {"lang":"en"} adapt.min.js:5:11252
SCORM.data.get('cmi.core.student_name') value: Sistemas, Administrador adapt.min.js:5:11252
SCORM.data.get('cmi.core.student_id') value: 1 adapt.min.js:5:11252
SCORM.data.get('cmi.core.lesson_location') value: adapt.min.js:5:11252
SCORM.data.get('cmi.core.score.raw') value: 0 adapt.min.js:5:11252
SCORM.data.get('cmi.core.lesson_status') value: not attempted adapt.min.js:5:11252
SCORM.data.get('cmi.core.student_name') value: Sistemas, Administrador
SCORM.data.get('cmi.core.student_id') value: 1 adapt.min.js:5:11252
SCORM.data.get('cmi.core.lesson_location') value: adapt.min.js:5:11252
SCORM.data.set('cmi.core.lesson_location') value: adapt.min.js:5:11252
 
 The authoring tool is from git and is up to date. 
I have tested this scorm on a Moodle installation and it's ok.
Some hint on this?
Thank you!



Picture of Matt Leathes
Re: Scorm not starting on Chamilo 1.11.8 Adapt AT
by Matt Leathes - Friday, 1 February 2019, 10:35 AM
 

Probably either this or something very closely related to it.

Picture of Gaizka Martinez
Re: Scorm not starting on Chamilo 1.11.8 Adapt AT
by Gaizka Martinez - Friday, 1 February 2019, 1:38 PM
 

And there is something I can do or edit in my installation on chamilo either adapt authoring tool to solve it until version 2.0 of chamilo is released (that it would be 2018 and still on v1.11.9). We really want to use Adapt in our workflow.

Thanks for the help Matt!

Picture of Gaizka Martinez
Re: Scorm not starting on Chamilo 1.11.8 Adapt AT
by Gaizka Martinez - Friday, 1 February 2019, 2:13 PM
 

I have posted on the chamilo forum so this is a chamilo problem, not Adapt Learning itself, but if you know something I can do... will be welcome :D 

https://github.com/chamilo/chamilo-lms/issues/2069#issuecomment-459734548

Thank you moloko

Picture of Matt Leathes
Re: Scorm not starting on Chamilo 1.11.8 Adapt AT
by Matt Leathes - Friday, 1 February 2019, 2:32 PM
 

It's been a while since I logged that ticket but as I commented at the time it only occurs if "I set the course to launch in 'embedded' view mode" - so I'm guessing that there are other view modes in Chamilo that did work OK...

FYI there's another ticket that remains unfixed: https://github.com/chamilo/chamilo-lms/issues/2063 - sorry I can't remember how much of a problem that was. I think it just triggered an error. Whether it will still do so or not (our code has undergone quite a few changes since then) I guess is something you'll find out! If you do I should be able to help you suppress the error.

Picture of Gaizka Martinez
Re: Scorm not starting on Chamilo 1.11.8 Adapt AT
by Gaizka Martinez - Friday, 1 February 2019, 3:19 PM
 

OK, I'm going to edit that file and test it.

edit:

Tested, the file main/lp/scorm_api.php was already fixed.

Picture of Gaizka Martinez
Re: Scorm not starting on Chamilo 1.11.8 Adapt AT
by Gaizka Martinez - Saturday, 2 February 2019, 12:31 PM
 

Hi again, I'm lost with this. Can I try anything else?