Moodle Plugins directory: Reset MyMoodle | Moodle.org
Reset MyMoodle
Administration tool ::: tool_resetmymoodle
Maintained by
Carlos Escobedo
This tool allows reset all MyMoodle Users except main admin. Is for admins.
Latest release:
47 sites
45 downloads
13 fans
Current versions available: 2
Administrators can reset all MyMoodles except main admin with one click with this tool. Located in Development Menu Node.
In the future, will be capable to select groups of users or one single users to reset MyMoodle.
Contributors
Carlos Escobedo (Lead maintainer)
Please login to view contributors details and/or to contact them
Said, that, you are cleared to land. Runway free, welcome to Moodle plugins!
I am having a problem using this plugin. When I click the Continue button I get the following error message:
Reset My Moodle
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 84 bytes) in /var/www/sandbox/lib/dml/pgsql_native_moodle_database.php on line 776
We are on Moodle 2.9.
Any ideas why this may be / has anyone come across this before?
Thanks in advance
I am sorry for being late in my reply.
Typically, this error happens when PHP is out of memory. You could increase the size of memory in this viariable memory_limit in php.ini. So you can update the code of this plugin to set more memory to the execution and restore the original when the executions ends like ini_set('memory_limit', '-1'); or using standards in Moodle like raise_memory_limit(MEMORY_HUGE); to set more memory and raise_memory_limit(MEMORY_STANDARD); to restore the original state. If you still have the problem I can build a patch for you in my GitHub repository. However, in Moodle this feature is in the core (https://docs.moodle.org/30/en/Dashboard) and always you can upgrade your Moodle.
This plugin is very useful. I've just used it in my 2.9.4+ Moodle (took nearly 2 hours !). But it seems (number shown at end) it run reset for all users, even deleted! Would be good to improve it.
thanks for your comments. I just push a new version with your proposal and other amazing features. The new version you can include or exclude guest users and deleted users. So you can enable or disabled log and download it. I hope was successfully for you.
I think it would be really useful to be able to choose these option when launching the tool on admin/tool/resetmymoodle/index.php page!
Because it's a tool that is rarely used, and i think one (even admin) will forgot that settings can be (previously) defined...
PS : just for information : i had launched again the "reset my moodle" tool (some days ago), and it took "only" 15 minutes (less things to delete in tables), even with deleted users.
Is this plugin compartible with Moodle 3.1 and higher versions?
Even so, I'm working in change the face of my plugin to provide a new feature what you can choose a group of users to reset their dashboard instead all of users.
Do not hesitate if you have new features about reset dashboard that you will.
Thanks for your comments.