Variable numeric set
Maintained by
Tim Hunt, Mahmoud Kassaei, Hieu Vu Van
A calculated numeric question type with variable and expression
evaluation. All values are precalculated although a question can have several
variants with different variable values for each variant.
Comments
Comments are no longer open for new posts. Existing comments remain available to read.
The table name was wrong lms_mdl_qtype_varnumeric_answers -> lms_mdl_qtype_varnumericset_answers
Thanks!!
The the table name and structure, which I assume is correct is lms_mdl_qtype_varnumeric_answers.
However it is empty.
The plugin installation is in a loop due to the error.
I've already added the new version of the plugin to the folder, but the problem persists.
Thank you.
I'm told by one of our developers that the qtype_varnumericset_answers table has existed for over 14 years, since the first version of the plugin. As it's working on our test servers and TTs, it's therefore /sounding/ to us like it's an issue with your database setup (renamed tables maybe?).
Can you help me?
Moodle version: 5.0.2+
Updating to new version
qtype_varnumericset
Table "qtype_varnumericset_answers" does not exist
More information about this error
Debug information:
Error code: ddltablenotexistIgnorar esta notificação
Stack trace:
line 146 of \lib\ddl\database_manager.php: ddl_table_missing_exception thrown
line 43 of \question\type\varnumericset\db\upgrade.php: call to database_manager->field_exists()
line 764 of \lib\upgradelib.php: call to xmldb_qtype_varnumericset_upgrade()
line 1943 of \lib\upgradelib.php: call to upgrade_plugins()
line 719 of \admin\index.php: call to upgrade_noncore()
Thanks
PHP Deprecated: Creation of dynamic property qtype_varnumericset_question::$randomseed is deprecated in /usr/local/www/moodle.4.5.4-20250424/question/type/questiontypebase.php on line 1022
Best regards
Sebastian
Is this plugin compatbile with moodle 3.3 ?
Thanks,
Kzou
log10(x) = log(x)/log(10)
varnumeric uses the same calculator library as the gradebook. In principle it might be possible to add a log10 function, or just a log(x, base) function of two arguemnts, but this would be a core change so you would need to open a feature request at https://tracker.moodle.org/ if there is not on there already.
I want to make a question with answer 20*log10(a) where a is a variable.
I cannot save the question with that answer but I can save the equation with answer 20*log(a). The validator for the answer field seems not to recognize log10 function.
Thanks.
JD Park