Scorm file not displaying for student

Scorm file not displaying for student

by pau nadan -
Number of replies: 9

I am new to moodle.  I have uploaded a scorm file as a course.  Logged in as  admin I can access the course link and it works fine.  When a student logs in the link is not shown, just the course title.  The scorm file was produced using Camtasia. I am using Moodle version 2.3.1.  It seems like something simple, like a permissions setting, but I cant figure it out.  Thanks for any help.

Average of ratings: Useful (1)
In reply to pau nadan

Re: Scorm file not displaying for student

by Amy Groshek -
So first you should check the permissions settings for the site and the course and rule that out.

http://docs.moodle.org/23/en/Managing_roles

If that doesn't work, you need to check for PHP errors, JavaScript errors, and the like. You should also try turning on the API log temporarily to see if there are any issues with the API.

http://docs.moodle.org/22/en/SCORM_FAQ#Asking_for_Help_in_the_SCORM_Forum
In reply to pau nadan

Re: Scorm file not displaying for student

by Jakub Kazmierski -

Hello.  


I just had an issue where some of my students were not able to open up scorm files.   I just upgraded form 1.9 all the way to 2.4.1.  

My issue ended up being with some of the IE7 and IE8 browsers had javascrip issues.   My users where getting the "JSON is undefined" error when they were loading the scorm file.  

JSON is supported natively in most browser but not in IE7 and I'm not sure about 8.   Here is the solution I used:

http://www.devcurry.com/2010/12/resolve-json-is-undefined-error-in.html

 

To test if you have json working in your browser you can just make a simple html page with this script. 

<script type ="text/javascript">
if (typeof JSON !== 'object') {

alert("json not exist!");
}else{

alert("jason loaded");

}
</script>

Average of ratings: Useful (1)
In reply to Jakub Kazmierski

Re: Scorm file not displaying for student

by Javier Hernández Sánchez -

Including the script json2.js works correctly, but now, where would put the code <script type="text/javascript" src="json2.js"></script> in php moodle pages? in the page player.php?

In reply to Javier Hernández Sánchez

Re: Scorm file not displaying for student

by Javier Hernández Sánchez -

I placed the code in line 192

$PAGE->requires->js('/mod/scorm/json2.js', true);

before the next code

$PAGE->requires->js('/mod/scorm/request.js', true);
$PAGE->requires->js('/lib/cookies.js', true);
$PAGE->requires->css('/mod/scorm/styles.css');

in the file player.php.

I have also attached the file json2.js at this response.

best regards.

Average of ratings: Useful (1)
In reply to Javier Hernández Sánchez

Re: Scorm file not displaying for student

by Alex Greene -

I am really glad to find this. Javier, thank you for your detailed post! We are having exactly the same problem launching scorm packages in IE7 after upgrading to 2.4.3+. I do have one question. Where should the json2.js file be put in my moodle directory?

Best,

Alex

In reply to Jakub Kazmierski

Re: Scorm file not displaying for student

by Davo Smith -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

The best fix for this would be to change the 3 references to 'JSON.parse' to 'Y.JSON.parse' - no need to add additional javascript library code.

I've submitted a patch to this effect (but no idea if it will be accepted):

https://tracker.moodle.org/browse/MDL-39219

In reply to Davo Smith

Re: Scorm file not displaying for student

by Alex Greene -

Is this fix included in 2.4.4+?  If I am reading the tracker right, it is resolved. We updated from 2.4.3+ to 2.4.4+, and I was wondering if it is necessary to apply the json2 fix again. I don't have access to an IE7 browser at the moment to try it out.

Thanks.