Dragmath module

Dragmath module

by David Le Blanc -
Number of replies: 4
We installed the dragmath module yesterday, and all was working fine. Today, we noticed that our HTML editor was no longer working. Everything was showing as plain text, including all of the HTML tags. Under user preferences, we have this set to use the HTML editor as default. In any case, the only way we got our editor to work was to replace the editor folder under our lib folder with a previous version from a backup.
When we swap this with the one from the dragmath module we loose the HTML buttons and functionality again. Has anybody else experienced a similar problem?

It's strange that it seemed to be working fine when we first did the install. We then installed the marking block and did a upgrade from Moodle 1.9+ to 1.92. We didn't notice anything wrong with the HTML editor until the next day. thoughtful
Average of ratings: -
In reply to David Le Blanc

Re: Dragmath module

by Marc Grober -

1) How did you install dragmath? Did you follow the instructions in the moodle docs? Did you edit or replace adminlib.php

2) If you look at the CVS of the dragmath install you will note that Dragmath itself is contained in a /plugins/DragMath folder that is placed in /lib/editor/htmlarea - other than that there are just a few files that are involved, including dialog.js, htmlarea.php, /popups/dlg_ins_dragmath.php and images/em.icon.dragmath.gif .

3) Probloems typically arise with the CVS install because you are overwriting instead of patching htmlarea.php and dialog.js when you install dragmath, or when you install another editor module that then overwrites the htmlarea.php and dialog.js files you installed with DragMath. Since these files should be backed up before install, replacing these files should resolve all editor problems associated with DragMath. This is one downside of providing DragMath in this manner. As mentioned elsewhere it should be fairly simply to compare the two files in question and resolve the conflicts.

4) adminlib.php seems subject to rather regular modification, so in order to avoid unpleasant consequences, the docs indicate that this file should not be replaced but the file edited instead. If you installed the adminlib.php that is packaged with dragmath and then upgraded to 1.9.2 you should not lose dragmath functionality (see comments on this in the moodle docs) but if you then write the adminlib from the dragmath zip back to your installation I do undersdtand that this causes loss of functionality



In reply to Marc Grober

Re: Dragmath module

by David Le Blanc -
Marc,
Thank you for assistance. After reading your instructions, we went in and reinstalled the dragmath module from scratch. It now seems to be working. approve
In reply to David Le Blanc

Re: Dragmath module

by Marc Grober -
That's great David, but what would be additionally helpful is your postmortem on what went wrong in the first place.....
In reply to Marc Grober

Re: Dragmath module

by David Le Blanc -
Well, I cannot really say what might have gone wrong. After we replaced the editor folder with the original (not from dragmath) from our clean original backup, we managed to get the editor buttons and html view working.
  • Our next step was to do a file by file comparison of what was in a new download of dragmath and our original editor folder.
  • We then copied over the files and directories from the dragmath download to our original editor folder.
Everything went back to working as it should with the dragmath editor functional again. Sorry I can't be more specific but there are too many variables that might have caused the problem. blush