Closed elke-hsh closed 4 months ago
Error "Can't find data record in database table modules." raised when trying to add an lti-activity via addlti.php or addltiepisode.php.
addlti.php
addltiepisode.php
I fixed it by changing strictness to IGNORE_MISSING instead of MUST_EXIST in request for module in classes/local/ltimodulemanager.php.
IGNORE_MISSING
MUST_EXIST
classes/local/ltimodulemanager.php
// Lines 446 - 452 $module = $DB->get_record('modules', ['name' => 'opencast'], '*', IGNORE_MISSING); if ($module) { $defaults = manager::get_default_completion($course, $module); foreach ($defaults as $key => $value) { $moduleinfo->$key = $value; } }
We are not using mod_opencast for the moment, so we are just including series and episodes with lti.
Hey @elke-hsh,
thanks for the post! #361 contains your suggestion.
Cheers Justus
Error "Can't find data record in database table modules." raised when trying to add an lti-activity via
addlti.php
oraddltiepisode.php
.I fixed it by changing strictness to
IGNORE_MISSING
instead ofMUST_EXIST
in request for module inclasses/local/ltimodulemanager.php
.We are not using mod_opencast for the moment, so we are just including series and episodes with lti.