Blocks ::: block_notifications
Maintained by Goran Josic
Not always logged in, you want to be up to date about new content, discussions or events in your Moodle courses? This moodle block implements a solution that periodically notifies learners about new content or activities included into a Moodle course. This solution will act as a sentinel that detects whether new contents or new activities have been included into the Moodle course, and notify the learners and/or the instructors about that. Notifications methods are: e-mail message RSS aggregator SMS message There is also a version of this plugin for Moodle 1.9 that can be downloaded from the Website.
Latest release:
492 sites
54 fans
Current versions available: 1


Screenshot #0
Screenshot #1
Screenshot #2


Goran Josic (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS


  • Sat, Dec 19, 2015, 7:51 AM
    what is the function of task.php in a folder db / task.php ,
    but never used in other classes .
    every time I enter a new activity , but e-mail notification not working.
    how to resolve i'm using moodle 2.9.3
  • Sat, Dec 19, 2015, 9:16 AM
    Hi Goran..
    How many hours notification will be sent to the user's email
  • Thu, Jan 21, 2016, 2:54 PM
    Hi Goran,
    I am using moodle 2.8.5 an your plugin version - 2.4.1 - [ 2015102200 - release 2] as indicated in the change log. I seem to be missing the drop down list for the time interval in the Block settings ( checking for new contents frequency in hours ). The notifications block indicates that the "last" notification was, I believe the time that I installed the plug-in which was more than two weeks ago. I have not received any notifications yet and a lot of changes and updates have been done to the course. Furthermore looking at the Server ... Scheduled tasks .. Block notification task ... "Last run" indicates "Never" and "Next Run" indicates "ASAP". Changing the settings on this page doesn't seem to have an effect as it always revert back to "Never" and "ASAP". I'll appreciate any information to resolve this and make the plugin work as it should.
    Thanks in advance
  • Thu, Jan 21, 2016, 5:03 PM
    Hi monchet S.,

    I guess you have a problem with your cron. Those run times are updated by cron tasks.
    You can force the next run time by editing the scheduled task in the list. You save the same settings and then you will see that the time has been updated.

  • Thu, Jan 21, 2016, 5:17 PM
    Hi Goran,
    Thank you for the reply and the suggestion. I did try that. I forced and changed the setting to run every 5 minutes but after the first trigger, the "Last run" again indicated "Never" and "Next Run" indicated "ASAP". No messages were sent.

    Other core tasks are running with no problems though.

    Is the drop down list for the time interval in the Block settings removed in the version that I am using ? It is not present in my Block settings.

  • Thu, Jan 21, 2016, 5:22 PM

    Since the moodle 2.7 a new logging system is used and a the tasks are now scheduled by the platform. Hence the previous time interval setting in the plugin has been removed.

    You can try to run the task manually with this command:

    php YOUR_MOODLE_ROOT/admin/tool/task/cli/schedule_task.php --execute=''\block_notifications\task\notify'

    Please replace the YOUR_MOODLE_ROOT with the correct path.

    If this works and you get messages then the problem is probably your platform. If you get any errors in the output please send them to me. Maybe there is a bug I don't know about yet.
  • Fri, Jan 22, 2016, 1:31 PM

    Thanks for clearing that out and thank you for the input. I was able to trace the problem with the running of the cron. I was using Moodle Cron Ver 1.01 (Moodlecron.exe) as a windows service to run the moodle cron script. The service is running but somehow the script is not being fired . I just disabled the service and created a scheduled task to fire up the moodle cron script and now everything is running as expected. Thank you for sharing your time and talent to create a very useful plug-in.
  • Fri, Jan 22, 2016, 4:31 PM

    You are welcome. Glad you found out what is the problem.
  • Tue, Jan 26, 2016, 11:57 AM
    Just an update on my issue, after a day of successful runs ... the following day the block_notification task stopped running again. Upon checking the logs, it seems that when the job of checking moodle core updates is fired ... other jobs in-line after after that does not get executed for some reason (including block_notification). Disabling the automatic checking for available updates (Site administration ... server .. update notifications) seems to do the trick. Not sure why, but I guess I can temporarily live with manually checking for updates rather than not receiving any notification on courses. Hope this helps others who might experience the same issue. Cheers !
  • Tue, Jan 26, 2016, 10:16 PM
    Any debug messages in the cron output?
  • Wed, Jan 27, 2016, 3:04 PM
    As far as the cron logs are concerned there are no error messages but I did notice from the logs that the entire cron process does not finish and is somehow cut on certain tasks that require external connections (like core and language updates). Any task that comes after them does not get executed so my workaround is to temporarily disable the problematic task so that the entire cron job will be run. Another way probably is to change the queue of running the scheduled tasks, move the problematic tasks at the end of the queue. Currently that is beyond my level of knowledge, so i have to settle with disabling until I figure out the problem with the other tasks. I do appreciate and thank you for the replies. The plugin is working exactly as it was designed. Great plugin.
  • Fri, Feb 26, 2016, 7:35 PM

    I am quite new to this so may be a bit of a newbie question, however i have installed the plug in and updated via moodle but i am unsure of what to do next or is the plugin automatic/self running once installed as just trying to work out how to use it smile

    Any help would be greatly appreciated, thankyou

  • Fri, Feb 26, 2016, 8:58 PM
    This block notifies changes and updates on Moodle courses via three channels: e-mail, sms and rss.

    You can add the notification block to the courses you want to be able to notify updates and changes to the students.

    There are global settings, course settings and user preferences settings.

    Please check at least the global and course settings.

    Please note that administrator activity in the course is ignored.

    Write here if you have more specific questions.
  • Mon, Feb 29, 2016, 7:23 AM
    Hi Goran,

    Thankyou for your reply,

    I have set the block up and enabled everything as you have described but am still having no luck with getting any emails, i used one of the teachers account to add files to a testing area with a single student account active to test the system and i cant seem to get it to respond.. i have configured the block correctly but no luck, the only factor that i can source is that i do not have the checking for update box in the configure area which maybe its on a long loop to check for these updates but apart from that i am lost,

    If you have any ideas i would greatly appreciate it and thankyou for the plugin itself smile

  • Mon, Feb 29, 2016, 4:02 PM
    Please use a teacher account, login as is not considered as such. If the email as channel is enabled in the course then you should be able to receive messages.

    If you still don't receive any message you can run the notification task manually.

    You can try to run the task manually with this command:

    php YOUR_MOODLE_ROOT/admin/tool/task/cli/schedule_task.php --execute=''\block_notifications\task\notify'

    Please replace the YOUR_MOODLE_ROOT with the correct path.

    If there are any error messages please let me know.
Please login to post comments