"There are no categories or existing courses you can restore to."

"There are no categories or existing courses you can restore to."

by Nathan Huff -
Number of replies: 5

I'm running Moodle 2.6 on what is essentially a LAMP stack via Amazon AWS / EC2.


I downloaded a backup file from the Mt. Orange Demo (http://school.demo.moodle.net/) via "Front Page Settings" > Backup. When I try to restore using this back up file on my own Moodle instance, it gives me the following error (also in the title):
"There are no categories or existing courses you can restore to."

So in response to this error, I created a course category with an "empty" (default?) course, and tried the restore again, only to get the same message. What gives? The course restore documentation (http://docs.moodle.org/26/en/Course_restore) says I should be prompted to restore the backup as a new course.

So I want to know how to properly "export" the Mount Orange school demo into my own Moodle instance. Any suggestions?

Average of ratings: -
In reply to Nathan Huff

Re: "There are no categories or existing courses you can restore to."

by Mary Cooch -
Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Testers Picture of Translators

Hello there. First, I found a bug relating to this here MDL-44821 but you seem to have already tried creating a new course and category. Which School demo course is it - is it one with just one activity? Are you restoring it with the admin role or the teacher role? Because if you have given yourself the teacher role within the course then you will need to give yourself the teacher role in the new course iin the new category as well. However, again if you are using the admin role throughout, then that shouldn't  be an issue. See also MDL-35494

In reply to Nathan Huff

Re: "There are no categories or existing courses you can restore to."

by Przemek Kaszubski -
Picture of Particularly helpful Moodlers Picture of Testers

You need to "own" (be a teacher in) a second course on your Moodle. Imports and restorations do work then.

In reply to Przemek Kaszubski

Re: "There are no categories or existing courses you can restore to."

by Jayakrishnan Madathil -

Hi,

I have faced a similar issue while importing a set of activities (Lessons) from a course in my department's MOODLE site (CRS1) to my university's MOODLE site (CRS2).

Here is a description of the setup.

  1. I am a teacher in both the courses
  2. The Course 1 (CRS1) is put under a subcategory S1 under a broad category C1
  3. The Course 2 (CRS2) directly comes under a broad category C2 

Is this error happening because of the difference in category structures between the two moodle sites?

Regards

Jk

In reply to Jayakrishnan Madathil

Re: "There are no categories or existing courses you can restore to."

by Emma Richardson -
Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Plugin developers

The course is being restored to the category that you select in the restore process...

In reply to Emma Richardson

Re: "There are no categories or existing courses you can restore to."

by Jayakrishnan Madathil -

Thank You Emma for the reply.

A quick clarification: I am not restoring the entire course, rather I am restoring an activity (in this case Lesson). And while restoring, I am inside the course and doing the restore.