Skip to content

Instantly share code, notes, and snippets.

@stronk7
Last active March 31, 2021 15:45
Show Gist options
  • Save stronk7/f138b35ede8f6b210e476c112c31ab13 to your computer and use it in GitHub Desktop.
Save stronk7/f138b35ede8f6b210e476c112c31ab13 to your computer and use it in GitHub Desktop.
$ php admin/cli/fix_orphaned_calendar_events.php --fix
== Checking the site status ==
This site has executed the problematic upgrade step 2020061504.08 present in 3.9.5.
Fix upgrade steps were NOT found.
This site NEEDS to run the calendar events fix!
You can use this CLI tool or upgrade to a version of Moodle that includes
the fix and will be executed as part of the normal upgrade procedure.
The following versions or up are known candidates to upgrade to:
- 3.9.6+: Not available yet, upgrade machinery being developed.
- 3.10.3+: Not available yet, upgrade machinery being developed.
- 3.11dev: Not available yet, upgrade machinery being developed.
- 4.0dev: Not available yet, upgrade machinery being developed.
== Checking the calendar events status ==
Totals: 40 / 34 (total / wrong)
- standards events: 14 / 10 (site: 3, course: 3, group: 2, category: 2)
- subscription events: 6 / 4 (category: 2, site: 2)
- override events: 9 / 9 (lesson: 3, assign: 2, quiz: 4)
- action events: 8 / 8 (forum: 1, page: 1, lesson: 2, assign: 2, choice: 2)
- other events: 3 / 3 (scheduler: 3)
== Fixing as many as possible calendar events ==
Processing override events
...
Finished!
Processing subscription events
..
Finished!
Processing standard events
.....
Finished!
Processing action events
...
Finished!
== Checking the calendar events status (after fix) ==
Totals: 40 / 3 (total / wrong)
- standards events: 14 / 0 - all good!
- subscription events: 6 / 0 - all good!
- override events: 9 / 0 - all good!
- action events: 8 / 0 - all good!
- other events: 3 / 3 (scheduler: 3)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment