General plugins (Local): Event Reminders

Maintained by Picture of Isuru Madushanka WeerarathnaIsuru Madushanka Weerarathna
Automate sending reminders for calendar events.
1121 sites
72 fans
Current versions available: 10

This plugin will automatically send reminders for Moodle calendar events in a timely manner via Moodle message interface. This plugin allows users to control how they receive messages for each event types in Moodle calendar.


Screenshot #0
Screenshot #1


Picture of Isuru Madushanka Weerarathna
Isuru Madushanka Weerarathna (Lead maintainer)
Picture of Rossiani Wijaya
Rossiani Wijaya: Mentor
Please login to view contributors details and/or to contact them

Comments RSS


  • Picture of Clem Smith
    Sat, Apr 2, 2016, 1:06 AM
    For anyone trying to use this plugin and encountering the errors related to "Undefined index: v" and "Undefined index: u", your developers simply need to modify lines 92, 109, 126, 158, and 184 in settings.php. Currently, those lines are passing an array with a key of "value" and an element of "0". Those arrays need to be changed to have keys "v" and "u" and the elements associated with those keys will both be numeric. Those elements are used to construct the "Default: X UNIT-OF-TIME" text on the admin settings page next to the "Custom schedule" inputs. Whatever value assigned to the "v" key will be displayed literally, while the value assigned to "u" is interpreted into a unit of time. So, if you assign a value of 1 to both keys, then the text will show "Default: 1 seconds". If you change the value of "u" to 60, then "seconds" changes to "minutes", while a value of "3600" will change it to "hours". It will not accept a non-numeric string! I tried passing "seconds", "minutes", "hours", and received an error.

    Hope this helps. If you don't understand what I'm saying, just send that information to your developers and they'll understand it.
  • Picture of Farhad Arshad
    Sat, Apr 30, 2016, 6:29 PM
    How can I use this?
    Is this built in moodle 3.0?
    kIndly answer me as soon as possible.
  • Picture of Sarah Cotton
    Mon, May 23, 2016, 11:26 PM
    Fix described by Clem Smith worked a treat for 3.0.4 - thanks!
  • Picture of Isuru Madushanka Weerarathna
    Sat, Jun 25, 2016, 1:24 PM
    Hello everyone... Extremely sorry for not being able to respond to any of you recently.

    But today I have uploaded a new version (v1.5) which supports Moodle v3+ with a small feature request and several bug fixes as per requested by the beloved community.
    Below is the changelog summary.
    + support for moodle 3.0+
    + Ability to change mail sent user through configurations (#14)
    + Notice: undefined variable when opening admin settings page in Moodle 2.9 (#12)
    + Event reminders sent for individual quiz overrides (#11)
    + Fix time formatting when user has set 24hour format in calendar preferences
    + Fix cron errors resulting from new role (thanks to [colin-umn]:
    + Fix cron error caused by $courseroleids (thanks to [cdsmith-umn]:

    Enjoy! Don't forget to let me know if there are any issues.
  • Picture of Meir Kirshner
    Sat, Jun 25, 2016, 1:46 PM
    I am using plugins (Local): Event Reminders, and its send a reminder that the event is taking place one hour before the set in the calendar
  • Picture of julie mcloughlin
    Sat, Aug 6, 2016, 9:42 AM
    I wanted to send automated reminders to all enrolled students that they need to complete another course 12 months after they complete the one they are enrolled in. Would this plug in help me set this up? Reminder to be emailed 12 months after enrolment date
  • Picture of Sakshi Goel
    Mon, Oct 17, 2016, 3:09 PM
    Is Event Reminder plugin compatible with Moodle 3.1 version.
  • Picture of Đạt Dương
    Tue, Nov 29, 2016, 11:41 AM
    Please mod CC email, thanks :D.
  • Picture of Yezi Yang
    Mon, Dec 12, 2016, 4:46 PM
    Dear Isuru,

    Your reminder plugin is a significant plugin for the Moodle platform in my institution. It is very important to remind students about the calendar events before the deadlines. And it fits naturally with Moodle website and also Moodle mobile. However, the plugin does not work well with the message feature of Moodle, where users can also send and receive internal messages.

    As can be seen from the screen shot (, the message sent from reminder has all the html code displayed, while all other messages sent by users are displayed correct. Message is a new feature of Moodle core feature in Moodle 3.0 and it is widely used in Moodle. We are using Moodle 3.1.2 and Event Reminder plugin 2016062500. I really hope it can be fixed as soon as possible.
  • Picture of Isuru Madushanka Weerarathna
    Fri, Dec 23, 2016, 5:56 PM
    Hi Yezi,

    Sorry for the late reply, but I was just busy in ahead of holiday season.

    However I want to know some clarifications like how your students receive messages/reminders in your institute? (Email, SMS, Twitter, etc?)
    I am asking this because, the plugin has tested for emails successfully and is working fine, but I haven't tested for sms or twitter.
    Primary intention of this plugin was to enable reminder emails, but I would like to fix it if it is not working for other messaging outputs.

    Also can you send me a sample message content one of your student received, because I can't see your uploaded screenshot.
  • Picture of Adarsh Shukla
    Wed, Jan 4, 2017, 8:44 PM

    After installing this plugin. Every time i run cron i get following response.

    Processing cron function for local_reminders...
    ... started 18:13:05. Current memory use 57.2MB.
    [Local Reminder] Time window: Wednesday, 4 January 2017, 5:45 PM to Wednesday, 4 January 2017, 6:13 PM
    [Local Reminder] No upcoming events. Aborting...
    done. (4 dbqueries, 0.06 seconds)

    Though there are event scheduled. Please help me out with this.

  • Picture of Zeid Fanous
    Wed, Jan 4, 2017, 9:30 PM
    hi Adarsh

    try setting up an event for longer hourrs... say set the event for 2 hours later and wait for it ... check if email settings are correct, if event reminder settings are correct... r you setting up a site event reminder, individual, or ggroup ?
  • Picture of Isuru Madushanka Weerarathna
    Thu, Jan 5, 2017, 4:49 PM
    Hi Adarsh,

    Once I wrote how reminder time windows works with moodle cron jobs in here. See

    Reminder is sent if only there is an event falls exactly within 1,3,7 ahead of days for the current cron time window. But as Zeid suggested, you have the option to select whether it is 1 or 3 or 7 days of ahead from the settings.
  • Picture of Adarsh Shukla
    Thu, Jan 5, 2017, 7:53 PM
    Hi Thanks @zeid and @Isuru for your help. We are facing one more issue in sending reminders to groups.

    Here is the cron output

    [Local Reminder] Processing event#76 [Type: group, inaheadof=1 days]...
    [Local Reminder] 0 0
    [Local Reminder] Finding out users for event#76...
    [Local Reminder - ERROR] Error occured when initializing for event#[76] (type: group) Coding error detected, it must be fixed by a programmer: Invalid modulename parameter
    [Local Reminder - ERROR] #0 C:\wamp\www\moodle\local\reminders\contents\group_reminder.class.php(60): get_coursemodule_from_instance('0', '0', '9')
    #1 C:\wamp\www\moodle\local\reminders\contents\group_reminder.class.php(43): group_reminder->load_course_object()
    #2 C:\wamp\www\moodle\local\reminders\lib.php(366): group_reminder->__construct(Object(calendar_event), Object(stdClass), 1)
    #3 C:\wamp\www\moodle\lib\cronlib.php(223): local_reminders_cron()
    #4 C:\wamp\www\moodle\lib\classes\task\legacy_plugin_cron_task.php(163): cron_execute_plugin_type('local', 'local plugins')
    #5 C:\wamp\www\moodle\lib\cronlib.php(75): core\task\legacy_plugin_cron_task->execute()
    #6 C:\wamp\www\moodle\admin\cli\cron.php(61): cron_run()
    #7 {main}
    done. (20 dbqueries, 2.22 seconds)

    Can you please help me out with as well.
  • Picture of Zeid Fanous
    Thu, Jan 5, 2017, 8:44 PM
    yes i am aware of the error. i ended up hiring a php expert to llook at the code and we fixed it , send me your email and i will send u the fix
Please login to post comments