Inactive User Cleanup
Maintained by
DualCube Team
The inactive user cleanup is a useful solution that deletes an inactive user's account automatically. Additionally, the solution sends users emails informing them before deleting their account. Thus, if a learner logs in before the account is deleted, he or she will not be removed from the system.
Comments
Product ratings and reviews are coming to Moodle Marketplace. Until then, existing comments remain available to read, but new posts have been disabled.
In this version, on Moodle 3.6.4 (Build: 20190513) PHP Version 7.0.33-0+deb9u3 during installaiton I get
Fatal error: Namespace declaration statement has to be the very first statement in the script in [...snip] /admin/tool/inactive_user_cleanup/classes/task/tool_inactive_user_cleanup_task.php
Easy enough to put the `namespace` ahead of the `defined` to fix it
Firstly, the changes in the path will not affect other things and secondly, if you make no change in the inactive user's setting and run the cron, it will not remove any user.
It will remove the user if you set the specified date or time in inactive user's settings and if the user is inactive in that period.
Lastly, the removed user will not be recovered as there is no option available in Moodle.
Thank you.
https://www.upexams.info/
I would like to install your plugin "inactive user cleanup" on our moodle 3.5.+. Unfortunately ist is able until moodle 3.4.
Do you know, for what period you can update your plugin?
Best regards form Nürnberg
Hans
Thanks for the reply but it didn't solve it. It still ran the scheduled task on plugin installation (tried many times), and deleted pretty much all users. It also deleted a user when first registering on the site, before there was a chance to confirm the registration. It seems to look at the last access field and was deleting users with a last access of 0, which caused conflict with new users created by LDAP, if they hadn't had a chance to access before the task was run then it deleted them.
I'm having too many issues with it, so can't risk it on live unfortunately.
thanks anyway, Simon
Firstly, the changes in the path will not affect other things and secondly, if you make no change in the inactive user's setting and run the cron, it will not remove any user.
It will remove the user if you set the specified date or time in inactive user's settings and if the user is inactive in that period.
Lastly, the removed user will not be recovered as there is no option available in Moodle.
Thank you.
I've had a couple of issues on installation on to my test moodle (v3.5). Firstly there was an error message in the installation. It said Wrong PATH attribute in XML file. So in admin\tool\inactive_user_cleanup\db\install.xml file I changed line 2 from PATH="tool/inactive_user_cleanup/db" to PATH="admin/tool/inactive_user_cleanup/db". This made the installation work, although I don't know if it will affect other things.
Secondly, on installation it deleted and emailed nearly all users apart me and the admin user. It's on a test site, so not the end of the world, but how can I get the users back and more importantly not make that happen if I re-install it again?
thanks, Simon
Thanks for reaching out to us.
We are sorry for the inconvenience that you experienced.
This cleanup process runs with Moodle cron job. And the email sent to the Inactive user depends on of your time interval of cron job of your server.
Please go to Site administration / ► Reports / ► Inactive User Cleanup / ►set the "Days Of Inactivity" and "Days Before Deletion" fields as per your requirement.
For more details: https://github.com/dualcube/moodle-tool_inactive_user_cleanup/blob/master/Readme.txt
Hope it helps!
Thank you.
Please install the latest version of the plugin and clear the cache.
Thank you.
Download the latest version then go to "Your moodle directory"/admin/tool folder and your old "inactive_user_cleanup" folder; replace with the new one.
Then clear all the caches.
Let us know if your issue still exists!
Im having an issue with this plugin. When it runs in the cron job it reports a very large amount of "days before delete" for the inactive users and of course, it never deletes them. Why is that happening?
This is a sample of the report I get:
Processing cron function for tool_inactive_user_cleanup...
... started 08:30:49. Current memory use 32.9MB.
Hey, admin tool inactive user cleanup is running
days before delete864000
days before delete864000
days before delete864000
days before delete864000
days before delete864000
done. (2166 dbqueries, 1.43 seconds)
Thanks
Yoel FV
Please download our latest version of this plugin and set up background server cron.
Useful link :- https://docs.moodle.org/32/en/Cron
Let me know if this helps!
Thanks and Regards,
Arindam
I'm trying to make this plugin to work for a month already, and seems it not working ok...
In cron log it report this:
> Processing cron function for tool_inactive_user_cleanup...
> ... started 15:05:16. Current memory use 13.1MB.
> Hey, admin tool inactive user cleanup is running
> done. (599 dbqueries, 0.53 seconds
but it never delete any user.
Moodle version used: Moodle 2.9.8+ (Build: 20160915)