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.
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
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>
Re: Scorm file not displaying for student
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?
Re: Scorm file not displaying for student
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.
Re: Scorm file not displaying for student
Hi Javier,
nice solution for SCORM, well done!
BTW, please, keep in mind that IE7 is no more supported starting from Moodle 2.3 (http://docs.moodle.org/dev/Moodle_2.3_release_notes#Requirements).
Matteo
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
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):
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.
Hi Alex,
it is required no more.
You can even read details about a different "upgrade" path in https://moodle.org/mod/forum/discuss.php?d=218891#p998643, and comments below, to perform a check just reading at the new added code.
HTH,
Matteo