Restore Course Never Finish Error code: invalidrestorefile

Restore Course Never Finish Error code: invalidrestorefile

by Purina Qurota Ayunin -
Number of replies: 1

Hi, i'm trying to restore course, but the upload progress never finish and stuck.

when i click Restore button, it shows

Debug info: 
Error code: invalidrestorefile 
$a contents:
Stack trace:
  • line 225 of \backup\util\ui\restore_ui_stage.class.php: restore_ui_exception thrown
  • line 72 of \backup\restore.php: call to restore_ui_stage_confirm->process()

and if I inspect element, the console shows:

Uncaught SyntaxError: Unexpected token < in JSON at position 0

    at JSON.parse (<anonymous>)

    at XMLHttpRequest.xhr.onreadystatechange (dndupload.js:45)


Oh, i try it in Moodle 2.6 and Moodle 3.4 but both of them produce the same error.


I really need your help. Thank you.

Average of ratings: -
In reply to Purina Qurota Ayunin

Re: Restore Course Never Finish Error code: invalidrestorefile

by Séverin Terrier -
Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Testers Picture of Translators

Hi,

Please provide much more details :

  • is it on one backup file, or for all?
  • what's the size of the .mbz file?
  • what are the defined limit of upload max filesizes?

Séverin