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

File storage on disk in Moodle 2 does not support complex SCORM SCOs



    • Bug
    • Status: Closed
    • Critical
    • Resolution: Not a bug
    • 2.0.1
    • None
    • SCORM
    • Windows Server 2003 Enterprise x64 running Virtuozzo


      Objective: to install a complex SCO (SCORM 1.2) in which the SCO incorporates several folders and a number of assets as described in the SCORM Content Aggregation Model (CAM). These packages are relatively large (9MB and 14MB), but have been installed successfully on version 1.9

      Following problems described in SCORM forum at http://moodle.org/mod/forum/discuss.php?d=158881 AND in particular, http://moodle.org/mod/forum/discuss.php?d=167376#p734879, it was attempted to load the two SCOs into Moodle by selecting imsmanifest.xml from the user repository, as suggested. This resulted in the initial error message:

      Notice: Undefined variable: sco in C:\moodle2\mod\scorm\datamodels\aicclib.php on line 588 Notice: Trying to get property of non-object in C:\moodle2\mod\scorm\datamodels\aicclib.php on line 588 Notice: Undefined property: stdClass::$incomplete in C:\moodle2\mod\scorm\locallib.php on line 763
      (Please refer to ../discuss.php?d=167376#p734879)

      Furthermore it was then found that all the previously installed files (see ...forum/discuss.php?d=158881) had been erased.

      Note that in addition to this specific problem, it is hard to see in any event how it is possible for a complex SCO (i.e. one that uses external assets) can function in the Moodle 2 file management system:
      1. Moodle stores files with hashed file names
      2. When Moodle calls a file, it looks for the file hash-name in the database
      3. The file is called by its storage hash-name (e.g. 05d56eed7c0cadd7d544c678902d80c487b17b2f)
      4. A SCO has no means of looking up a hash-name for an asset (at least without calling a Moodle-specific function)
      5. Therefore a SCO-internal call for an external graphic, video, text file or whatever will fail. Correct?

      The 9.3 MB zipped SCO is attached




            danmarsden Dan Marsden
            avionwbt Ian Wright
            Dan Marsden, Matteo Scaramuccia, Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan
            0 Vote for this issue
            2 Start watching this issue