SCORM

Unable to add SCORM activities on 3.5

 
Picture of Bob Derezinski
Re: Unable to add SCORM activities on 3.5
 

Looks like I forgot the error messages.  Attached is what I am not getting when I try and add a SCORM activity or change the url of a previously existing SCORM activity

Exception - Argument 1 passed to file_get_all_files_in_draftarea() must be of the type integer, null given, called in [dirroot]/lib/form/filemanager.php on line 336

More information about this error

Debug info:
Error code: generalexceptionmessage
Stack trace:
  • line 767 of /lib/filelib.php: TypeError thrown
  • line 336 of /lib/form/filemanager.php: call to file_get_all_files_in_draftarea()
  • line 580 of /lib/formslib.php: call to MoodleQuickForm_filemanager->validateSubmitValue()
  • line 526 of /lib/formslib.php: call to moodleform->validate_defined_fields()
  • line 636 of /lib/formslib.php: call to moodleform->is_validated()
  • line 1096 of /course/moodleform_mod.php: call to moodleform->get_data()
  • line 150 of /course/modedit.php: call to moodleform_mod->get_data()

 
Average of ratings: -
Picture of Mathew Gancarz
Re: Unable to add SCORM activities on 3.5
Core developersParticularly helpful Moodlers

Looks like you ran into an active bug possibly. Take a look at: https://tracker.moodle.org/browse/MDL-63231

Does it happen only with SCORM activities? Does the teacher have moodle/course:changesummary capability? Your site might have disabled it and it will give that error. See Paul Martin's post here: https://moodle.org/mod/forum/discuss.php?d=374099#p1510686

 
Average of ratings: -
Picture of Bob Derezinski
Re: Unable to add SCORM activities on 3.5
 

We are aware of this bug and ran into an issue this bug causes with needing to change settings in an activity and being unable to do so. We are not sure if it is related to our problem of not being able to add a new SCORM activity or change the url within a previously created SCORM activity or that is a separate bug?

We can add the other activity types without error, it is just unique to the SCORM activity for us.

It is not a permissions issue as we use Moodle in a corporate setting and don't have Teachers per se, the staff that create and maintain our course materials are all Administrators in our db.

I did check the access to the coursesummary for that role and it is checked.

 
Average of ratings: -
Picture of Mathew Gancarz
Re: Unable to add SCORM activities on 3.5
Core developersParticularly helpful Moodlers

Wish I could help more but I'm not sure. Though, I would say that changing a previously created SCORM activity does count as changing settings in an activity though, which would trigger the bug and the SCORM activity does always deal with the moodle file system I think in ways that other activities don't.


 
Average of ratings: -