rafbis / moodle-mplayer

Automatically exported from code.google.com/p/moodle-mplayer
0 stars 0 forks source link

MFORMS: Coding error, text formats are handled only by new editor element. #44

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.After installing the mplayer.(I changed lang > en_utf8 to "en")
2. When i turn editing on.
3. Then add an activity, i tried Media Player

What is the expected output? What do you see instead?
I expect to successfully upload a video which plays only once.

I see a lot of errors:
Invalid get_string() identifier: 'pluginname' or component 'mod_mplayer'

    line 5904 of \lib\moodlelib.php: call to debugging()
    line 6494 of \lib\moodlelib.php: call to core_string_manager->get_string()
    line 161 of \lib\ajax\ajaxlib.php: call to get_string()
    line 253 of \course\view.php: call to jsportal->print_javascript()

//This is after i click on the Media Player under Add an activity..
Coding error detected, it must be fixed by a programmer: MFORMS: Coding error, 
text formats are handled only by new editor element.
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 56 of \mod\mplayer\mod_form.php: call to HTML_QuickForm->addElement()
    line 152 of \lib\formslib.php: call to mod_mplayer_mod_form->definition()
    line 227 of \course\modedit.php: call to moodleform->moodleform()

Output buffer: <script type="text/javascript" src="../js/jquery.js"></script> 
<script type="text/javascript"> $(document).ready(function(){ 
$('#page-footer').hide(); }); </script> <div class="notifytiny">function 
moodle_form::setHelpButton() is deprecated<ul style="text-align: left"><li>line 
1460 of \lib\formslib.php: call to debugging()</li><li>line 54 of 
\mod\mplayer\mod_form.php: call to 
MoodleQuickForm->setHelpButton()</li><li>line 152 of \lib\formslib.php: call to 
mod_mplayer_mod_form->definition()</li><li>line 227 of \course\modedit.php: 
call to moodleform->moodleform()</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 1542 of 
\lib\outputrenderers.php: call to debugging()</li><li>line 1476 of 
\lib\formslib.php: call to core_renderer->old_help_icon()</li><li>line 54 of 
\mod\mplayer\mod_form.php: call to 
MoodleQuickForm->setHelpButton()</li><li>line 152 of \lib\formslib.php: call to 
mod_mplayer_mod_form->definition()</li><li>line 227 of \course\modedit.php: 
call to moodleform->moodleform()</li></ul></div>

What version of the product are you using? On what operating system?
i'm using moodle 2.0, the mplayer is 2011-05-23. Windows XP

Please provide any additional information below.

I cant seem to add a media activity. :o and how do i limit the number of times 
the video is played?
Thanks.

Original issue reported on code.google.com by gelatissimo12 on 13 Oct 2011 at 3:13

GoogleCodeExporter commented 8 years ago
do you have a mplayer version for moodle 2.0+? 

Original comment by gelatissimo12 on 13 Oct 2011 at 3:24

GoogleCodeExporter commented 8 years ago
I got the same error installing the FLV Player on Moodle 2. I changed lang > 
en_utf8 to "en" and then the error occurred, but without any line or file 
specified.

Original comment by allan.u...@gmail.com on 2 Mar 2012 at 8:10

GoogleCodeExporter commented 8 years ago
Hi,

Plugin modules for Moodle 1.9 and 2.x are not compatible. You can't install a 
1.9 module in 2.x nor vice versa.

I hope this helps.

Original comment by matbury on 3 Mar 2012 at 1:27

GoogleCodeExporter commented 8 years ago
Thanks for your reply! :)

Original comment by gelatissimo12 on 6 Mar 2012 at 6:02