Import / Restore course problem Moodle 2.3

Import / Restore course problem Moodle 2.3

by David Rumptz -
Number of replies: 1

Using Moodle 2.3

First off let me state that I have administrative privileges on the Moodle site but not on the Server where the site is hosted.

We have a new install of Moodle 2.3 and it is timing out at restoring / importing a course.  It is not a problem with a smaller course (1.3 mb) as I have done this by both the Restore and Import functions. But with my 4 MB course it does not work. I have deleted old back up files of the course and had no luck.

I have also had the Moodle server reset- this did work on time- but had no luck with that either.

 

When I try to import the course I get to 1. Course selection / ► 2. Initial settings / ►

Then I get this error

XML Parsing Error: mismatched tag. Expected: </div>.

Location: http://moodle.ugru.info/backup/import.php

Line Number 417, Column 11:                     </div></fieldset>

------------------------^

 

When I go to http://moodle.ugru.info/backup/import.php

I get this message

 A required parameter (id) was missing

 Debug info:

Error code: missingparam

Stack trace:

line 467 of \lib\setuplib.php: moodle_exception thrown

line 516 of \lib\moodlelib.php: call to print_error()

line 11 of \backup\import.php: call to required_param()

          

When I try to “restore” the course I get to 1. Confirm / ► 2. Destination / ► 3. Settings / ►

Then I get this error

XML Parsing Error: mismatched tag. Expected: </div>.

Location: http://moodle.ugru.info/backup/restore.php

Line Number 672, Column 11:                     </div></fieldset>

------------------------^

When I go to http://moodle.ugru.info/backup/restore.php

 I get the following message

 A required parameter (contextid) was missing

More information about this error

Debug info:

 

Error code: missingparam

Stack trace:

 line 467 of \lib\setuplib.php: moodle_exception thrown

line 516 of \lib\moodlelib.php: call to print_error()

line 7 of \backup\restore.php: call to required_param()

 

This is for a pilot program to see how Professors and students like Moodle vs Black Board so it is importnat for this to work.

David Rumptz

Average of ratings: -
In reply to David Rumptz

Re: Import / Restore course problem Moodle 2.3

by Colin Fraser -
Picture of Documentation writers Picture of Testers

Where did the original backup come from? An external source or from within the new v2.3?  I would suspect that this is where the flaw has originated, but there is another possibility.

Very occasionally, an issue arises with the code itself. This is a possibility here. I suggest to fix this possible issue is to download a fresh copy of Moodle, the same version you have, if you can but close as you can get, and install that to your local machine. (You may be able to replicate you server, but it does not really matter.) At one level this acts like a test server so you can keep it and use it in a variety of instances to test stuff before you use it on your production site. Then once satisfied you have it all working, restore your course to that, see if the result is the same. If it restores, then you know there is an issue with your production site. Create a new backup and restore that. If you still get the issue, possible, then delete all the backup restore code from your production site and copy in the same files from your test server, with FTP, of course this assumes you can access the code. If you can't then ask, you might get FTP access rights to the Moodle folders, otherwise, place everything on a USB and ask the server admin to do it. You can replace any section or page or file or folder/s due to the connectionless nature of the Web and the PHP is not installed like an executable.