Subcourse
Maintained by
Dan Marsden, Catalyst IT
Subcourse behaves as a graded activity. The grade for each student is automatically fetched from a final grade in another course. This allows course designers to organize the learning content into separate units.
Comments
Comments are no longer open for new posts. Existing comments remain available to read.
Please help me solve the problem: when I try to install subcourse 4, I get an error /moodle/dmlwriteException
How can this be fixed?
Thank you
I'm creating a new Moodle website using version 4.0 and this plugin perfectly meets my needs.
Is a version compatible with Moodle 4.0 is going to be released ?
Thanks in advance for your answer.
Hello Jari. Please go through the discussion at https://github.com/mudrd8mz/moodle-mod_subcourse/issues/29 to understand the reasoning behind this setting.
Please can someone explain in detail what "Fetch grades as";
real values
and
percent values
actually mean in reality? How do the differ?
The only way I am aware of would make use of the 'Remove from view' feature of Dashboard. Normally, users can remove individual courses from their dashboards. If there was a way to inject the
'block_myoverview_hidden_course_' + courseIduser preference for every user and every subcourse, then they would not show at students' dashboards. But that would require some customisation and / or additional plugin.No, it is not its purpose. See https://docs.moodle.org/311/en/Restrict_access_FAQ#Can_I_make_access_to_a_course_conditional_upon_completing_another_course.3F for some relevant info.
Thanks Joseph. May I ask you to summarise this as a feature request in the plugin issue tracker at https://github.com/mudrd8mz/moodle-mod_subcourse/issues
However, if you could create a tick box in the settings that would allow teachers to also be able to show hidden grades from hidden courses, then it would enable teachers to leverage the subcourse plugin as a way to link together many courses into a "main" or "master" course as the portal / launchpad into learning!
I downgraded to the previous version, and everything works as before, but moving forwards maybe can this setting be added in?
Thanks for all your help in the past, and also sharing your great work with the Moodle community!
-_Joe
To help troubleshoot, I am using subcourse to pull grades from hidden courses into a "main" portal course, where the subcourses serve as each unit.
This is the beauty of Subcourse--you can build very large, complex courses, but keep them manageable since you can break apart your course into "subcourses", but to keep the student Dashboard from getting too messy, the subcourses are hidden and only the "Main" portal course shows up which then links out to each subcourse as well as aggregating the final grade.
Thanks for your help and sharing your great work with the Moodle community!
I am upgraded to Moodle 3.9, and I when I try to use Subcourse to fetch grades, I get this error message:
Unable to fetch grades: error code 4
More information about this error
Any ideas on how to fix this?
Thanks for your help!
We use subcourse plugin 10.0.0 in Moodle 3.10.4. There is a loop with this error : forearch (invalid argument) on /moodle/mod/subcourse/locallib.php line 238
We have more than 1200 groups. The loop takes about 20 ms but only with student profil.
I modifie code to test if the value exist like this
$gs = grade_grade::fetch_all(['itemid' => $gi->id]);
if (is_array($gs))
{
foreach ($gs as $g) {
$values= null;//warning!!!
if (isset($refgrades->grades[$g->userid])) {
if ($refgrades->grades[$g->userid]>hidden != $g>hidden) {
$g->grade_item = $gi;
$g->set_hidden($refgrades->grades[$g->userid]->hidden);
}}}}}
with this code, no more errors, the page is a little faster but not as fast as with the admin profile.
Please can you tell me how to solve ?
best regards