Moodle plugins directory: Multinumerical | Moodle.org
Multinumerical
Question types ::: qtype_multinumerical
Maintained by Nicolas Dunand
This question type allows asking questions such as :
Please enter X, Y, and Z, such as :
X + Y + Z > 12
Latest release:
390 sites
361 downloads
13 fans
Current versions available: 7
This question type allows asking questions such as :
Please enter X, Y, and Z, such as :
- X + Y + Z > 12
- X - Y <= 3
- Z = [0;100] (Z is between 0 and 100, included)
For each constraint, a feedback can be generated, displaying some text for a condition being fulfilled, and some other text if not.
The grading can be set to be one of the following :
- 100% (all constraints fulfilled) or 0%
- grade = (amount of constraints fulfilled) / (total amount of constraints)
Contributors
Nicolas Dunand (Lead maintainer)
CSE Université de Lausanne: Supporting institution
Please login to view contributors details and/or to contact them
We're using the plugin without any problems in Moodle 2.5. Can you please describe the problem encountered?
finished without result. Waiting on admin index. Have to delete plugin.
I'm not sure what "install on this page" does. Could you update me on this?
Got this error message:
Upgrading to new version
qtype_multinumerical
Field "questionid" does not exist in table "question_multinumerical"
More information about this error
Debug info:
Error code: ddlfieldnotexist
Stack trace:
line 674 of /lib/ddl/database_manager.php: ddl_field_missing_exception thrown
line 50 of /question/type/multinumerical/db/upgrade.php: call to database_manager->rename_field()
line 531 of /lib/upgradelib.php: call to xmldb_qtype_multinumerical_upgrade()
line 1601 of /lib/upgradelib.php: call to upgrade_plugins()
line 438 of /admin/index.php: call to upgrade_noncore()
Unfortunately, this seems to prevent everything from upgrading, and removing the multinumerical files from the server doesn’t help as I still can't upgrade.
It looks as if the table in question is empty (but I know almost nothing about databases).
Sorry about that. Would you be able to tell me which fields your question_multinumerical table contains?
This is the third Moodle site I have set up with your question type, and it is the only one that has thrown an error. The database for this one is much larger - I have moved and upgraded our College Moodle site. This entailed using a tool to prevent the process timing out, but I used it on all of them.
In PHPMyAdmin you have to click the "structure" button next to the table name (or on top of the screen once the table is selected) to see the structure. It is possible that the table contains no records (i.e., no rows) but it is the structure of the table (not its content) that matters here.
I have 8 fields: id, question, parameters, conditions, feedbackperconditions, binarygrade, displaycalc and usecolorforfeedback.
So no questionid, but there is id.
Okay, there is apparently an upgrade path I didn't think of. To solve your problem, you can safely delete line 50 of the multinuerical/db/upgrade.php file. Then the upgrade process should be able to finish correctly.
Thank you,
----------------------------------
Field "questionid" does not exist in table "question_multinumerical"
More information about this error
Debug info:
Error code: ddlfieldnotexist
Stack trace:
line 669 of /lib/ddl/database_manager.php: ddl_field_missing_exception thrown
line 50 of /question/type/multinumerical/db/upgrade.php: call to database_manager->rename_field()
line 535 of /lib/upgradelib.php: call to xmldb_qtype_multinumerical_upgrade()
line 1615 of /lib/upgradelib.php: call to upgrade_plugins()
line 434 of /admin/index.php: call to upgrade_noncore()
---------------------------------
Thank you,
I've just come across this question type and am interested in using it to set multi-part calculation questions where any calculation errors on the part of the user are carried forward and taken into account in their next answer.
It seems to work where the answers are whole numbers, but falls down where irrational numbers are concerned. I'd like to be able to set a tolerance on correct answers but haven't found a way to do it. I was thinking that Boolean operators might work but they don't seem to be recognised. Is that right? Is there any other way to do this that you can think of?