-
Bug
-
Resolution: Fixed
-
Minor
-
2.7.5, 2.8.3
-
MOODLE_27_STABLE, MOODLE_28_STABLE
-
MOODLE_27_STABLE, MOODLE_28_STABLE
-
MDL-49008_lang_vanish -
As noticed on moodle.org (MDLSITE-3775), lang packs can be lost if there is a problem connecting to download.moodle.org when the update installed language packs scheduled task is running (also when attempting to update all installed lang packs via the UI).
Steps to reproduce as suggested by stronk7:
1) install a good number of languages in your test site.
2) In this line, add a sleep of around 5 minutes: sleep(300) ==> https://github.com/moodle/moodle/blob/ed914e31c518c164b1dcbeee2df6b7d57468620f/admin/tool/langimport/classes/controller.php#L148
3) run the scheduled task in charge of updating the langs
4) after 30 seconds with the task running, disconnect your computer from internet
5) after 4:30 minutes (aprox) the process will end
6) expected results: all languages are still there, current result: all languages have been deleted
this should be as simple as replacing current deletion of current language being processed with a temp copy that 1) should be reused if the installation failed or 2) should be deleted if the installation ended ok.
- is duplicated by
-
MDL-49180 Language pack uninstalled if updating it fails
- Closed
- will help resolve
-
MDLSITE-3775 Language packs become uninstalled on moodle.org
- Resolved