Hi,
I have installer an Etherpad-lite- on Windows Seven.
Its Works fine.
Then I have tried to install the Moodle Etherpad module for Moodle 2.3
I get some errors :
The module etherpad does not define the standard capability mod/etherpad:addinstance
- line 3420 of \course\lib.php: call to debugging()
- line 1921 of \course\lib.php: call to course_allowed_module()
- line 1794 of \course\lib.php: call to get_module_metadata()
- line 659 of \course\format\renderer.php: call to print_section_add_menus()
- line 52 of \course\format\topics\format.php: call to format_section_renderer_base->print_multiple_section_page()
- line 281 of \course\view.php: call to require()
I have corrected ./mod/etherpad/db/access.php, adding the new capacitie.
'mod/etherpad:addinstance' => array(
'riskbitmask' => RISK_XSS,
'captype' => 'write',
'contextlevel' => CONTEXT_COURSE,
'archetypes' => array(
'editingteacher' => CAP_ALLOW,
'manager' => CAP_ALLOW
),
'clonepermissionsfrom' => 'moodle/course:manageactivities'
),
That does't fix this error...
I have added some langage strings
./mod/etherpad/lang/en/etherpad.php
// Begin help strings for Moodle2
$string['etherpad:addinstance'] = 'Add an Etherpad instance';
$string['etherpad:debugger'] = 'Debugger';
$string['etherpad:student'] = 'Student';
$string['etherpad:teacher'] = 'Teacher';
$string['modulename_help'] = '"Etherpad lite" allows you to edit documents collaboratively in real-time, much like a live multi-player online editor, allowing you to write articles, proposals, press releases and the like, together with your friends, your fellow students or your colleagues, working on the same document at the same time. It even supports rich text editing! Additionally, Etherpad lite provides access to all data through a well-documented HTTP API and supports import/export to many major data exchange formats. The built-in plugin system makes extending the core functionality a breeze, regardless of whether you\'re adding support for inserting images or videos or allowing users to collaborate on tables.';
Alas, when trying to create a new etherpad instance I get that error :
Debug info:
Error code: generalexceptionmessage
Stack trace:
- line 63 of \mod\etherpad\etherpad-lite-client.php: UnexpectedValueException thrown
- line 30 of \mod\etherpad\etherpad-lite-client.php: call to EtherpadLiteClient->call()
- line 241 of \mod\etherpad\etherpad-lite-client.php: call to EtherpadLiteClient->post()
- line 27 of \mod\etherpad\lib.php: call to EtherpadLiteClient->createPad()
- line 447 of \course\modedit.php: call to etherpad_add_instance()
Output buffer: <div class="notifytiny">The module etherpad does not define the standard capability mod/etherpad:addinstance<ul style="text-align: left"><li>line 3420 of \course\lib.php: call to debugging()</li><li>line 64 of \course\modedit.php: call to course_allowed_module()</li></ul></div><br>DEBUG :: lib.php :: 24 :: CLE: 'MGAyu430bWRZLWLtSfG5W6GPl1e6POIy', URL:'http://localhost:9001/api'<font color=#ff0000><br /> <b>Warning</b>: fopen(http://localhost:9001/api/1/createPad) [<a href='http://fr2.php.net/manual/fr/function.fopen.php'>function.fopen.php</a>]: failed to open stream: HTTP request failed! in <b>D:\xampp\htdocs\moodle23\mod\etherpad\etherpad-lite-client.php</b> on line <b>58</b><br /> </font>
Something I can do ?