If on one of those courses with the problem you change to the topics format then try again, does the error still happen? You can change back again.
What version of CT please?
I can confirm that error still occurs. So it would be something to do with the course, not the Collapsedtopics format.
I am running 126.96.36.199 of collapsedtopics
So, now take a look at the actual error which is complaining about your question bank...try restoring without quizzes and then try importing the quizzes. It looks like you have a question bank category that is causing issues...
Are there any errors in the PHP log file? If you take the MBZ file to a test server with developer level debugging on, do you see any error messages when restoring it? If you backup the course with no users and restore that, then does the error occur? And if so with the no-user backup, would you be willing to share the file for others to investigate?
I am able to restore the course without the quiz but unable to import them after restoring the course.
Turn debugging on when you try to import the quiz. Take a look at the quiz categories for that course...something has gone awry somewhere - you might need to look at the database...
I have tried debugging option on, and I did not see any errors on the page, even though that option is enabled. Nor could I find the server log file, maybe perhaps it is because we're using a sherd hosting account that uses Linux.
The only thing I have picked up on is that one of the categories under the actual quiz activity was as the others are assigned to the course itself. Also in the database, I see a lot of unknown host under the stamp column.
Thanks for your help.
I am now able to import and restore the course properly now after deleting the unknown host entries.
Ross, could you please explain in detail what you did as a work around?
For me it's not clear what you did to solve this. And since I (and probably others) might run into this problem, it would be nice to have a clear explanation of how to get rid of it.
Having exactly the same error. It has to do with multiple top categories in your question bank. There's a tracker here: MDL-62897 and it say's it's fixed...
However, I can't get past this error.
I'm trying to restore a course from a backup system. I only have the back upped course and I need to restore this. I have tested several versions of Moodle. Backup was made on Moodle 3.5 and I can't get it to restore anywhere, not even in a Moodle 3.5.2
I went inside the Moodle backup file and deleted questions.xml. That still didn't help. I don't even need the question bank to be restored, I just need the content of the course.
Any suggestions are welcome!
If you don't need the question bank, just unselect that when you restore.
I wish! It's not an option!
(didn't that used to be an option though?)
Yes - how strange - I see on the backup from screen, question bank is mentioned but not then in the restore screen. It seems to presume that if you backed up the question bank, then you must want to restore it...?
We really need to move this over to the quiz forum. Let me ping the moderator.
I think (moderators hat) that this post should stay here as it relates to the course backup and restore mechanism, but as quiz is involved, the site policy states "If you really feel your topic falls in two forums (e.g. a major development in the Quiz module that may impact other parts of Moodle), pick the most specific (e.g. Quiz forum) and post a small pointer to the other discussion in the second forum (e.g. General developer forum).", so a 'linking' post would be appropriate.
Actually, you are probably right Gareth -so let's put it in the back up and restore forum and then I will split out the question bank piece and send to quiz forum. It really isn't a course format issue at all though...
I agree, this seems to be a restore issue...