I am upgrading a plugin from 1.9 to 2.2. Now ,it can be installed ,but when I create an instance in a course, it always error;
this is the error:
Coding error detected, it must be fixed by a programmer: MFORMS: Coding error, text formats are handled only by new editor element.
More information about this error
Stack trace:
- line 26 of \lib\form\format.php: coding_exception thrown
- line 566 of \lib\pear\HTML\QuickForm.php: call to MoodleQuickForm_format->MoodleQuickForm_format()
- line 602 of \lib\pear\HTML\QuickForm.php: call to HTML_QuickForm->_loadElement()
- line 30 of \mod\programming\mod_form.php: call to HTML_QuickForm->addElement()
- line 164 of \lib\formslib.php: call to mod_programming_mod_form->definition()
- line 71 of \course\moodleform_mod.php: call to moodleform->moodleform()
- line 256 of \course\modedit.php: call to moodleform_mod->moodleform_mod()
Output buffer: <div class="notifytiny">function moodle_form::setHelpButton() is deprecated<ul style="text-align: left"><li>line 1552 of \lib\formslib.php: call to debugging()</li><li>line 28 of \mod\programming\mod_form.php: call to MoodleQuickForm->setHelpButton()</li><li>line 164 of \lib\formslib.php: call to mod_programming_mod_form->definition()</li><li>line 71 of \course\moodleform_mod.php: call to moodleform->moodleform()</li><li>line 256 of \course\modedit.php: call to moodleform_mod->moodleform_mod()</li></ul></div><div class="notifytiny">The method old_help_icon() is deprecated, please fix the code and use help_icon() method instead<ul style="text-align: left"><li>line 1578 of \lib\outputrenderers.php: call to debugging()</li><li>line 1568 of \lib\formslib.php: call to core_renderer->old_help_icon()</li><li>line 28 of \mod\programming\mod_form.php: call to MoodleQuickForm->setHelpButton()</li><li>line 164 of \lib\formslib.php: call to mod_programming_mod_form->definition()</li><li>line 71 of \course\moodleform_mod.php: call to moodleform->moodleform()</li><li>line 256 of \course\modedit.php: call to moodleform_mod->moodleform_mod()</li></ul></div>