cannot_precheck_wrong_status

cannot_precheck_wrong_status

by Daniel Villareal -
Number of replies: 0

Hi All,

Were getting cannot_precheck_wrong_status on one of our production server but on our dev site it is working well

$controller = new restore_controller($backupid, $courseid,
                                                                               backup::INTERACTIVE_NO, backup::MODE_SAMESITE, $admin->id, backup::TARGET_NEW_COURSE);
$controller->execute_precheck();
$controller->execute_plan();

I'm not really sure what's wrong with the code why moodle returns that error.

Average of ratings: -