jleyva / moodle-block_jmail Goto Github PK
View Code? Open in Web Editor NEWInternal mail tool for Moodle 2
Internal mail tool for Moodle 2
Hi,
I have this error in apache log, Do I need do something?
[Sun Nov 02 18:01:00 2014] [error] [client ip ******] Debugging: You need to update your sql to include additional name fields in the user object. in \n line 3577 of /lib/moodlelib.php: call to debugging()\n* line 999 of /blocks/jmail/block_jmail_mailbox.class.php: call to fullname()\n* line 171 of /blocks/jmail/block_jmail_ajax.php: call to block_jmail_mailbox->get_contacts()\n, referer: https://URL*****/blocks/jmail/mailbox.php?id=285
[Sun Nov 02 18:01:00 2014] [error] [client ip ******] Debugging: Missing firstnamephonetic property in $user object, this is a performance problem that needs to be fixed by a developer.
Please use user_picture::fields() to get the full list of required fields. in \n line 196 of lib/outputcomponents.php: call to debugging()\n* line 2263 of /lib/outputrenderers.php: call to user_picture->__construct()\n* line 1000 of /blocks/jmail/block_jmail_mailbox.class.php: call to core_renderer->user_picture()\n* line 171 of /blocks/jmail/block_jmail_ajax.php: call to block_jmail_mailbox->get_contacts()\n, referer: https://URL *******/blocks/jmail/mailbox.php?id=285
Moodle 2.7.1
Jmail:
$plugin->version = 2011122513;
$plugin->release = 1.9;
Thanks
Hi Juan,
Deleting a message from the Inbox removes it from the list of messages in the Inbox and places it in the Bin. But when you try to delete a message in the Sent folder, nothing happens. The message remains.
We are using Moodle 2.8.6 and jmail block version 2011122513, release 1.9.
Please, can you guide me to solve this problem?
Thank you so much.
Best regards,
Sarah Ashley.
Instructional Designer
Rutgers University
NJ, USA
When viewing Draft folder the list header has the 'From' column like Inbox, instead of 'To' column like Sent folder.
I have modified two files to correct this:
Block_jmail_mailbox.class.php
module.js
This change has been running on our servers for a few months (sorry for taking so long to send this).
My changes:
Block_jmail_mailbox.class.php
starting at line 262
case 'draft' :
$select .= ', s.userid';
$params = array('sender' => $USER->id, 'course' => $this->course->id, 'timesent' => 0, 'userdeleted' => 0);
$sql = "
FROM {block_jmail} m
JOIN {block_jmail_sent} s ON m.id = s.messageid
JOIN {user} u ON u.id = m.sender
WHERE
timesent = :timesent AND sender = :sender AND courseid = :course
AND s.type = 'to'
AND u.deleted = :userdeleted
ORDER BY $sort $direction";
break;
module.js
line 34 (removed yui2-widget - I think for another problem but not sure)
YUI().use('yui2-event', 'yui2-dragdrop', 'yui2-element', 'yui2-animation', 'yui2-resize', 'yui2-layout', 'yui2-button', 'yui2-editor', 'yui2-get', 'yui2-connection', 'yui2-datasource', 'yui2-datatable', 'yui2-container', 'yui2-utilities', 'yui2-menu', 'yui2-json', 'yui2-paginator', function(Y2) {
line 357, 460, 557, 1013 changed if statement condition from
M.block_jmail.currentLabel == 'sent'
to
(M.block_jmail.currentLabel == 'sent' || M.block_jmail.currentLabel == 'draft')
Ray
Hi,
The plugin was working in Moodle version 2.6.3+ (Build: 20140619), but suddenly I cannot access to the mailbox.php. It gives me the following errors:
Notice: Trying to get property of non-object in /furanet/sites/campusdes.universidaddepadres.es/web/htdocs/moodle/blocks/jmail/block_jmail_mailbox.class.php on line 95
No se puede encontrar registro de datos en la tabla block_instances de la base de datos.
Más información sobre este error
Debug info: SELECT id,parentcontextid FROM {block_instances} WHERE id IS NULL
[array (
)]
Error code: invalidrecord
Stack trace:
line 1390 of /lib/dml/moodle_database.php: dml_missing_record_exception thrown
line 1366 of /lib/dml/moodle_database.php: call to moodle_database->get_record_select()
line 7245 of /lib/accesslib.php: call to moodle_database->get_record()
line 57 of /blocks/jmail/locallib.php: call to context_block::instance()
line 95 of /blocks/jmail/block_jmail_mailbox.class.php: call to block_jmail_get_context()
line 48 of /blocks/jmail/mailbox.php: call to block_jmail_mailbox->__construct()
I ran the cron.php several times, as this moodle doc suggests http://docs.moodle.org/all/es/error/moodle/invalidrecord, with no luck. Also I have tried uninstalling the plugin and installing it again, but It keeps showing the error.
Can you help me?
Thanks.
When sorting by 'From' field, a 'Data error.' is thrown.
This text is placed between the column headers and the message headers table.
The messages are not sorted.
Estimado Juan,
Cuando un usuario "A" envía un mensaje por jmail a otro usuario "B" y lo pone tanto en To: como en Cc: (o Bcc:), el usuario B ve un único mensaje que no puede marcar como leído ni borrar.
Por lo que pude ver, esto es porque en la tabla mdl_block_jmail_sent, hay al menos dos entradas:
id userid messageid type mread deleted ....
4 23451 7636 to 1 1
5 23451 7636 cc 0 0
Por lo tanto, el usuario B sigue viendo el mensaje (asumo que identificado por el id 5) en su casilla de entrada, pero no puede borrarlo ni marcarlo como leído porque jmail intenta hacerlo sobre el mensaje con id 4.
Gracias,
Norberto
I'm running Moodle 2.3.1+ (Build: 20120823)
When composing a new message in jmail the drag and drop file attachment section of the form does not display. The spinning "waiting" icon shows but never disappears.
Also the "Send" and "Save" buttons are being drawn below than the "New Mail" div
Hi,
Debug mode shows this:
add_to_log() has been deprecated, please rewrite your code to the new events API
line 48 of /lib/deprecatedlib.php: call to debugging()
line 50 of /blocks/jmail/mailbox.php: call to add_to_log()
Moodle 2.7.1
Jmail 1.8 2011122512
Thanks
Hi, I have this error message:
add_to_log() has been deprecated, please rewrite your code to the new events API
line 48 of /lib/deprecatedlib.php: call to debugging()
line 52 of /blocks/jmail/mailbox.php: call to add_to_log()
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.