Moodle Plugins directory: Question Creation Activity | Moodle.org
Question Creation Activity
The Question Creation Activity is a graded activity where students must create questions in the Moodle question bank. A teacher grades the questions.
The students get a grade for the questions they create.
You can specify a percentage of the grade to be automatically assigned depending on how many of the required questions the student creates and the rest of the grade awarded to the student to be dependent on the grade a teacher assigns for the questions created.
It is possible to choose that the activity is 100% automatic grading without any teacher manual grading, or 100% manually graded by teachers.
You can chose the question types students will be allowed to create and the number of questions required to complete the activity.
Thanks for the report. I will do some tests but this is the first time such a problem is reported and I have tested the qcreate module with Moodle 3.0 and 3.1dev.
Can you test that your cron is working and executed at very short intervals ? As noted in the readme, this activity needs that your Moodle cron is working and executed at regular and short intervals (I suggest 1 minute) because the question creation activity rely on scheduled tasks to upgrade grades and more importantly to update students capacities on question categories
For me all is working as expected.
But I have released a new versions because during these tests I have found some very minor and not related things to fix.
Miro, if you can verify that your cron is working and that the qcreate scheduled tasks are executed and you still have this problem, please open an issue in the bug tracker
I am sorry but I am now retired and I stopped Moodle coding. So I will not publish new versions and this plugin needs a new maintainer
Thanks for reporting this. As you may know I am now retired so I don't have a Moodle site running and I can only rely on users reporting bugs to fix the problems as I don't use my own plugins anymore !
In fact these functions have only been added recently in Janvier 2018 because I did some work to update this activity module to support Moodle recent features. At the same time I also added a lot of phpunits and Behat tests to help me verify that this module was working correctly. Unfortunately I haven't added any test of the _refresh_events and _update_events functions. My bad, each new introduced function should have a test. I will now write some tests to investigate the problem and fix it.
I have released a new version to day 05/15/2018 that should fix the problems related to calendar events management. I have also added some automated tests to verify that the new functions introduced in January 2018 are working as expected. Again thanks for your bug report and if possible confirm that the issue you had is now fixed.
"PHP Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /XXX/YYY/mod/qcreate/lib.php on line 1346"
Moodle 3.8
Any idea?
Ricardo
Cheers,
Jesse
As I already said I am now retired and stopped all Moodle programming.
I had a look at it and from what I see somebody could solve this replacing the lines
case 'completionquestions':
if (empty($val)) {
continue;
}
$descriptions[] = get_string('completionquestionsdesc', 'qcreate', $val);
break;
With
case 'completionquestions':
if (!empty($val)) {
$descriptions[] = get_string('completionquestionsdesc', 'qcreate', $val);
}
break;