
Combined
Question types ::: qtype_combined
Maintained by
Tim Hunt,
Phil Butcher,
Mahmoud Kassaei
A Moodle question type which allows questions to be built up from parts that are other simpler question types (requires you to have these question types installed)
Latest release:
1161 sites
375 downloads
51 fans
There are working examples in eAssessment with Moodle on our OpenLearn site.
The documentation is in How to create questions in Moodle on that site.
This question types uses other question types as sub questions. It allows you to have one or more entry fields for any of these question types embedded in your question text. You must have at least one of these question types installed for this combined question type to work :
- Variable numeric
- (the variable numeric question type in turn requires variable numeric set)
- Pattern match
- OU multiple response
- and / or Select missing word
Here is an example of a question where a teacher has combined 1 variable numeric, 1 pmatch, 1 multiple response and 1 select missing word sub question in one combined question.
Sets
This plugin is part of set Open University.
Useful links
Contributors
Tim Hunt (Lead maintainer)
Phil Butcher: Question type designer
Mahmoud Kassaei: Developer
Jamie Pratt: Developer
Chris Nelson: Product owner
Please login to view contributors details and/or to contact them
Is there any chance we might get 3.2 compatible versions of the combined and other various question types please? 3.1.x is now out of support and I would really like to upgrade to 3.2 or 3.3
Thanks
First of all, thanks for this question type, that's awesome.
I'm trying to implement the core multichoice as combined (I don't want the OU-one notation system, nor the checkboxes). No problems on where to place my files, but I'm not really sure of what I need to keep / change from the oumultiresponse / gapselect implementation, neither from combinable.php nor from renderer.php.
Do you have some tips to implement quickly the behaviour of a core type as combinable ? (I'm trying to do it, comparing the source files of 'gapselect' with 'combinable_gapselect', but that's not the much efficient)
Cheers,
The flexibility of combined question type gets Moodle quizzes much closer to looking like the standardized tests my students are starting to see. Pure mimicking is not the goal, of course, but using my Moodle to make questions that get my students comfortable with the format is a big deal. Adding a field for a typed response would be a huge help for me.
I think you are very busy, but I need your help.
I have effectively used your Combined plugin until now!
I receive the error message: "Exception - Class 'qtype_multichoice' not found " when creating a new combined question. I cannot preview the old combined questions! I tested with Moodle 3.9, 3.8, then 3.7, 3.6, 3.5 and I have the same problem!
I hope you help me to fix it!
Thanks.
Best Regards,
FL
Please can you turn on debugging (https://docs.moodle.org/en/Debugging) - set it to Developer level, and then copy the full error message. Then we can probably work out what the problem is. Thanks.
Thanks for your hint, and that is the full error message:
======
Debug info:
Error code: generalexceptionmessage
Stack trace:
line 74 of /question/type/oumultiresponse/combinable/combinable.php: Error thrown
line 85 of /question/type/combined/combiner/forform.php: call to qtype_combined_combinable_oumultiresponse->add_form_fragment()
line 68 of /question/type/combined/edit_combined_form.php: call to qtype_combined_combiner_for_form->form_for_subqs()
line 205 of /question/type/edit_question_form.php: call to qtype_combined_edit_form->definition_inner()
line 214 of /lib/formslib.php: call to question_edit_form->definition()
line 113 of /question/type/edit_question_form.php: call to moodleform->__construct()
line 47 of /question/type/combined/edit_combined_form.php: call to question_edit_form->__construct()
line 217 of /question/type/questiontypebase.php: call to qtype_combined_edit_form->__construct()
line 202 of /question/question.php: call to question_type->create_editing_form()
Output buffer: =======
Best Regards,
FL
I got half way through checking that my plugins work with Moodle 3.9, which means that I have published the latest version of qtype_oumultiresponse, but not yet the latest qtype_combined.
And I did not realise that the new mutli-choice / old combined is a broken combination. I am working on pushing a new version now. I just need to get the automated tests to pass.
Sorry for the inconvenience.
What an expert!
It works, Tim!
Thanks for your profession and enthusiasm!
Best Regards,
FL
PS: Can you (or you know who can) help me to fix the problem in "https://moodle.org/mod/forum/discuss.php?d=402196"? Thanks.
Last day i have upgraded my moodle from 3.7 to 3.10.
And from the combined essay type sub questions i am getting the following errors from the error log. [From the student role & Non-editing-teacher role]
[error] 14868#14868: *3617 FastCGI sent in stderr: "PHP message: Default exception handler: Exception - Access to undeclared static property: question_state::$ Debug:
Error code: generalexceptionmessage
* line 118 of /question/engine/states.php: Error thrown
* line 450 of /question/engine/questionattemptstep.php: call to question_state::get()
* line 1607 of /question/engine/questionattempt.php: call to question_attempt_step::load_from_records()
* line 960 of /question/engine/questionusage.php: call to question_attempt::load_from_records()
* line 481 of /question/engine/datalib.php: call to question_usage_by_activity::load_from_records()
* line 84 of /question/engine/lib.php: call to question_engine_data_mapper->load_questions_usage_by_activity()
* line 710 of /mod/quiz/attemptlib.php: call to question_engine::load_questions_usage_by_activity()
* line 648 of /mod/quiz/attemptlib.php: call to quiz_attempt->load_questions()
* line 669 of /mod/quiz/attemptlib.php: call to quiz_attempt->__construct()
* line 679 of /mod/quiz/attemptlib.php: call to quiz...
I know the combined 2.0 is not released for moodle 3.10 [sorry for not checking the docs before upgrade], is there anyway we can fix this error?
Best Regards,
SJ
Please not the PHP and MySQL versions for the moodle 3.10 instance is running.
PHP Version 7.3.19
MariaDB version 10.3.25
Regards,
SJ