Moodle Plugins directory: Formulas question type | Moodle.org

Formulas question type
Question types ::: qtype_formulas
Maintained by
Dominique Bauer,
Philipp Imhof
This is a question type plugin for Moodle with random values and multiple answer fields.
Latest release:
2205 sites
485 downloads
77 fans
Current versions available: 3
This is a question type plugin for Moodle with random values and multiple answer fields.
The answer fields can be placed anywhere in the question so that we can create questions involving various answer structures such as coordinate, polynomial and matrix.
Other features such as unit checking and multiple subquestions are also available.
These functionalities can simplify the creation of questions in many fields related to mathematics, numbers and units, such as physics and engineering.
Contributors
Dominique Bauer (Lead maintainer)
Philipp Imhof: Co-maintainer
Jean-Michel Védrine: Former maintainer
hon wai lau: Original creator
Please login to view contributors details and/or to contact them
Please note that this is (probably) the last version for Moodle < 4.1 and PHP < 8.0. The next major release will focus on the more recent versions.
I actually did not even know that the adaptive multipart behaviour was flagged as "not compatible" with Moodle 4.3, because it de facto seems to be, as all the automated tests we use in the Formulas question plugin automatically install that behaviour as a prerequisite and they all succeed. Also, the plugin list says that qbehaviour_adaptivemultipart in version 4.3.8 works with Moodle 3.9+. Do you actually have any error messages or the like? If so, please feel free to open an issue, even in our bug tracker.
However, removing the dependency is IMHO absolutely unthinkable, because Formulas questions could then no longer be used with the adaptive behaviour. That would be too much of a restriction for many teachers, probably.
We are planning to release a new major upgrade to the Formulas question plugin that will, in the long run, make it much easier to add new features. It comes with full backwards compatibility and brings some nice features w. r. t. syntax.
If you have a testing installation, you can already download the new version from our GitHub (master branch) and have a look at it. We would appreciate your feedback (via a GitHub issue), especially if you encounter any problems. Note that the version number has not yet been updated, in order to make it easier to return to the current stable version. Hence, testers must "Purge all caches" on their system after installation.
While it is possible to test it on a production instance, we do not recommend to do so. Even if we took great care, there might be hidden bugs. If you decide to test it, don't forget to make a full backup.
Best regards
We have released 5.3.5, a maintenance release of the old stable version. It includes patches that will improve restore processes on Moodle 4.4 and 4.5.
Note that this version will not offer compatibility with the upcoming release of Moodle. Users of future Moodle 5.0 will need to install Formulas Question 6.0 which is going to be released right after Moodle 5.0.
Best regards
Trazado de la pila (stack):
line 200 of /question/type/formulas/backup/moodle2/restore_qtype_formulas_plugin.class.php: TypeError thrown
line 200 of /question/type/formulas/backup/moodle2/restore_qtype_formulas_plugin.class.php: call to array_merge()
line 117 of /backup/util/helper/restore_questions_parser_processor.class.php: call to restore_qtype_formulas_plugin::convert_backup_to_questiondata()
line 150 of /backup/util/xml/parser/processors/grouped_parser_processor.class.php: call to restore_questions_parser_processor->dispatch_chunk()
line 207 of /backup/util/xml/parser/progressive_parser.class.php: call to grouped_parser_processor->after_path()
line 287 of /backup/util/xml/parser/progressive_parser.class.php: call to progressive_parser->inform_end()
line ? of unknownfile: call to progressive_parser->end_tag()
line 178 of /backup/util/xml/parser/progressive_parser.class.php: call to xml_parse()
line 157 of /backup/util/xml/parser/progressive_parser.class.php: call to progressive_parser->parse()
line 464 of /backup/util/dbops/restore_dbops.class.php: call to progressive_parser->process()
line 1552 of /backup/moodle2/restore_stepslib.php: call to restore_dbops::load_categories_and_questions_to_tempids()
line 34 of /backup/util/plan/restore_execution_step.class.php: call to restore_load_categories_and_questions->define_execution()
line 199 of /backup/util/plan/base_task.class.php: call to restore_execution_step->execute()
line 191 of /backup/util/plan/base_plan.class.php: call to base_task->execute()
line 168 of /backup/util/plan/restore_plan.class.php: call to base_plan->execute()
line 411 of /backup/controller/restore_controller.class.php: call to restore_plan->execute()
line 716 of /blocks/sharing_cart/classes/controller.php: call to restore_controller->execute_plan()
line 95 of /blocks/sharing_cart/restore.php: call to block_sharing_cart\controller->restore()
i think sometinhs is wrong with the plugin.
Regards Diego
I have opened an issue on GitHub: https://github.com/FormulasQuestion/moodle-qtype_formulas/issues/184
As you can imagine, that error does not happen in my test cases. So I would appreciate having more information, e. g. the versions (Formulas, Moodle, PHP) you used for the backup and the restore. If possible, please follow the link above and comment on the issue to help me find the problem. The best thing would obviously be to have the backup of the quiz you are trying to restore, but I don't know if it is possible for you to share it.
I haven't heard from you for a few days. Please note that I cannot reproduce the issue you mentioned. I would love to find the root of the problem and solve it for you, but I can only do so with your help. I would appreciate getting more information from you soon.
Best regards