Moodle

CMI.Evaluation Javascript Error

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 1.8
  • Fix Version/s: 2.0
  • Component/s: SCORM
  • Labels:
    None
  • Environment:
    Linux
  • Affected Branches:
    MOODLE_18_STABLE
  • Fixed Branches:
    MOODLE_20_STABLE

Description

Getting a javascript error related to cmi.evaluation on courses loaded and launching using AICC.
Also an error related to cmi.evaluation.comments = null.

Issue Links

Activity

Hide
Dennis Heijmans added a comment -

Sorry, this screenshot is Dutch. the error message is "'cmi.evaluation.comments' is empty or not an object". You can start the course but there is no AICC tracking. We have a testserver with Apache 2.0, PHP 5.1 and MySQL 5.0.

Show
Dennis Heijmans added a comment - Sorry, this screenshot is Dutch. the error message is "'cmi.evaluation.comments' is empty or not an object". You can start the course but there is no AICC tracking. We have a testserver with Apache 2.0, PHP 5.1 and MySQL 5.0.
Hide
Martin Holden added a comment -

Hi the fix for this is to edit the file below:

mod\scorm\datamodels\aicc.js.php

The datamodel contains and evaluation node BUT the javascript code to generate the datamodel object fails to create the necessary objects before attempting to populate them.

Add the lines shown below between the ******

Approx line number: 119

//
// Datamodel inizialization
//
var cmi = new Object();
cmi.core = new Object();
cmi.core.score = new Object();
cmi.objectives = new Object();
cmi.student_data = new Object();
cmi.student_preference = new Object();
cmi.interactions = new Object();

//******
//Martin_Holden[at]skillsoft[dotty]com - added to fix cmi.evaluations error messages on AICC launch
cmi.evaluation = new Object();
cmi.evaluation.comments = new Object();
//
//******

Show
Martin Holden added a comment - Hi the fix for this is to edit the file below: mod\scorm\datamodels\aicc.js.php The datamodel contains and evaluation node BUT the javascript code to generate the datamodel object fails to create the necessary objects before attempting to populate them. Add the lines shown below between the ****** Approx line number: 119 // // Datamodel inizialization // var cmi = new Object(); cmi.core = new Object(); cmi.core.score = new Object(); cmi.objectives = new Object(); cmi.student_data = new Object(); cmi.student_preference = new Object(); cmi.interactions = new Object(); //****** //Martin_Holden[at]skillsoft[dotty]com - added to fix cmi.evaluations error messages on AICC launch cmi.evaluation = new Object(); cmi.evaluation.comments = new Object(); // //******
Hide
Piers Harding added a comment -

Hi all - I actually fixed this, and then found that you (Martin) allready had, as I was working through MDL-14485, and MDL-14486 patches. Are you happy for me to pick this up Dan?

Cheers.

Show
Piers Harding added a comment - Hi all - I actually fixed this, and then found that you (Martin) allready had, as I was working through MDL-14485, and MDL-14486 patches. Are you happy for me to pick this up Dan? Cheers.
Hide
Dan Marsden added a comment -

take any you want!

would be good to get these AICC issues fixed, especially as patches are already available!

Dan

Show
Dan Marsden added a comment - take any you want! would be good to get these AICC issues fixed, especially as patches are already available! Dan
Hide
Piers Harding added a comment -

Cool - it's mine

Show
Piers Harding added a comment - Cool - it's mine
Hide
Dan Marsden added a comment -

This has now been fixed in Head(moodle 2.0) - We currently have no plans to backport this to 1.9Stable, 1.8Stable as this is a big patch, and we haven't received enough working AICC objects to allow us to verify these fixes. - we may revisit this later if more AICC objects are provided for testing.

thanks,

Dan

Show
Dan Marsden added a comment - This has now been fixed in Head(moodle 2.0) - We currently have no plans to backport this to 1.9Stable, 1.8Stable as this is a big patch, and we haven't received enough working AICC objects to allow us to verify these fixes. - we may revisit this later if more AICC objects are provided for testing. thanks, Dan
Hide
Dan Marsden added a comment -

closing - we have no AICC objects to allow this to be tested properly, and no-one seems to be interested in providing them. If this is still an issue for you, please make some AICC objects available in the SCORM repository to allow us to test/reproduce/fix.

Show
Dan Marsden added a comment - closing - we have no AICC objects to allow this to be tested properly, and no-one seems to be interested in providing them. If this is still an issue for you, please make some AICC objects available in the SCORM repository to allow us to test/reproduce/fix.

People

Vote (2)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: