by Paul L.
I too tried to unzip a backup, fix the label issue for the one blank section and then re-compress my course but receive the same error 'Unknown backup format: The selected file is not a valid Moodle backup file and can't be restored.'. Php error listed below. Ive used winrar and 7zip.
Tried dozens of times, pretty sure Im missing something very simple related to the zip containing the another zip without a file extension.
Explicit instruction on how to re-compress a course backup would be appreciated.
php error follows:
[07-Jul-2022 xxxxxxxx] PHP Notice: Not a zip archive.: xxxxxxxxxxxxx/temp/backup//4de30919da3868eeb44a47bd3f437613
Tried dozens of times, pretty sure Im missing something very simple related to the zip containing the another zip without a file extension.
Explicit instruction on how to re-compress a course backup would be appreciated.
php error follows:
[07-Jul-2022 xxxxxxxx] PHP Notice: Not a zip archive.: xxxxxxxxxxxxx/temp/backup//4de30919da3868eeb44a47bd3f437613
- line 133 of \lib\filestorage\zip_archive.php: call to debugging()
- line 281 of \lib\filestorage\zip_packer.php: call to zip_archive->open()
- line 106 of \lib\filestorage\mbz_packer.php: call to zip_packer->extract_to_pathname()
- line 325 of \backup\util\ui\restore_ui_stage.class.php: call to mbz_packer->extract_to_pathname()
- line 297 of \backup\util\ui\restore_ui_stage.class.php: call to restore_ui_stage_confirm->extract_file_to_dir()
- line 116 of \backup\restore.php: call to restore_ui_stage_confirm->process()