I'm running Moodle 3.2 and have deleted some assignments from one of my modules. In the gradebook setup I get the following error:
Warning: Activity deletion in progress! Some grades are about to be removed.
Also I can't delete the item from the list of activities.
Ant idea why this is the case and how can I delete these from the setup page and remove this error message?
I found the solution, I though my updated cron hadn't worked (but it just hadn't run) and running this cleared the error and removed the entries.
AFAIK, I think the error is generated when the course itself has not been reset, but that is based on an incident from about v2.2, which may or may not be at all relevant to your situation. Did you reset the course before trying to delete the gradebook items? Or did you try to delete the course and gradebook items at the same time?
Also, I understand the grades recorded remain with the student who undertook the exam, just the exam itself is removed.
But it is a good pickup, working through the cron, good advice.
Could you please tell me. How to remove step-by-step.
I have the same problem. I'm running Moodle 3.2.2+ (Build: 20170503)
I just saw your post on "Warning: Activity is being deleted! Some notes are about to be removed."
So I decided to get in touch to see if you have already solved the problem, because I am facing this same problem.
I've run CRON, but the problem persists.
I wonder if for you this one to run the CRON worked or you had to do something else.
what is cron? can you please provide the step-by-step procedure to remove the said activity. i have the same problem. thankyou!
After running the cron still the Warning message deletion in progress appears can you help
In my case, the problem was an external plugin that prevented the process cron.php from being executed completely. I solved it by uninstalling that plugin and then execute the process cron.php manually to make sure it runs correctly until it completes. I hope this will help you. Greetings from Mexico
Thanks Salvador for your reply. The issue got fixed.
Salvador, ¿cuál fue el plugin que desinstalaste para que te funcionara?, pues tengo el mismo problema.
Este fue el plugin que me dió problemas https://moodle.org/plugins/mod_zoom
De cualquier manera, te recomiendo que revises detalladamente el cron.php cuando lo ejecutes para ver si se terminó de ejecutar correctamente, eso te puede dar más pistas para resolver el problema.
Espero te sirva.
How do you run cron manually? When I use the browser-based guidance, I get
"!!! Sorry, internet access to this page has been disabled by the administrator. !!!"
or "Command line scripts can not be executed from the web interface".
It seems like I have the same problem, but not I"m trying to figure out how to run cron manually. I have this hosted by third party - siteground.com.
How did you determine which plugin was the problem?
Still have that problem, some ideas? cron.php is executing every hour but it don't help. we have Moodle 3.5.2+
I found out that my cron was in fact not running as I though. When I open the notificaciones, I am told that cron has not been run for more than 24 hrs. It seems my cron job stalls because of a language pack conflict that I haven’t been able to solve, but that is a another forum!
Long story short: I have to manually update my language packs and then manually run my cron job (clicking on the notificacion about the cron problem) and then voila! The issue of the grade book item is solved!
It still happens periodically and I go through the process each time. Works for other cron related problems too!
We executed script every hour from web-server https://server/admin/cron.php, possibly interrupted after 5 minutes timeout. As a result, never finished his work, now we execute command-line CLI script “php/moodle/admin/cli/cron.php” who worked more than 1 hour and all problems solved!
Just a note for anybody experiencing this....
Module deletion is an example of an 'adhoc task'. These are tasks that are simply set up to run by the cron and the next possible opportunity. They will run *last* after everything else has run in the cron. They do not appear in the list of scheduled tasks in the admin settings (as they are "one off" tasks).
The problem comes if the task fails. If the task throws an exception it will be re-queued but with a delay. The delay gets longer on each failure up to a day. So, if something is going wrong the task will quite quickly retry once a day. You are unlikely to spot this.
If you run out of ideas and suspect this, check the take mdl_task_adhoc. Check for instances of '\core_course\task\course_delete_modules' with high 'faildelays'.
all my faildelays are 0 .. have 439 of them...
can i just delete them all and start fresh by just running the cron again?
can we just delete them as one has a faildelay of 86,400, 120, and 60 respectively... the rest are all 0 (zeros).. this is the bottleneck I think
I have this problem too.
I added moodle cron to cpanel cronjob section and checked for mod_zoom plugin. but I didn't have this plugin.
this is list of my plugins in mod directory:
can someone help me ?