SCORM error in LMS
by Sam Howell - Tuesday, 10 December 2019, 6:20 AM

I'm trying to upload an Adapt SCORM into a new course on my Moodle LMS.

I'm using latest versions of the authoring tool and framework, have published the course out as normal (.zip), but I can't figure out what's causing / how to fix the below message once I've uploaded and pressed on either: "Save and return to course" or "Save and display".

At [LMS root]/course/modedit.php I receive the following error:

XML error: > required at line 2

Any ideas much appreciated!

Picture of Matt Leathes
Re: SCORM error in LMS
by Matt Leathes - Tuesday, 10 December 2019, 10:03 AM

Could you share the file imsmanifest.xml from the course .zip?

Re: SCORM error in LMS
by Sam Howell - Tuesday, 10 December 2019, 7:23 PM

<?xml version="1.0" encoding="UTF-8"?>
<manifest identifier="{"_defaultLanguage":"en","_defaultDirection":"ltr","_questionWeight":1,"_generateSourcemap":false,"_forceRouteLocking":true,"_disableAnimationFor":[],"_id":"5de3f33be34cf56e78f4f6fb","_courseId":"5de3f33be34cf56e78f4f6fa","_drawer":{"_showEasing":"easeOutQuart","_hideEasing":"easeInQuart","_duration":400},"_accessibility":{"_isEnabled":false,"_shouldSupportLegacyBrowsers":true,"_isTextProcessorEnabled":false},"screenSize":{"small":519,"medium":759,"large":1024},"__v":7,"_trickle":{"_completionAttribute":"_isComplete"},"_xapi":{"_activityID":"","_isEnabled":false}}._spoor._advancedSettings._manifestIdentifier" version="1" xmlns="http://www.imsproject.org/xsd/imscp_rootv1p1p2" xmlns:adlcp="http://www.adlnet.org/xsd/adlcp_rootv1p2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.imsproject.org/xsd/imscp_rootv1p1p2 imscp_rootv1p1p2.xsd http://www.imsglobal.org/xsd/imsmd_rootv1p2p1 imsmd_rootv1p2p1.xsd http://www.adlnet.org/xsd/adlcp_rootv1p2 adlcp_rootv1p2.xsd">
    <schema>ADL SCORM</schema>
    <lom xmlns="http://www.imsglobal.org/xsd/imsmd_rootv1p2p1" xsi:schemaLocation="http://www.imsglobal.org/xsd/imsmd_rootv1p2p1 imsmd_rootv1p2p1.xsd">
          <langstring xml:lang="x-none"><![CDATA[Why Privacy Matters]]></langstring>
          <langstring xml:lang="x-none"><![CDATA[This unit will introduce you to what privacy is, why it matters, and what role it plays in our increasingly digitalised lives.]]></langstring>
  <organizations default="adapt_scorm">
    <organization identifier="adapt_scorm">
      <title><![CDATA[Why Privacy Matters]]></title>
      <item identifier="item_1" isvisible="true" identifierref="res1">
        <title><![CDATA[Why Privacy Matters]]></title>
    <resource identifier="res1" type="webcontent" href="index_lms.html" adlcp:scormtype="sco">
      <file href="index_lms.html"/>

Picture of Matt Leathes
Re: SCORM error in LMS
by Matt Leathes - Wednesday, 11 December 2019, 10:42 AM

Right, so what's happened there is that Adapt has imported the whole of config.json into your manifest file. I'm guessing the thing that's at fault is that in the authoring tool it is assumed that a default value will be present.  (see this PR).

What version of the spoor extension do you have installed? And, if you go to configuration settings > extensions > spoor > advanced - do you see a property called 'Manifest identifier' and what is it set to if so?

Re: SCORM error in LMS
by Sam Howell - Wednesday, 11 December 2019, 6:59 PM

Thanks for your help, Matt.

I inspected the settings for Spoor, confirmed the identifier was set to adapt_manifest, and then everything was fine from that point onwards.

I think the issue was simply not enabling Spoor before.

Picture of Matt Leathes
Re: SCORM error in LMS
by Matt Leathes - Thursday, 12 December 2019, 11:37 AM

I have a suspicion that just going into configuration settings may cause the authoring tool to populate that field...