by Andi Rahmat.
I have an error restoring a backup.(error/cannot precheck_wrong_status)
I check the script in restore_includes.php :
// Schema Restore backup into course.
$controller = new restore_controller($folder, $course_id, backup::INTERACTIVE_NO, backup::MODE_SAMESITE, $userdoingrestore, backup::TARGET_NEW_COURSE);
//error when execute_precheck
$controller->execute_precheck();
$controller->execute_plan();
$transaction->allow_commit();
// end Schema Restore backup into course.
//print_r($folder, $course_id); //die();
I attached the screenshoot and file backup.mbz