Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-25891

"General Exception" scorm_12.js LMSCommit function

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.9.9, 1.9.10, 2.0
    • 2.0.2
    • SCORM
    • None
    • n/a
    • Any
    • MOODLE_19_STABLE, MOODLE_20_STABLE
    • MOODLE_20_STABLE

    Description

      Whilst creating some SCORM 1.2 objects in CourseLab and importing them into Moodle (1.9.9+ and 2.0) I keep getting an alert message when moving between slides:

      ScormApi2004.LMSCommit:
      General exception

      Investigating the call to "mod/scorm/datamodel.php" results in "true\n0" however I found the following lines of code:

      scorm_12.js
      433: result = ('true' == result) ? 'true' : 'false';
      434: errorCode = (result ==' true')? '0' : '101';

      which results in errorCode always being set to '101' (general exception), causing the alert message. (note proceeding the space in ' true').

      Attachments

        Issue Links

          Activity

            People

              danmarsden Dan Marsden
              hais Hais Deakin
              David Mudrák (@mudrd8mz) David Mudrák (@mudrd8mz)
              Dan Marsden, Matteo Scaramuccia, Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                21/Feb/11