Molsimilarity
Maintained by
Céline Pervès, Louis Plyer, Gilles MARCOU, Célien Jacquemard
Moodle plugin allowing the teacher to ask a chemistry related question by drawing the expected answer. The student will answer by drawing the response.
Comments
Comments are no longer open for new posts. Existing comments remain available to read.
It's seems to come from a depreacted constant removed beetween 4.4.x and 4.5.x but in the 1.5.0 version of the plugin I remove that constant
I'll try to reproduce the error to prevent this to arrive
when i have moodle 4.4.7 cannot update molsimilarity to 1.5.0 (2025022100) - got error - wrong version moodle.
So hgave to update moodle to 4.5 . And when upgrading i have error above (line 33 of /question/type/molsimilarity/db/messages.php: Error thrown) . Got error without making any changes to the files .
To fix that problem solution is above
In the case of molsimilarity plugin a lot of javascript module files have changed (new one, old one removed) that can explain errors if you only copy new code under old one not deleted before
I'll put a warning concerning this in the readme
Glad it works for you and thanks for your return
1 . i removed folder moodle/question/type/molsimilarity (save copy)
2. succesful upgrade moodle 4.4-> 4.5
3. past copied folder molsimilarity to moodle/question/type/
4. upgrade plugin molsimilarity by standard procedure
and working !
Stack trace:
line 33 of /question/type/molsimilarity/db/messages.php: Error thrown
line 692 of /lib/messagelib.php: call to require()
line 487 of /lib/messagelib.php: call to message_get_providers_from_file()
line 629 of /lib/upgradelib.php: call to message_update_processors()
line 771 of /lib/upgradelib.php: call to upgrade_component_updated()
line 1937 of /lib/upgradelib.php: call to upgrade_plugins()
line 719 of /admin/index.php: call to upgrade_noncore()
if you have instances of molsimilarityquestions you must delete them before uninstalling the plugin, this Moodle behaviour for question type plugins
Note that this is not necessary to uninstall 4.1 molsimilarity plugin to migrate to 4.5 plugin version, the plugin update is took into account
Céline Perves.
Thanks you 4 supporting. NOw is working