Hi,
I'm trying to restore a course in my Moodle (3.3) and I have no problem when I do it as the site administrator, but when I do it as a teacher of course creator I always get an error message like this one on the picture. Any one can tell me what it is? Thanks a lot

I would guess that those roles do not have permission to restore.
Emma is probably correct, but ....
The following may or may not fix the problem, but it wouldn't hurt to check ...
There is a hidden Moodle tool called "Health Check" ... you have to navigate to it via browser URL:
https://yoursite/admin/tool/health/
It can be intensive depending up what it might find so you might want to access in non-prime time.
One of the areas of Health Check are quizzes ... will list issues it might find, then there is a link to 'Solutions'. Sometimes those solutions offer an SQL query as a fix. So you will need to have either CLI access to a mysql client or phpmyadmin or moodleadminer.
'spirit of sharing', Ken
Actually I can restore it as "manager" but not as "teacher", even though I have the same permissions.
Please see:
https://docs.moodle.org/34/en/Health_center
Question categories should belong to a valid context Question categories should belong to the same context as their parent Question categories tree structureMight be related.
'spirit of sharing', Ken
Having permissions in a role is a thing, but the other important part of the thing is to know at which context they have these roles !
And it also depends on the place the questions categories belongs (activity, course, course category).
Your problem is certainly a mix of that : which role on which context, relating to where are these question categories.
HTH,
Séverin
but I don't see how to give a role for a whole category, I can only give a role inside a course, am I right? and then, the other stuff is the question category, I don't see how to touch that so it doesn't give any problems.
Hi,
You'll find information in documentation to assign roles on a course category, and also about the question bank.
Hope these links (an related pages) will help,
Séverin